joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5de240
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
test eax, eax
je 0x5de333
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
cmp eax, 4
jb 0x5de279
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor dword [esi], ecx
add edx, 4
add esi, 4
sub edi, 1
jne 0x5de263
mov dword [esp + 0x1c], eax
push ebx
xor ebx, ebx
test eax, eax
je 0x5de330
cmp eax, 0x40
jb 0x5de31b
lea ecx, [edx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x5de29f
cmp edi, edx
jae 0x5de31b
push ebp
mov ebp, eax
lea edi, [edx + 0x30]
and ebp, 0xffffffc0
lea ecx, [esi + 0x10]
mov dword [esp + 0x10], ebp
mov ebp, edx
sub ebp, esi
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop
movups xmm0, xmmword [ecx - 0x10]
add ebx, 0x40
lea edi, [edi + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edi - 0x70]
pxor xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movups xmm0, xmmword [ecx - 0x40]
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edi - 0x50]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edi - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp ebx, ebp
jb 0x5de2c0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
pop ebp
cmp ebx, eax
jae 0x5de330
sub edx, esi
lea edi, [ebx + esi]
sub eax, ebx
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor byte [edi - 1], cl
sub eax, 1
jne 0x5de322
pop ebx
pop edi
pop esi
add esp, 8
ret

Function at 0x5fbae0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.00632770
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005207d0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x5fbb99
call fcn.005f19a0
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.005f1aa0
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.005f1b50
add esp, 0x14
call fcn.0052b2e8
cmp dword [eax], 2
je 0x5fbb69
call fcn.0052b2e8
cmp dword [eax], 6
je 0x5fbb69
mov esi, 0x80002
mov edi, 0x4d
jmp 0x5fbb71
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.005f19a0
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.005f1aa0
push 0
push esi
push 0x20
call fcn.005f1b50
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x7aa90c
call fcn.005e6620
mov esi, eax
add esp, 4
test esi, esi
jne 0x5fbbbb
push edi
call fcn.00531ee5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.005e5ef0
push edi
push ebx
push 0x6a
push esi
call fcn.005e5f20
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x6077f0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0051e700
mov eax, dword [0x83e264]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x85bcc8], 0
mov dword [esp], 0x7ad140
mov dword [esp + 4], 0x6071e0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x6075a0
mov dword [esp + 0x10], 0x7ad158
mov dword [esp + 0x14], 0x607190
jne 0x60794b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x607941
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005406b6
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.00540710
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x6078bf
push 0x7ad140
push edi
call ebx
test eax, eax
jne 0x607906
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005406b6
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.00540710
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x60793d
push 0x7ad140
push edi
call ebx
test eax, eax
je 0x60793a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x60793a
inc esi
cmp esi, 3
jl 0x607908
mov eax, dword [esp + 0x14]
mov dword [0x842210], eax
mov eax, dword [esp + 0x1c]
mov dword [0x842218], eax
mov eax, dword [esp + 0x24]
mov dword [0x842220], eax
jmp 0x60793d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x85bcc8], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x842210]
call fcn.0051deb6
add esp, 0x230
ret 4
Function at 0x607980
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0051e700
mov eax, dword [0x83e264]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.00520480
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.00520480
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.0054082a
add esp, 0x28
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x607b4f
cmp word [ebx + 8], 2
jne 0x607a72
cmp word [ebx + 0xa], 4
jne 0x607a72
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x607a72
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.00607bb0
mov dword [edi], eax
test eax, eax
je 0x607b48
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x607a40
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.0054082a
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x607b00
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x607a96
sub ecx, edx
je case.0x607b5f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x607ad0
test dl, dl
je 0x607acc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x607ad0
add eax, 2
add ecx, 2
test dl, dl
jne 0x607ab0
xor eax, eax
jmp 0x607ad5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x607b5f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x607b5f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x607a02
cmp dword [esp + 0x844], esi
je 0x607b79
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x607b10
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.0053deaa
mov edi, eax
add esp, 8
test edi, edi
je 0x607b38
push ebp
push ebx
push edi
call fcn.005406b6
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x607b79
mov esi, 8
jmp 0x607b79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x607b5f.11001
jmp dword [eax*4 + 0x607b98]
mov esi, 0x2afa
jmp 0x607b79
mov esi, 0x2afb
jmp 0x607b79
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051deb6
add esp, 0x820
ret 0x18
Function at 0x61ff80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
movzx eax, cl
push esi
mov esi, dword [esp + 0x10]
and eax, 1
test esi, esi
je 0x61ffc2
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
add edi, esi
add ebx, esi
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x61ffa1
pop edi
pop ebx
pop esi
ret
Function at 0x708600
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov dword [esi], 0x12345678
mov dword [esi + 4], 0x23456789
mov dword [esi + 8], 0x34567890
mov cl, byte [ebx]
test cl, cl
je 0x70867f
push ebp
mov ebp, dword [esp + 0x18]
mov eax, 0x12345678
push edi
mov edi, 0x23456789
mov edx, 0x34567890
nop dword [eax]
movsx ecx, cl
lea ebx, [ebx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebp + ecx*4]
movzx ecx, al
add ecx, edi
mov dword [esi], eax
imul edi, ecx, 0x8088405
inc edi
mov ecx, edi
mov dword [esi + 4], edi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ebp + ecx*4]
mov dword [esi + 8], edx
mov cl, byte [ebx]
test cl, cl
jne 0x708640
pop edi
pop ebp
pop esi
pop ebx
ret

Function at 0x708690
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x70873b
cmp dword [esi + 0x7c], ebx
jbe 0x70873b
push ebp
mov ebp, 0xffffff5c
lea ebx, [esi + 0xa4]
sub ebp, esi
nop dword [eax]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
movzx eax, al
mov edi, dword [esi + 0x100d8]
shr ecx, 8
and edi, 0xfffd
or edi, 2
xor ecx, dword [edx + eax*4]
movzx eax, cl
add eax, dword [esi + 0x100d4]
imul eax, eax, 0x8088405
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edx + eax*4]
mov eax, edi
xor eax, 1
mov dword [esi + 0x100d8], ecx
imul eax, edi
shr eax, 8
xor byte [ebx - 1], al
lea eax, [ebx + ebp]
cmp eax, dword [esi + 0x7c]
jb 0x7086c0
xor ebx, ebx
pop ebp
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
mov dword [esi + 0x7c], 0
or ecx, 0xffffffff
cmp eax, edi
cmovne ebx, ecx
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, ebx
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
pop esi
pop ebx
ret
Function at 0x70dce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x70de62
cmp dword [esi + 0x20], 0
je 0x70de62
cmp dword [esi + 0x24], 0
je 0x70de62
mov edi, dword [esi + 0x1c]
test edi, edi
je 0x70de62
cmp dword [edi], esi
jne 0x70de62
mov eax, dword [edi + 4]
cmp eax, 0x2a
je 0x70dd46
cmp eax, 0x39
je 0x70dd46
cmp eax, 0x45
je 0x70dd46
cmp eax, 0x49
je 0x70dd46
cmp eax, 0x5b
je 0x70dd46
cmp eax, 0x67
je 0x70dd46
cmp eax, 0x71
je 0x70dd46
cmp eax, 0x29a
jne 0x70de62
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x70dd7b
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x70dd9d
call fcn.0070e8a0
jmp 0x70dda2
call fcn.0070ece0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.0070f490
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.00520480
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x80598a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x805988]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x80598c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x80598e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
pop edi
mov eax, 0xfffffffe
pop esi
ret
Function at 0x710cd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72d380
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.0050b2d0
push str.Log_ServerNamePipe
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0050b2f0
test al, al
jne 0x710d6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x710d60
cmp byte [0x85cd38], 0
jne 0x710dc5
push eax
push str.Need_to_Start_LogServer_for_turn_on_debug_log.
push 0x7d
push 0x809780
push 5
call fcn.00510400
add esp, 0x14
mov byte [0x85cd38], 1
xor bl, bl
jmp 0x710dcb
push eax
push str.Initial_pipe_client_failed__err_d
push 0x82
jmp 0x710db6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x710d72
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x21c]
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0050b3b0
test al, al
jne 0x710dc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.pipe_send_failed_._err_d
push 0x89
push 0x809780
push 5
call fcn.00510400
add esp, 0x14
xor bl, bl
jmp 0x710dcb
mov bl, 1
lea ecx, [ebp - 0x21c]
call fcn.0050b2e0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret
Function at 0x710f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7324b1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x220], edi
lea esi, [edi + 0x40]
mov dword [ebp - 0x224], edi
push 0x28
mov dword [ebp - 0x220], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051dec4
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [edi + 0x4c]
mov dword [edi + 0x48], vtable.CCriticalSectionLocker.0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x20a
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push 0
push eax
mov byte [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00520480
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xffffffffffffffff
push str.WinTrust.dll
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.00540bec
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x71108f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminAcquireContext2
push eax
call esi
push str.CryptCATAdminCalcHashFromFileHandle2
push dword [ebp - 0x220]
mov dword [edi + 8], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0xc], eax
je 0x711074
test eax, eax
je 0x711074
mov byte [edi], 1
jmp 0x71108f
push str.CVerifyFileSignV2::CVerifyFileSignV2
push str._s___Do_not_support_multiple_sign.
push 0x2c
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_srcServerlibFileIOMultiPleSignCheck.cpp
push 0x44
call fcn.0050ff70
add esp, 0x14
push 0x30
lea ecx, [edi + 0x10]
push 0
push ecx
call fcn.00520480
add esp, 0xc
mov ecx, edi
push 0
call fcn.00711840
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051deb6
mov esp, ebp
pop ebp
ret
Function at 0x7116a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
push str.IsIntegrityCheckEnabled
push 0x809d9c
push 0x1f7
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_srcServerlibFileIOMultiPleSignCheck.cpp
push 0x44
call fcn.0050ff70
add esp, 0x18
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x7117ee
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x7117be
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x71178b
push eax
call dword [sym.imp.dbghelp.dll_ImageNtHeader]
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x711767
cmp ecx, 0x20b
je 0x711767
push ecx
push str.IsIntegrityCheckEnabled
push str._s___Unrecognized_platform_type:__x
push 0x20f
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_srcServerlibFileIOMultiPleSignCheck.cpp
push 0x45
call fcn.0050ff70
add esp, 0x18
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
jmp 0x711814
movzx esi, word [eax + 0x5e]
push dword [ebp - 4]
shr esi, 7
and esi, 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
jmp 0x711814
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsIntegrityCheckEnabled
push str._s___Failed_to_call_MapViewOfFile__Windows_error_code:__x
push 0x218
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_srcServerlibFileIOMultiPleSignCheck.cpp
push 0x45
call fcn.0050ff70
add esp, 0x18
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
call edi
jmp 0x711814
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IsIntegrityCheckEnabled
push str._s___Failed_to_create_file_mapping__Windows_error_code:__x
push 0x21f
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_srcServerlibFileIOMultiPleSignCheck.cpp
push 0x45
call fcn.0050ff70
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
push ebx
call edi
jmp 0x711814
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.IsIntegrityCheckEnabled
push str._s___Failed_to_open_file:__s__Windows_error_code
push 0x226
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_srcServerlibFileIOMultiPleSignCheck.cpp
push 0x45
call fcn.0050ff70
add esp, 0x1c
push esi
push str.IsIntegrityCheckEnabled
push str._s_______d
push 0x229
push str.C:_actions_runner_work_app_xbc_win_agent_app_xbc_win_agent_srcServerlibFileIOMultiPleSignCheck.cpp
push 0x44
call fcn.0050ff70
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x715b4b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x80b8e0
push esi
call fcn.0053deb5
pop ecx
pop ecx
test eax, eax
jne 0x715b79
xor al, al
jmp 0x715bf6
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0071588c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x715bb3
push dword [ebp - 0x210]
call fcn.00531f15
xor al, al
jmp 0x715bf4
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x715bb9
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x715bd9
push edx
call fcn.00715a82
pop ecx
test al, al
je 0x715ba4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x715be7
mov bl, 1
push dword [ebp - 0x210]
call fcn.00531f15
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051deb6
leave
ret

Function at 0x716734
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x83e264]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x716777
call fcn.0052b2d5
mov dword [eax], 0xf
call fcn.0052b2e8
mov dword [eax], 0xd
call fcn.0052980f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051deb6
leave
ret
test eax, eax
jne 0x71677e
inc eax
jmp 0x71676b
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x716769
xor eax, eax
cmp ecx, 1
setne al
jmp 0x71676b

Function at 0x7180a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x718100
push 0x85ceb4
call fcn.004da7f0
mov esi, dword [ebp + 8]
add esp, 0xc
mov edi, dword [esi + 8]
sub edi, dword [esi]
mov eax, dword [esi + 4]
add eax, dword [esi]
push 0
push edi
push eax
push dword [0x85ceb0]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jns 0x7180ea
push 0x23
call fcn.004d86d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret
add dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebp
ret