joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4306c4
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [eax + edi + 8], ebx
je 0x4306e3
xor al, al
jmp 0x430817
push 0x574538
push 0x24000
push ebx
push ebx
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4306dc
push esi
lea eax, [ebp - 0x2c]
push eax
push 2
push ebx
mov ecx, edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call fcn.00425802
mov ecx, eax
call fcn.00425169
mov esi, dword [eax + 8]
add esi, dword [eax]
push ebx
push ebx
mov ecx, edi
call fcn.00425802
lea eax, [esi + 1]
push eax
call fcn.0051889c
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x430809
lea eax, [esi + 1]
push eax
push ebx
push edi
call fcn.0052b710
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push 0xffffffffffffffff
push edi
call fcn.00425878
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push esi
mov byte [edi + esi], bl
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x430789
push 2
pop eax
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call edi
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x430800
inc eax
push eax
call fcn.0051889c
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x430800
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push ebx
push eax
call fcn.0052b710
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
push dword [ebp - 0xc]
call edi
cmp eax, 1
jne 0x4307f7
push ebx
push 7
push dword [ebp - 8]
push dword [ebp + 8]
push 0x10001
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
jne 0x4307f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
sete byte [ebp - 1]
push dword [ebp + 8]
call fcn.0052ba64
pop ecx
push dword [ebp - 0xc]
call fcn.0052ba64
pop ecx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x43081d
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push str.ROOT
push ebx
mov byte [ebp - 1], bl
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4308dc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x43084e
mov eax, dword [eax + 4]
jmp 0x430851
add eax, 4
push esi
push ebx
push eax
push 0x70007
push ebx
push 0x10001
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov esi, eax
cmp esi, ebx
je 0x4308d1
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push dword [esi + 8]
mov dword [ebp + 8], ebx
push dword [esi + 4]
call edi
cmp dword [ebp + 8], ebx
jbe 0x4308d0
push dword [ebp + 8]
call fcn.0051889c
pop ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
push dword [esi + 8]
mov dword [ebp - 8], eax
push dword [esi + 4]
call edi
cmp eax, 1
jne 0x4308c7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 8], ebx
jne 0x4308c7
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004305c8
mov byte [ebp - 1], 1
push dword [ebp - 8]
call fcn.0052ba64
pop ecx
pop edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret 8
Function at 0x43449d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 0x50
mov eax, 0x55b29e
call fcn.0052b4da
mov ecx, dword [ebp + 0x148]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
call fcn.00402286
xor edi, edi
inc edi
push 2
pop esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
call fcn.004a3310
cmp eax, 0x800
jl 0x4344fb
push 0x22
pop esi
lea eax, [ebp - 0x5c]
push eax
call fcn.0049ac60
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x434514
mov eax, dword [eax + 4]
jmp 0x434517
add eax, 4
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0
mov ebx, eax
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
call fcn.00402cff
test ebx, ebx
je 0x434630
push 0x57147c
push 0x72
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x434630
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x434630
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0052b867
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x434630
push esi
push 0
push eax
call fcn.0052b710
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x14]
call fcn.0052c940
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
call fcn.0042cb18
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x4345b9
mov eax, dword [eax + 4]
jmp 0x4345bc
add eax, 4
push eax
push 0x1dcd204
lea ecx, [ebp]
call fcn.0040c432
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402cff
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040c41b
lea esi, [eax + 1]
test esi, esi
jbe 0x434624
push esi
call fcn.0052b867
mov ebx, eax
pop ecx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x434624
push esi
push 0
push ebx
call fcn.0052b710
add esp, 0xc
push esi
push ebx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040c3ef
test al, al
je 0x434624
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00402cde
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040c2a1
and dword [ebp - 4], 0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x434644
push dword [ebp - 0x14]
call fcn.0052b78a
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x434652
push dword [ebp - 0x1c]
call fcn.0052b78a
pop ecx
cmp dword [ebp - 0x18], esi
je 0x434660
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13c]
xor ecx, ebp
call fcn.0052b498
add ebp, 0x140
leave
ret 4
Function at 0x442d66
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x15c
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x15c], eax
push 0x90
mov eax, 0x55daa4
call fcn.0052b4da
mov esi, dword [ebp + 0x168]
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.004029ad
push dword [ebp + 0x16c]
xor ebx, ebx
lea eax, [ebp - 0x30]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00442c3b
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x442dfa
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.004029df
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call fcn.00402a6c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402a6c
mov eax, esi
jmp 0x442f6e
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
cmp edi, eax
jae 0x442f3e
push edi
lea ecx, [ebp - 0x30]
call fcn.004077c8
push str..
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004069b7
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x442e3c
mov eax, dword [eax + 4]
jmp 0x442e3f
add eax, 4
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push ebx
lea ecx, [ebp - 0x64]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00402cff
cmp esi, 0xffffffff
je 0x442f45
lea eax, [ebp + 0x2c]
push eax
call fcn.0052acd0
pop ecx
test eax, eax
jbe 0x442f0c
cmp byte [ebp + 0x2c], 0x2e
je 0x442f0c
test byte [ebp], 0x10
je 0x442f0c
push edi
lea ecx, [ebp - 0x30]
call fcn.004077c8
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0049b1e0
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x140]
push eax
mov byte [ebp - 4], 5
call fcn.004069b7
add esp, 0xc
push 0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.00402cff
lea eax, [ebp + 0x140]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0049b1e0
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00402b4d
push 0
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00402cff
push 0
push ebx
lea ecx, [ebp + 0x140]
mov byte [ebp - 4], 3
call fcn.00402cff
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x442e64
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc edi
jmp 0x442dfe
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
call fcn.004029df
or dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402a6c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402a6c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x15c]
xor ecx, ebp
call fcn.0052b498
add ebp, 0x160
leave
ret
Function at 0x44a052
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x55ed52
call fcn.0052b4a7
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
test byte [0x5c99e4], bl
jne 0x44a0f5
movzx eax, word [0x5c9a30]
movzx ecx, word [0x5c9a32]
imul eax, eax, 0x9069
mov edx, dword [0x5c9a38]
add eax, ecx
movzx ecx, word [0x5c9a5c]
or dword [0x5c99e4], ebx
imul ecx, ecx, 0x4650
mov dword [0x5c9a30], eax
movzx eax, word [0x5c9a5e]
add ecx, eax
mov eax, dword [0x5c9a58]
imul eax, eax, 0x10dcd
mov esi, edx
shl esi, 0xc
xor esi, edx
mov edi, edx
add eax, 0x12d687
shl esi, 5
shr edi, 0xd
xor esi, edi
mov dword [0x5c9a58], eax
xor edx, esi
xor al, cl
add al, dl
mov dword [0x5c9a5c], ecx
mov dword [0x5c9a38], edx
mov byte [0x5c99e0], al
xor esi, esi
jmp 0x44a0fa
mov al, byte [0x5c99e0]
test byte [0x5c99e4], 2
jne 0x44a171
or dword [0x5c99e4], 2
mov cl, al
xor cl, 0x63
mov byte [0x5c99d8], cl
mov cl, al
dec cl
xor cl, 0x6d
mov byte [0x5c99d9], cl
mov cl, al
sub cl, 2
xor cl, 0x39
mov byte [0x5c99da], cl
mov cl, al
sub cl, 3
xor cl, 0x6b
mov byte [0x5c99db], cl
mov cl, al
sub cl, 4
xor cl, 0x61
mov byte [0x5c99dc], cl
mov cl, al
sub cl, 5
xor cl, 0x6d
mov byte [0x5c99dd], cl
mov cl, al
sub cl, 6
xor cl, 0x38
sub al, 7
xor al, 0x3d
mov byte [0x5c99de], cl
mov byte [0x5c99df], al
mov ecx, dword [ebp - 0x14]
push esi
push 8
call fcn.004074dc
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
mov bl, byte [0x5c99e0]
mov ecx, dword [ebp - 0x14]
sub bl, al
xor bl, byte [eax + 0x5c99d8]
push eax
call fcn.00407504
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
mov byte [eax], bl
jb 0x44a185
mov eax, dword [ebp - 0x14]
call fcn.0052b57f
ret
Function at 0x44da37
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x44dac4
cmp dword [0x5c9b30], 0x10
mov eax, dword [0x5c9b1c]
jae 0x44da6b
mov eax, 0x5c9b1c
push ebx
push esi
push 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x44dabd
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44daba
cmp dword [ebp - 0x20], 4
je 0x44dab6
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x44daba
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x44daca
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x44db48
cmp dword [0x5c9b30], 0x10
mov eax, dword [0x5c9b1c]
jae 0x44dafe
mov eax, 0x5c9b1c
push ebx
push esi
push 4
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x44db41
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44db3e
cmp dword [ebp - 0x20], 4
jne 0x44db3e
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x45e302
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push 0
push eax
mov esi, ecx
call fcn.0052b710
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 0xc
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb0]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x20]
call fcn.00402cde
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb4]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x3c]
call fcn.00402cde
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0xb8], 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b498
leave
ret

Function at 0x464f9e
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x40
mov eax, 0x561a5d
call fcn.0052b4a7
mov eax, dword [ebp + 0x12c]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x18], ebx
jne 0x46509e
push 0x103
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.0052b710
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.00449faa
push ebx
push str.Temp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.00449faa
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0040f92f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040d7b5
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040a269
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040a269
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp]
call fcn.0040e015
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 3
call fcn.00402bda
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402cff
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.0040a269
mov ecx, dword [ebp - 0x10]
add esi, 4
push esi
call fcn.004022f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0052b498
add ebp, 0x124
leave
ret 4

Function at 0x46c1c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, edx
mov eax, edx
xor eax, dword [esp + 0xc]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x46c1f7
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x46c1d6
pop edi
pop esi
ret
Function at 0x472a50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x561bd3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00518c17
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x472aa1
mov eax, dword [esi + 0x1c]
push eax
call fcn.005295c1
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x473c70
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x473c8b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x473f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5620b3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov word [eax + 4], si
mov dword [eax + 0x34], edx
xor edx, edx
mov dword [eax + 0x30], ecx
mov word [eax + 0x20], dx
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x474230
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x56216b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2a8]
mov ebx, dword [esp + 0x2a0]
mov esi, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x2b0]
push 0xffffffffffffffff
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2a8]
push edi
mov dword [esp + 0x20], ecx
xor edx, edx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.0040d7b5
mov eax, dword [esp + 0x30]
mov dword [esp + 0x294], edi
cmp eax, edi
je 0x474343
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4742de
call fcn.0052aff1
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x4742ed
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x5c
je 0x47433c
lea edi, [eax - 1]
cmp edi, eax
jbe 0x474304
call fcn.0052aff1
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], 8
mov ecx, dword [esp + 0x20]
jae 0x474313
lea ecx, [esp + 0x20]
cmp word [ecx + edi*2], 0x2f
je 0x47433c
lea edi, [eax - 1]
cmp edi, eax
jbe 0x474326
call fcn.0052aff1
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x474335
lea eax, [esp + 0x20]
cmp word [eax + edi*2], 0x3a
jne 0x474343
mov edx, 0x578c6c
jmp 0x474348
mov edx, 0x578c64
mov eax, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474350
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00472870
mov eax, dword [esp + 0x20]
mov edi, 8
cmp dword [esp + 0x34], edi
jae 0x47437d
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4743db
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], 0
call edi
cmp eax, 2
je 0x4743b0
call edi
cmp eax, 0x12
je 0x4743b0
call edi
mov esi, eax
jmp 0x4743b2
xor esi, esi
call fcn.0048fb30
cmp dword [esp + 0x34], 8
mov edi, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
jb 0x4743d4
mov edx, dword [esp + 0x20]
push edx
call fcn.005295c1
add esp, 4
mov eax, edi
jmp 0x474461
lea eax, [esp + 0x64]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4743e2
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0040f805
mov eax, dword [esp + 0x38]
test eax, 0x400
je 0x47441a
mov dword [esi], 0
mov dword [ebp], 0
jmp 0x47443a
test al, 0x10
je 0x47442d
mov dword [esi], 3
mov dword [ebp], 3
jmp 0x47443a
mov dword [esi], 2
mov dword [ebp], 2
mov esi, dword [esp + 0x14]
mov dword [esi], 0
call fcn.0048fb30
mov dword [esi + 4], eax
cmp dword [esp + 0x34], edi
jb 0x47445f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005295c1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0052b498
add esp, 0x284
ret
Function at 0x474da0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x5622b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x474df8
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x474de4
mov dword [esi], 0
call fcn.0048fb30
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
cmp eax, 3
je 0x474e73
cmp eax, 0xb
je 0x474e73
push str.boost::filesystem::remove
lea ecx, [esp + 0x2c]
call fcn.0040229b
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x58]
push ecx
push eax
push eax
mov dword [esp + 0x5c], 1
call fcn.00473c70
add esp, 4
test al, al
sete dl
movzx eax, dl
push eax
call fcn.00474c10
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x474e57
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005295c1
add esp, 4
test bl, bl
je 0x474ef2
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
push 0x19
xor esi, esi
push str.boost::filesystem::remove
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
call fcn.00402c6c
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], 8
jb 0x474ea9
mov eax, dword [esi + 4]
jmp 0x474eac
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x5c]
test eax, eax
setne al
lea edx, [esp + 0xc]
push edx
test al, al
sete dl
push ecx
movzx eax, dl
push esi
push eax
call fcn.00474c10
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x474eea
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005295c1
add esp, 4
test bl, bl
jne 0x474de4
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx + 0x18], 8
push edi
jb 0x475041
mov eax, dword [ebx + 4]
jmp 0x475044
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47506a
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.00474f10
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
ret
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x475081
mov dword [esi], 0
call fcn.0048fb30
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x4750b4
push ebx
call fcn.00473ca0
add esp, 4
test al, al
je 0x4750ac
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
ret
pop edi
mov eax, 9
pop ebx
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
ret