joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59fc6d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0059ad1a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x59fcdc
cmp esi, dword [ebp - 4]
je 0x59fcd7
cmp dword [ebp + 0xc], 0
je 0x59fcd7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x59fcb4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0059fd36
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x59fcde
xor eax, eax
inc eax
jmp 0x59fcde
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x5a0085
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5a00d0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005a01fb
test al, al
jne 0x5a00ca
sub edx, 2
cmp edx, edi
jne 0x5a00b0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5a00f2
lea eax, [edi + 2]
cmp edx, eax
je 0x5a00f2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0059ffd1
add esp, 0x10
jmp 0x5a01ec
push esi
lea ecx, [ebp - 0x255]
call fcn.005a01fb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a0135
push dword [ebp - 0x25c]
jmp 0x5a00e2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5a0172
cmp word [ebp - 0x226], 0
je 0x5a0193
cmp word [ebp - 0x226], ax
jne 0x5a0172
cmp word [ebp - 0x224], 0
je 0x5a0193
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0059ffd1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5a01df
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5a014c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5a01c7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5a01ec
push 0x5a0220
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00597490
add esp, 0x10
jmp 0x5a01bc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005810d5
leave
ret
Function at 0x5a1721
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5a17be
push ebx
push esi
call fcn.005a180f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005a12d3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5a176b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5a17bd
push edi
push eax
call fcn.0057b920
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5a178b
call fcn.00573ab0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5a17bc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005a12d3
add esp, 0x20
test eax, eax
jne 0x5a17aa
push edi
call fcn.00573ab0
jmp 0x5a17b2
push ebx
call fcn.00573ab0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5a17c1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5a17d2
pop esi
ret
push ebx
push edi
push esi
call fcn.005a180f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057b920
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5a17fa
push ebx
push esi
push edi
call fcn.005822f0
add esp, 0xc
push 0
call fcn.00573ab0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5a1851
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a1abc

Function at 0x5aadb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, edx
mov esi, ecx
mov eax, dword [0x64f6c4]
mov ecx, dword [0x64d82c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x5aadf2
mov ecx, dword [0x64f6c0]
test ecx, ecx
je 0x5aae3a
call dword [0x6445dc]
push edi
push esi
call ecx
test eax, eax
je 0x5aae37
pop esi
pop edi
pop ebp
ret
push 0x64f6c4
call fcn.0057dc73
add esp, 4
cmp dword [0x64f6c4], 0xffffffff
jne 0x5aadd6
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x5aae4c
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64f6c0], eax
push 0x64f6c4
call fcn.0057dcc2
add esp, 4
jmp 0x5aadd6
int3
test edi, edi
je 0x5aadee
push edi
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x5aadee
int3
int3
Function at 0x5ab170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov esi, dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
cmp esi, eax
je 0x5ab1f2
mov edi, ecx
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x20]
mov ecx, esi
push ebx
call fcn.0040a0e0
test al, al
je 0x5ab1f7
cmp esi, dword [edi + 0x2c]
je 0x5ab1f2
cmp byte [esi + 0x1b], 0
jns 0x5ab1b8
mov eax, dword [esi + 0x10]
jmp 0x5ab1bb
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x5ab1de
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
inc edi
jmp 0x5ab1de
add esi, 0x58
cmp esi, dword [ebp - 0x24]
jne 0x5ab19c
mov esi, dword [ebp - 0x24]
jmp 0x5ab1a8

Function at 0x5ab670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov edi, dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
cmp edi, eax
je 0x5ab708
mov esi, ecx
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x20]
mov ecx, edi
push ebx
call fcn.0040a0e0
test al, al
je 0x5ab6fb
xor ebx, ebx
inc ebx
cmp edi, dword [esi + 0x2c]
je 0x5ab6e7
mov eax, dword [edi + 0x50]
cmp eax, dword [ebp + 8]
jne 0x5ab70d
cmp byte [edi + 0x1b], 0
js 0x5ab6c3
lea eax, [edi + 0x10]
jmp 0x5ab6c6
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5ab6e7
shr eax, 3
and eax, 2
mov ebx, eax
jne 0x5ab6e7
mov byte [esi + 0x24], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
add edi, 0x58
cmp edi, dword [ebp - 0x24]
jne 0x5ab69c
mov edi, dword [ebp - 0x24]
jmp 0x5ab6a8
xor ebx, ebx
inc ebx
jmp 0x5ab6e7
xor ecx, ecx
cmp eax, 1
sete cl
lea ebx, [ecx + ecx*2]
inc ebx
jmp 0x5ab6e7
Function at 0x5aed30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx + 8], edi
mov eax, dword [0x65e714]
mov ecx, dword [0x64d82c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x5aeda7
push 0x65e714
call fcn.0057dc73
add esp, 4
cmp dword [0x65e714], 0xffffffff
jne 0x5aeda7
push 0
push str.::IsWow64Process
push 0x62d994
call fcn.00453e20
add esp, 0xc
mov dword [0x65e710], eax
push 0x65e714
call fcn.0057dcc2
add esp, 4
mov ecx, dword [0x65e710]
test ecx, ecx
je 0x5aef4f
lea ebx, [ebp - 0x14]
mov dword [ebx], 0xffffffff
call dword [0x6445dc]
push ebx
push edi
call ecx
test eax, eax
je 0x5aef08
cmp dword [ebp - 0x14], 0
setne byte [esi + 0x5d]
je 0x5aef53
mov byte [esi + 0x5c], 0
lea eax, [esi + 0x30]
lea ebx, [esi + 0x28]
mov ecx, edi
mov edx, esi
push eax
push ebx
call fcn.005aefc0
add esp, 8
test al, al
je 0x5aee51
cmp byte [esi + 0x5c], 0
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov ecx, edi
jne 0x5aee48
push esi
push eax
call fcn.00434270
add esp, 8
test al, al
je 0x5aeed2
movzx edx, byte [esi + 0x5c]
mov ecx, edi
push esi
call fcn.00432ff0
add esp, 4
mov bl, 1
test al, al
je 0x5aee87
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret 4
push esi
push eax
call fcn.006084e0
jmp 0x5aee0f
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x5aeecb
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x242
push str.process_info.cc
call fcn.0040ca50
lea eax, [ebp - 0xb4]
push 0x21
push str.GetProcessBasicInformation_failed
jmp 0x5aeebb
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x5aeecb
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x250
push str.process_info.cc
call fcn.0040ca50
lea eax, [ebp - 0xb4]
push 0x15
push str.ReadMemoryInfo_failed
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.0040b060
xor ebx, ebx
jmp 0x5aee2f
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x5aeecb
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x24b
push str.process_info.cc
call fcn.0040ca50
lea eax, [ebp - 0xb4]
push 0x16
push str.ReadProcessData_failed
jmp 0x5aeebb
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x5aef4f
call fcn.00417770
lea ebx, [ebp - 0xbc]
mov ecx, ebx
push eax
push 2
push 0x4d
push str.process_info.cc
call fcn.00409720
lea eax, [ebp - 0xb4]
push 0xe
push 0x63a15c
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, ebx
call fcn.00409610
mov byte [esi + 0x5d], 0
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0xbc]
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x20], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebx], 9
sete byte [esi + 0x5c]
jne 0x5aede2
push 2
call fcn.00557ce0
add esp, 4
test al, al
je 0x5aeecb
lea esi, [ebp - 0xbc]
mov ecx, esi
push 2
push 0x234
push str.process_info.cc
call fcn.0040ca50
lea eax, [ebp - 0xb4]
push 0x32
push str.Reading_x64_process_from_x86_process_not_supported
jmp 0x5aeebb
Function at 0x5b3180
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x5b318f
dec eax
mov dword [ecx + 4], eax
pop ebp
jmp fcn.005b31a0

Function at 0x5b49f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xcc
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0xc], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x30]
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
mov dword [esi + 0x20], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esi + 0x14], 0x100
jae 0x5b4a52
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
mov ebx, 0xff
cmovb ebx, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xcc
pop esi
pop ebx
pop ebp
ret
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x5b4a2c
lea esi, [ebp - 0xd4]
mov ecx, esi
push 1
push 0x10a
push str.system_snapshot_win.cc
call fcn.0040ca50
lea eax, [ebp - 0xcc]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.0040b060
jmp 0x5b4a2c
Function at 0x5d7c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov ebx, edx
mov dword [esp + 8], ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0xa8], eax
mov dword [esp + 0x20], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x5d7ea9
xor edi, edi
dec edi
mov dword [esp + 0x98], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
lea esi, [esp + 0x50]
mov ecx, ebx
push esi
call fcn.0041a1b0
cmp byte [esi + 0xb], 0
mov dword [esp + 0xc], ebx
js 0x5d7d6a
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa0], eax
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x98], xmm0
lea ebx, [esp + 0x50]
mov ecx, ebx
call fcn.0053cc40
lea esi, [esp + 0x8c]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, dword [esp + 0xc]
push esi
call fcn.005df0a0
pxor xmm0, xmm0
movq qword [ebx + 0x34], xmm0
pxor xmm0, xmm0
movdqu xmmword [ebx + 0x24], xmm0
mov dword [ebx], 0x3c
mov dword [ebx + 4], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], str.runas
cmp byte [esp + 0xa3], 0
js 0x5d7d80
lea ecx, [esp + 0x98]
jmp 0x5d7d87
lea ecx, [esp + 0x98]
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.00556f30
jmp 0x5d7d04
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 8]
mov al, byte [ebp + 8]
mov dword [esp + 0x60], ecx
cmp byte [esp + 0x97], 0
jns 0x5d7da3
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x64], esi
xor esi, esi
mov dword [esp + 0x68], esi
xor al, 1
movzx eax, al
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], esi
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x5d7e28
cmp byte [ebp + 0xc], 0
je 0x5d7e21
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea esi, [esp + 0x10]
push 0x9f
push str.launch_win.cc
push str.LaunchElevatedProcess
push esi
call fcn.0051dbb0
add esp, 0x10
mov ecx, ebx
push 0
push esi
call fcn.005369c0
push 0xffffffffffffffff
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, ebx
lea ebx, [esp + 0x50]
call fcn.00545870
mov esi, dword [esp + 0x88]
mov ecx, edi
push esi
call fcn.00412240
cmp byte [esp + 0x97], 0
jns 0x5d7e49
push dword [esp + 0x8c]
call fcn.0057dc2b
add esp, 4
cmp byte [esp + 0xa3], 0
jns 0x5d7e62
push dword [esp + 0x98]
call fcn.0057dc2b
add esp, 4
mov dword [esp + 0x20], 0xa
mov al, byte [0x64f42e]
test al, al
jne 0x5d7e8b
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, al
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x20]
push 2
push ebx
push ecx
push eax
call fcn.005beed0
add esp, 0x10
jmp 0x5d7e73
movzx eax, al
lea ecx, [esp + 0x50]
mov dword [ecx], str.LaunchElevatedProcess
lea edx, [esp + 0x20]
push 1
push ecx
push edx
push eax
call fcn.005be340
add esp, 0x10
jmp 0x5d7cb8
Function at 0x5fffd0
Capabilities:
Terminate process

Disassembly:
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
je 0x5fffe6
push ebp
mov ebp, esp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebp
ret
test eax, eax
jne 0x5fffd8
cmp dword [ecx + 0xc], 0
jne 0x5fffd8
cmp dword [ecx + 4], 0
jne 0x5fffd8
jmp 0x5fffe5
Function at 0x603470
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x603493
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x603504
cmp byte [ebp + 0x10], 0
je 0x6034b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x60351b
cmp dword [0x650774], 2
jg 0x603502
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x61
push str.filesystem_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.00545ec0
add esp, 0xc
push edi
push eax
call fcn.00453e70
add esp, 8
mov ecx, esi
call fcn.00409610
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push edi
call fcn.00409560
add esp, 8
test al, al
jne 0x603504
cmp dword [0x650774], 2
jg 0x603502
lea esi, [ebp - 0xb8]
mov ecx, esi
push 2
push 0x5c
push str.filesystem_win.cc
call fcn.0040ca50
lea eax, [ebp - 0xb0]
push edi
push eax
call fcn.00453e70
add esp, 8
push 0x10
push str._not_a_directory
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.0040b060
jmp 0x603502

Function at 0x603580
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov esi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x6035a3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6035bf
and eax, 0x410
cmp eax, 0x410
je 0x60363f
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x6035c9
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x603628
cmp dword [0x650774], 2
jg 0x603626
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [ebp - 0xb8]
mov ecx, edi
push eax
push 2
push 0x93
push str.filesystem_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.00545ec0
add esp, 0xc
push esi
push eax
call fcn.00453e70
add esp, 8
mov ecx, edi
call fcn.00409610
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov ecx, esi
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00603660
Function at 0x603660
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x603682
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
jne 0x6036dc
cmp dword [0x650774], 2
jg 0x6036dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [ebp - 0xb8]
mov ecx, ebx
push eax
push 2
push 0x2f
push str.filesystem_win.cc
call fcn.00409720
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.00545ec0
add esp, 0xc
push esi
push eax
call fcn.00453e70
add esp, 8
mov ecx, ebx
call fcn.00409610
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x60dae0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00603580
Function at 0x615840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf0
mov dword [ebp - 0xfc], edx
mov esi, ecx
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x50]
movdqu xmmword [ebx + 0x30], xmm0
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.00421890
mov ecx, esi
push ebx
push 0
push 0x40
push edx
push eax
call fcn.004210f0
test al, al
je 0x61593e
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x615904
mov ecx, edi
call fcn.00421890
mov ecx, dword [ebp - 0x14]
mov edi, ecx
sar edi, 0x1f
add eax, ecx
adc edi, edx
mov ecx, esi
mov ebx, dword [ebp - 0xfc]
push ebx
push 0
push 0x108
push edi
mov dword [ebp - 0xf8], eax
push eax
call fcn.004210f0
test al, al
je 0x6159b3
cmp dword [ebx], 0x4550
jne 0x6159e9
mov eax, dword [ebp + 8]
mov bl, 1
test eax, eax
je 0x61599c
mov ecx, dword [ebp - 0xf8]
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x61599c
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x61599a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x15a
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x615972
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x61599a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x154
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_dos_header_from
push eax
call fcn.00545ec0
add esp, 0xc
movsx ecx, byte [esi + 0xb]
test ecx, ecx
jns 0x615988
mov ecx, dword [esi + 4]
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, edi
call fcn.0040b060
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, ebx
add esp, 0xf0
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x61599a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x162
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x615972
push 1
call fcn.00557ce0
add esp, 4
test al, al
je 0x61599a
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x168
push str.pe_image_reader.cc
call fcn.0040ca50
lea eax, [ebp - 0xec]
push 0x23
push str.invalid_signature_in_nt_headers_of
jmp 0x615972
Function at 0x618fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ecx], ebx
mov eax, dword [edi]
sub esp, 0x1c
mov dword [esp + 0x18], ebx
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
lea esi, [ebp - 0x14]
mov dword [esi], ebx
mov ecx, esi
push eax
call fcn.00561df0
mov esi, dword [esi]
lea eax, [esi + 1]
cmp eax, 1
ja 0x619048
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 2
jb 0x619034
call fcn.005050f0
push dword [ebp - 0x14]
call fcn.0056b660
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
push ebx
push dword [ebp + 0x1c]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea esi, [ecx + ecx*4]
jmp 0x61901b