joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10009040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10003f2c
cmp byte [esi + 0x3d], 0
je 0x10003f2c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003f1a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10003ee1
sub eax, 1
je 0x10003ee5
sub eax, 2
jne 0x10003f1a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003f03
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10003f1a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004994
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10004994
mov esp, ebp
pop ebp
ret

Function at 0x100843de
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
jmp 0x1007ff73
lea esp, [esp + 4]
je 0x1007e793
btc edx, eax
dec si
and si, ax
cmp dx, ax
mov esi, dword [eax + 0x3c]
rcl dx, 5
ror dl, 1
bsf dx, ax
clc
add esi, eax
movsx dx, dl
mov dh, ah
sub dl, 0x85
shld edx, eax, 0xd
mov edx, dword [esi + 0x78]
bt si, 6
test edx, edx
pushfd
lea esp, [esp + 4]
je 0x1007e793
shld cx, si, cl
add cl, 0x90
pushal
cmp bh, bl
add edx, eax
push edi
mov ecx, dword [esi + 0x7c]
cmp ebp, 0x57651bb9
add ecx, edx
jmp 0x10083000
stc
sbb ax, 0xcaf5
movzx ax, bl
btc ax, 2
shl eax, cl
push ebp
lahf
test dl, 0x9c
bsr ax, bx
mov ebp, esp
pushfd
pushal
shrd ax, bx, 7
sub esp, 0xffffffec
bsf eax, esi
sub ax, cx
shr al, 7
aas
push esi
xor ah, 0xab
pushfd
mov dword [esp], edi
shrd ax, sp, cl
aaa
pushfd
lea eax, [ecx*8 + 0x5b1f7bb0]
mov dword [esp], ebx
lea eax, [edi*2 + 0x1525c183]
push edx
adc ah, 0x6c
mov eax, dword [ebp + 8]
stc
test eax, eax
pushal
lea esp, [esp + 0x20]
ja 0x1006f82d
je 0x1007e793
xchg si, dx
mov esi, dword [eax + 0x3c]
or edx, ebx
neg dh
bsr dx, ax
shl dx, 1
add esi, eax
call fcn.1006fcd7
Function at 0x4041d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4041e5
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00403ef7
and eax, 0x8d84f0a1
inc ebp
rcl byte [eax - 0x18], 0xc5
cld
invalid

Function at 0x4042d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
wait
xor eax, 0x349c45c6
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00403f07
push eax
push esi
push dword [ebp + 8]
call fcn.00403ebc
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
Function at 0x404330
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00403f07
push eax
push esi
push dword [ebp + 8]
jne 0x40436a
call fcn.00403ebc
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00403ef7
in al, 0xae
cmp edx, esi
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid
jb 0x40438d
inc ebp
lea edi, [edx - 0x3a]
inc ebp
invalid
jae 0x404395
inc ebp
invalid
push edi
mov byte [ebp - 0x70], 0x16
call fcn.00403ef7
lodsb al, byte ds:[esi]
jp 0x40444c
lea eax, [ebp - 0x84]
push eax
call fcn.00403f07
push eax
push esi
push dword [ebp + 8]
call fcn.00403ebc
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x4046f0
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.00403e68
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x404467
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.00403e68
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x404434
dec ebp
adc byte [ebx], al
invalid
call fcn.00403ef7
pop esi
dec eax
xor edx, dword [edi]
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x4046e6
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x40449c
cmp dword [eax + 0xc], ebx
je 0x40453f
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.00403ef7
jmp 0x40448b
call fcn.00403ef7
je 0x40454f
shl dword [eax - 0x75], 0x87
mov al, byte [0x3b000000]
ret
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404560
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4045ab
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4045a6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x404590
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x404598
cmp edx, ebx
jne 0x4046e6
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x404567
add eax, dword [eax + 4]
jmp 0x404554
mov dword [ebp + 0xc], ebx
jmp 0x4045b6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4045ce
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4045ec
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40464a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x404631
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40463a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x404644
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x404626
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4045b0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x404697
dec eax
je 0x40468e
sub eax, 3
je 0x404685
mov dword [ebp - 4], 0x40
jmp 0x4046b4
mov dword [ebp - 4], 4
jmp 0x40469a
mov dword [ebp - 4], 0x20
jmp 0x40469a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4046e6
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x404666
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00403ef7
out 0xae, eax
arpl word [0x6a1475ff], dx
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x4046f2
Function at 0x404610
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4045ab
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4045a6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x404590
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x404598
cmp edx, ebx
jne 0x4046e6
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x404567
add eax, dword [eax + 4]
jmp 0x404554
mov dword [ebp + 0xc], ebx
jmp 0x4045b6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4045ce
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4045ec
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40464a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x404631
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40463a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x404644
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x404626
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4045b0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x404697
dec eax
je 0x40468e
sub eax, 3
je 0x404685
mov dword [ebp - 4], 0x40
jmp 0x4046b4
mov dword [ebp - 4], 4
jmp 0x40469a
mov dword [ebp - 4], 0x20
jmp 0x40469a
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4046e6
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x404666
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00403ef7
out 0xae, eax
arpl word [0x6a1475ff], dx
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x4046f2

Function at 0x404a60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx - 0x7000007], ebp
lea eax, [ebp - 0x664]
push eax
call fcn.00403f07
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403ebc
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
invalid
test ecx, esp
cli
invalid
Function at 0x42f710
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x30]
mov dword [edi + 0x30], 0
test esi, esi
je 0x42f746
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
lea ecx, [ebx + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x42f73d
mov ecx, ebx
call fcn.0042d710
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x42f7c7
mov ecx, dword [eax + 0xc]
call fcn.0042d710
mov esi, dword [edi + 0x34]
test esi, esi
je 0x42f7aa
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
test eax, eax
je 0x42f785
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 4]
push edx
call ebx
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x42f78e
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 0x34]
mov dword [edi + 0x34], 0
test esi, esi
je 0x42f7aa
mov edx, dword [esi]
push edx
call ebx
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [edi + 0x2c]
mov dword [edi + 0x2c], 0
test esi, esi
je 0x42f7c7
push esi
call fcn.00415300
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x434140
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44baa2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
mov dword [esp + 8], 0
lea ecx, [esi + 0x54]
mov dword [esi], 0x45b550
call dword [sym.imp.MSVCP90.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x34], 0
push ecx
mov dword [esp + 0x10], 1
call fcn.00409360
mov dword [esp + 0x30], 1
cmp dword [eax + 0x18], 8
jb 0x4341b1
mov eax, dword [eax + 4]
jmp 0x4341b4
add eax, 4
push 0
push 0x40
push 2
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_wchar_t_const___int__int_]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov dword [esi + eax], vtable.boost::filesystem::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret 8
Function at 0x434420
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x451996
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x30]
xor ebx, ebx
mov dword [esi], vtable.adobe::xml_parser_t_struct_adobe::implementation::null_output_t_.0
mov dword [esi + 8], ebx
cmp eax, ebx
je 0x434475
push ebx
lea ecx, [esi + 0x10]
push ecx
lea edx, [esp + 0x40]
mov dword [esi + 8], eax
mov eax, dword [eax]
push edx
call eax
add esp, 0xc
mov byte [esp + 0x14], 2
mov eax, dword [esp + 0x50]
mov dword [esi + 0x28], ebx
cmp eax, ebx
je 0x434499
push ebx
lea ecx, [esi + 0x30]
push ecx
lea edx, [esp + 0x60]
mov dword [esi + 0x28], eax
mov eax, dword [eax]
push edx
call eax
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
lea eax, [esi + 0x50]
push eax
mov byte [esp + 0x20], 3
call fcn.0043ffc0
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x30]
mov byte [esi + 0x118], bl
cmp eax, ebx
je 0x4344e0
mov eax, dword [eax]
cmp eax, ebx
je 0x4344dc
lea ecx, [esp + 0x38]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x434505
mov eax, dword [eax]
cmp eax, ebx
je 0x434505
lea ecx, [esp + 0x58]
push 1
push ecx
mov edx, ecx
push edx
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x54

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

Disassembly:
push ecx
cmp dword [eax + 0x18], 0x10
jb 0x435fcc
mov eax, dword [eax + 4]
jmp 0x435fcf
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436051
push edi
mov edi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], edi
mov dword [esi], eax
pop edi
cmp eax, 2
je 0x436037
cmp eax, 3
je 0x436037
cmp eax, 0x7b
je 0x436037
cmp eax, 0x57
je 0x436037
cmp eax, 0xa1
je 0x436037
cmp eax, 0x35
je 0x436037
cmp eax, 0x20
jne 0x43602d
mov eax, dword [0x47557c]
mov dword [esi], eax
mov ecx, dword [0x475580]
mov dword [esi + 4], ecx
mov dword [ebx], 9
mov eax, ebx
pop ecx
ret
mov dword [ebx], 0
mov eax, ebx
pop ecx
ret
mov edx, dword [0x47557c]
mov dword [esi], edx
mov eax, dword [0x475580]
mov dword [esi + 4], eax
mov dword [ebx], 1
mov eax, ebx
pop ecx
ret
mov ecx, dword [0x47557c]
mov dword [esi], ecx
mov edx, dword [0x475580]
test al, 0x10
mov dword [esi + 4], edx
lea eax, [esp]
mov dword [esp], 3
jne 0x436077
mov dword [esp], 2
mov eax, dword [eax]
mov dword [ebx], eax
mov eax, ebx
pop ecx
ret
Function at 0x436080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
cmp dword [eax + 0x18], 8
jb 0x43608c
mov eax, dword [eax + 4]
jmp 0x43608f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x436111
push edi
mov edi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], edi
mov dword [esi], eax
pop edi
cmp eax, 2
je 0x4360f7
cmp eax, 3
je 0x4360f7
cmp eax, 0x7b
je 0x4360f7
cmp eax, 0x57
je 0x4360f7
cmp eax, 0xa1
je 0x4360f7
cmp eax, 0x35
je 0x4360f7
cmp eax, 0x20
jne 0x4360ed
mov eax, dword [0x47557c]
mov dword [esi], eax
mov ecx, dword [0x475580]
mov dword [esi + 4], ecx
mov dword [ebx], 9
mov eax, ebx
pop ecx
ret
mov dword [ebx], 0
mov eax, ebx
pop ecx
ret
mov edx, dword [0x47557c]
mov dword [esi], edx
mov eax, dword [0x475580]
mov dword [esi + 4], eax
mov dword [ebx], 1
mov eax, ebx
pop ecx
ret
mov ecx, dword [0x47557c]
mov dword [esi], ecx
mov edx, dword [0x475580]
test al, 0x10
mov dword [esi + 4], edx
lea eax, [esp]
mov dword [esp], 3
jne 0x436137
mov dword [esp], 2
mov eax, dword [eax]
mov dword [ebx], eax
mov eax, ebx
pop ecx
ret

Function at 0x436140
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44a6c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e02c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x436180
mov esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449004
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
push edi
push esi
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jne 0x4361c2
mov esi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 4], esi
jmp 0x4361db
mov ecx, dword [esp + 0x2c]
push edi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [0x475580]
mov eax, dword [0x47557c]
mov dword [ebp + 4], ecx
push edi
mov dword [ebp], eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov eax, ebp
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x436270
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
test byte [0x475920], 1
push esi
mov ebx, vtable.system_error_category.0
jne 0x4362a0
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], ebx
call fcn.004490d5
add esp, 4
test byte [0x475920], 1
mov esi, 0x475908
mov dword [esp + 0x10], ebp
jne 0x4362cc
or dword [0x475920], 1
push 0x455120
mov dword [0x475908], ebx
call fcn.004490d5
add esp, 4
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x18], 8
mov dword [esp + 0x14], esi
jb 0x4362df
mov eax, dword [ebx + 4]
jmp 0x4362e2
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x436301
mov dword [edi + 4], esi
mov byte [edi + 8], 1
mov dword [edi], ebp
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x475594]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0xb7
jne 0x43634e
mov eax, ebx
lea esi, [esp + 0x10]
lea ebx, [esp + 0x1c]
call fcn.00436080
cmp dword [esp + 0x1c], 3
jne 0x43634e
mov ecx, dword [0x47557c]
mov edx, dword [0x475580]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov byte [edi + 8], 0
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
pop esi
mov dword [edi], ebp
pop ebp
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov eax, edi
pop ebx
add esp, 0xc
ret

Function at 0x436370
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, 1
push esi
mov dword [esp + 0x10], 0
test byte [0x475920], al
jne 0x4363ac
or dword [0x475920], eax
push 0x455120
mov dword [0x475908], 0x45bb08
call fcn.004490d5
add esp, 4
lea esi, [esp + 0x10]
mov eax, ebp
lea ebx, [esp + 0xc]
mov dword [esp + 0x14], 0x475908
call fcn.00436080
mov eax, dword [esp + 0x10]
mov ecx, eax
neg ecx
sbb ecx, ecx
test ecx, fcn.00419db0
je 0x4363e7
mov edx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x436409
mov eax, dword [0x47557c]
mov ecx, dword [0x475580]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp eax, 3
jne 0x436441
cmp dword [ebp + 0x18], 8
jb 0x436419
mov ebp, dword [ebp + 4]
jmp 0x43641c
add ebp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x436474
mov esi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [ebp + 0x18], 8
jb 0x43644c
mov ebp, dword [ebp + 4]
jmp 0x43644f
add ebp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x436474
mov esi, dword [0x475594]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
mov eax, edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x475580]
mov edx, dword [0x47557c]
pop esi
pop ebp
mov dword [edi + 4], eax
mov dword [edi], edx
mov eax, edi
pop ebx
add esp, 0xc
ret