joyce8/EMBER2024-capa huggingface dataset:
Function at 0x581680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5816ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5816ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x582746
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x617c04
push str.FlsAlloc
push 0x1f
call fcn.00582bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58277a
push dword [ebp + 8]
mov ecx, esi
call dword [0x63e63c]
call esi
jmp 0x582780
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5827c4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x617c28
push str.FlsGetValue
push 0x21
call fcn.00582bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5827fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x63e63c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x582803
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x617c3c
push str.FlsSetValue
push 0x22
call fcn.00582bf9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x58283d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x63e63c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x586647
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00581f7a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00581f7a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5866be
cmp word [ecx], dx
je 0x5866be
mov eax, dword [0x6185fc]
push edi
dec eax
push eax
push 0x6184e8
call fcn.00586837
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x586731
cmp word [eax], dx
je 0x586731
mov eax, dword [edi]
test eax, eax
je 0x5866e2
cmp word [eax], dx
je 0x5866e2
lea eax, [ebp - 0x10]
push eax
call fcn.00586898
jmp 0x5866eb
lea eax, [ebp - 0x10]
push eax
call fcn.00586b93
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x58675b
mov eax, dword [0x6184e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x6181d8
call fcn.00586837
add esp, 0xc
test al, al
je 0x58675b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x586726
cmp word [eax], di
je 0x586726
lea eax, [ebp - 0x10]
push eax
call fcn.00586898
pop ecx
jmp 0x58675d
lea eax, [ebp - 0x10]
push eax
call fcn.00586b93
jmp 0x586723
mov eax, dword [edi]
test eax, eax
je 0x586748
cmp word [eax], dx
je 0x586748
lea eax, [ebp - 0x10]
push eax
call fcn.00586cd5
pop ecx
jmp 0x58675b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x586826
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00586dc7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x586826
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x586826
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x586826
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5867b3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00582a3c
test ebx, ebx
je 0x586821
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00582a3c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x586826
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x586826
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005786ff
add esp, 0x10
xor eax, eax
inc eax
jmp 0x586828
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00568175
leave
ret
Function at 0x586ecd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00581f7a
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 0x586f3c
cmp esi, dword [ebp - 4]
je 0x586f37
cmp dword [ebp + 0xc], 0
je 0x586f37
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x586f14
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00586f96
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x586f3e
xor eax, eax
inc eax
jmp 0x586f3e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x5872e5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x644040]
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 0x587330
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0058745b
test al, al
jne 0x58732a
sub edx, 2
cmp edx, edi
jne 0x587310
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x587352
lea eax, [edi + 2]
cmp edx, eax
je 0x587352
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00587231
add esp, 0x10
jmp 0x58744c
push esi
lea ecx, [ebp - 0x255]
call fcn.0058745b
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 0x587395
push dword [ebp - 0x25c]
jmp 0x587342
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 0x5873d2
cmp word [ebp - 0x226], 0
je 0x5873f3
cmp word [ebp - 0x226], ax
jne 0x5873d2
cmp word [ebp - 0x224], 0
je 0x5873f3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00587231
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x58743f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5873ac
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x587427
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x58744c
push 0x587480
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0057e590
add esp, 0x10
jmp 0x58741c
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.00568175
leave
ret
Function at 0x588981
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 0x588a1e
push ebx
push esi
call fcn.00588a6f
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.00588533
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5889cb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x588a1d
push edi
push eax
call fcn.00563380
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5889eb
call fcn.00558ca0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x588a1c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00588533
add esp, 0x20
test eax, eax
jne 0x588a0a
push edi
call fcn.00558ca0
jmp 0x588a12
push ebx
call fcn.00558ca0
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 0x588a21
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x588a32
pop esi
ret
push ebx
push edi
push esi
call fcn.00588a6f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00563380
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x588a5a
push ebx
push esi
push edi
call fcn.00569390
add esp, 0xc
push 0
call fcn.00558ca0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x588ab1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00588d1c

Function at 0x5920e0
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 [0x6496dc]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x592122
mov ecx, dword [0x6496d8]
test ecx, ecx
je 0x592167
call dword [0x63e63c]
push edi
push esi
call ecx
test eax, eax
je 0x592179
pop esi
pop edi
pop ebp
ret
push 0x6496dc
call fcn.00564ee8
add esp, 4
cmp dword [0x6496dc], 0xffffffff
jne 0x592106
push str.bcryptprimitives.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x59217c
push str.ProcessPrng
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6496d8], eax
push 0x6496dc
call fcn.00564f37
add esp, 4
jmp 0x592106
test edi, edi
je 0x59211e
push edi
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x59211e
int3
int3
int3
Function at 0x594050
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x59405f
dec eax
mov dword [ecx + 4], eax
pop ebp
jmp fcn.00594070
Function at 0x5b67a0
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 [0x644040]
xor eax, ebp
mov dword [esp + 0xa8], eax
mov dword [esp + 0x20], 0xa
mov al, byte [0x649446]
test al, al
jne 0x5b69c9
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.00427bc0
cmp byte [esi + 0xb], 0
mov dword [esp + 0xc], ebx
js 0x5b688a
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.00558c00
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.005bd930
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 0x5b68a0
lea ecx, [esp + 0x98]
jmp 0x5b68a7
lea ecx, [esp + 0x98]
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.00506680
jmp 0x5b6824
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 0x5b68c3
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 0x5b6948
cmp byte [ebp + 0xc], 0
je 0x5b6941
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.005068d0
add esp, 0x10
mov ecx, ebx
push 0
push esi
call fcn.00520190
push 0xffffffffffffffff
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, ebx
lea ebx, [esp + 0x50]
call fcn.0053b480
mov esi, dword [esp + 0x88]
mov ecx, edi
push esi
call fcn.0040f070
cmp byte [esp + 0x97], 0
jns 0x5b6969
push dword [esp + 0x8c]
call fcn.00564ea0
add esp, 4
cmp byte [esp + 0xa3], 0
jns 0x5b6982
push dword [esp + 0x98]
call fcn.00564ea0
add esp, 4
mov dword [esp + 0x20], 0xa
mov al, byte [0x649446]
test al, al
jne 0x5b69ab
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00568175
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.0059d990
add esp, 0x10
jmp 0x5b6993
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.0059ce00
add esp, 0x10
jmp 0x5b67d8
Function at 0x5d4100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x78], eax
lea esi, [esp + 0x1c]
mov dword [esi], 0xffffffff
mov edx, esi
call fcn.00431b40
mov ebx, dword [esi]
mov edi, 3
mov esi, dword [ebp + 8]
test ebx, ebx
jne 0x5d416d
lea ecx, [esp + 0x1c]
call fcn.00431310
test esi, esi
je 0x5d4156
mov ecx, esi
call fcn.005e3560
push esi
call fcn.00564ea0
add esp, 4
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00568175
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
lea edi, [ebp + 8]
mov al, byte [esi + 0x1c]
mov byte [esp + 0xc], al
xor eax, eax
push eax
call fcn.0057ae95
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov esi, dword [edi]
lea eax, [esi + 0xc]
mov dword [esp + 0x10], eax
lea edi, [esp + 0x20]
mov ecx, edi
call fcn.005e3470
movups xmm0, xmmword [esi + 0x38]
movaps xmmword [edi], xmm0
lea edi, [esp + 0x30]
mov ecx, edi
push dword [esp + 0x10]
call fcn.005421f0
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x40], eax
mov al, byte [esp + 0xc]
mov byte [edi + 0x35], al
lea ecx, [ebx + 0x28]
lea edx, [esp + 0x20]
call fcn.005d5850
mov byte [ebx + 0x24], 1
cmp byte [edi + 0x17], 0
jns 0x5d41f0
push dword [esp + 0x3c]
call fcn.00564ea0
add esp, 4
cmp byte [esp + 0x3b], 0
jns 0x5d4203
push dword [esp + 0x30]
call fcn.00564ea0
add esp, 4
lea ecx, [esi + 8]
lea eax, [esp + 0x20]
push eax
call fcn.005d42c0
cmp byte [esp + 0x2b], 0
jns 0x5d4223
push dword [esp + 0x20]
call fcn.00564ea0
add esp, 4
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
jmp 0x5d4235
mov ecx, dword [edi]
call fcn.005e4a00
add edi, 4
cmp edi, ebx
jne 0x5d422b
lea eax, [esi + 0x38]
mov dword [esp + 0xc], eax
mov ebx, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
jmp 0x5d426a
mov ecx, ebx
lea eax, [esp + 0x20]
push eax
call fcn.005d42c0
cmp byte [esp + 0x2b], 0
jns 0x5d4267
push dword [esp + 0x20]
call fcn.00564ea0
add esp, 4
add ebx, 0x14
cmp ebx, edi
jne 0x5d4248
mov eax, dword [esp + 0xc]
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0xc]
movups xmmword [eax], xmm0
xor edi, edi
push edi
call fcn.005d98c0
add esp, 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea ebx, [eax + ecx]
add ebx, 4
mov eax, dword [ebx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
call dword [0x63e63c]
mov ecx, ebx
push 2
push edi
push edi
call dword [esp + 0x18]
push edx
push eax
call fcn.005d9920
add esp, 8
jmp 0x5d4139
Function at 0x5d4400
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 [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp esi, ebx
je 0x5d447a
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.005e5730
test al, al
jne 0x5d443f
add esi, 0x58
cmp esi, ebx
jne 0x5d442a
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x5d447a
cmp byte [esi + 0x1b], 0
js 0x5d4452
lea eax, [esi + 0x10]
jmp 0x5d4455
mov eax, dword [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 0x5d447d
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
jmp 0x5d447d
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5d45c0
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 [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
mov edi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
cmp edi, ebx
je 0x5d4651
mov dword [ebp - 0x24], ecx
lea esi, [ebp - 0x20]
mov ecx, edi
push esi
call fcn.005e5730
test al, al
jne 0x5d45ff
add edi, 0x58
cmp edi, ebx
jne 0x5d45ea
mov edi, ebx
xor ebx, ebx
inc ebx
mov esi, dword [ebp - 0x24]
cmp edi, dword [esi + 0x2c]
je 0x5d4654
mov eax, dword [edi + 0x50]
cmp eax, dword [ebp + 8]
je 0x5d4620
xor ecx, ecx
cmp eax, 1
sete cl
lea ebx, [ecx + ecx*2]
inc ebx
jmp 0x5d4654
cmp byte [edi + 0x1b], 0
js 0x5d462b
lea eax, [edi + 0x10]
jmp 0x5d462e
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5d4654
shr eax, 3
and eax, 2
mov ebx, eax
jne 0x5d4654
mov byte [esi + 0x24], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor ebx, ebx
jmp 0x5d4654
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5e13e0
Capabilities:
Terminate process

Disassembly:
cmp dword [ecx + 8], 0
mov eax, dword [ecx]
je 0x5e13f6
push ebp
mov ebp, esp
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop ebp
ret
test eax, eax
jne 0x5e13e8
cmp dword [ecx + 0xc], 0
jne 0x5e13e8
cmp dword [ecx + 4], 0
jne 0x5e13e8
jmp 0x5e13f5
Function at 0x5e4f90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, dword [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5e4fb3
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5e4fee
mov ebx, eax
bt eax, 0xa
jae 0x5e4fe6
cmp byte [ebp + 0xc], 0
jne 0x5e4fe6
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
and ebx, 0x10
shr ebx, 4
jmp 0x5e4fcf
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5e4fcd
call fcn.004ed0f0
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x80
push str.filesystem_win.cc
call fcn.00592570
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.005320d0
add esp, 0xc
push edi
push eax
call fcn.005bd5b0
add esp, 8
mov ecx, esi
call fcn.00592350
jmp 0x5e4fcd

Function at 0x5e5050
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 [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5e5073
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x5e50e8
cmp byte [ebp + 0x10], 0
je 0x5e5095
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5e50ff
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5e50e6
call fcn.004ed0f0
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x61
push str.filesystem_win.cc
call fcn.00592570
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.005320d0
add esp, 0xc
push edi
push eax
call fcn.005bd5b0
add esp, 8
mov ecx, esi
call fcn.00592350
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push edi
call fcn.005e4f90
add esp, 8
test al, al
jne 0x5e50e8
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5e50e6
lea esi, [ebp - 0xb8]
mov ecx, esi
push 2
push 0x5c
push str.filesystem_win.cc
call fcn.0040a9f0
lea eax, [ebp - 0xb0]
push edi
push eax
call fcn.005bd5b0
add esp, 8
push 0x10
push str._not_a_directory
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, esi
call fcn.00407a90
jmp 0x5e50e6
Function at 0x5e5160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov edi, dword [ebp + 8]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5e5183
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5e51ae
test eax, 0x410
sete bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5e51ff
call fcn.004ed0f0
lea esi, [ebp - 0xb8]
mov ecx, esi
push eax
push 2
push 0x73
push str.filesystem_win.cc
call fcn.00592570
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.005320d0
add esp, 0xc
push edi
push eax
call fcn.005bd5b0
add esp, 8
mov ecx, esi
call fcn.00592350
xor ebx, ebx
jmp 0x5e5197

Function at 0x5e5210
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 [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x5e5233
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5e524f
and eax, 0x410
cmp eax, 0x410
je 0x5e52d3
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x5e5259
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
test eax, eax
jne 0x5e52bc
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5e52ba
call fcn.004ed0f0
lea edi, [ebp - 0xb8]
mov ecx, edi
push eax
push 2
push 0x93
push str.filesystem_win.cc
call fcn.00592570
lea eax, [ebp - 0xb0]
push 0xb
push str.DeleteFile
push eax
call fcn.005320d0
add esp, 0xc
push esi
push eax
call fcn.005bd5b0
add esp, 8
mov ecx, edi
call fcn.00592350
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
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.00568175
mov ecx, esi
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005e52f0

Function at 0x5e52f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov esi, ecx
mov eax, dword [0x644040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x5e5312
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
je 0x5e533b
test edi, edi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.00563020
add esp, 4
test al, al
je 0x5e531f
call fcn.004ed0f0
lea ebx, [ebp - 0xb8]
mov ecx, ebx
push eax
push 2
push 0x2f
push str.filesystem_win.cc
call fcn.00592570
lea eax, [ebp - 0xb0]
push 0x10
push str.RemoveDirectory
push eax
call fcn.005320d0
add esp, 0xc
push esi
push eax
call fcn.005bd5b0
add esp, 8
mov ecx, ebx
call fcn.00592350
jmp 0x5e531f