joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a3f67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0
mov ebx, 1
mov dword [esp + 0x20], ebx
mov eax, dword [0x628100]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x2c]
mov byte [esp + 0x20], 4
lea eax, [edi - 1]
cmp eax, 0x12
ja case.default.0x40579c
jmp dword [eax*4 + 0x40591c]
push 0x601cec
jmp 0x40581f
push 0x601ce8
jmp 0x40581f
push 0x601ce4
jmp 0x40581f
push 0x601ce0
jmp 0x40581f
push 0x601cdc
jmp 0x40581f
push 0x601cd8
jmp 0x40581f
push 0x601cd4
jmp 0x40581f
push 0x601cd0
jmp 0x40581f
push 0x601ccc
jmp 0x40581f
push 0x601cc8
jmp 0x40581f
push 0x601cc4
jmp 0x40581f
push 0x601cc0
jmp 0x40581f
push 0x601cbc
jmp 0x40581f
push 0x601cb8
jmp 0x40581f
push 0x601cb4
jmp 0x40581f
push 0x601cb0
jmp 0x40581f
push str.VALUE
jmp 0x40581f
push str.UNKNOWN
lea ecx, [esp + 0x10]
call fcn.0058f868
mov eax, dword [esp + 0x30]
push 0x62cce0
push eax
call fcn.00574123
add esp, 8
test eax, eax
jne 0x405854
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0058f454
mov dword [esp + 0x14], ebx
jmp 0x4058cc
mov ecx, dword [esi + edi*4 + 0x20]
mov eax, ecx
and eax, 3
dec eax
je 0x405886
dec eax
jne 0x4058b8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
lea edx, [esp + 0x1c]
push str.__s___s___s_
push edx
call fcn.0058c6ce
add esp, 0x14
jmp 0x4058b8
test cl, 4
lea edx, [esp + 0x10]
je 0x4058a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push str._s__s_
jmp 0x4058af
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push str.__s__s
push edx
call fcn.0058c6ce
add esp, 0x10
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0058f454
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.0058f6df
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.0058f6df
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], bl
call fcn.0058f6df
lea ecx, [esp + 0x34]
mov byte [esp + 0x20], 0
call fcn.0058f6df
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x4079b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a42b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.005967ee
mov ebp, dword [esp + 0x30]
mov dword [esi], vtable.CDIBSMemDC.0
mov dword [esi + 0x48], ebp
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], 0
sete al
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x1c], edx
lea ebx, [esi + 0x4c]
jne 0x407a1c
mov eax, dword [ebp]
push ebx
mov ecx, ebp
call dword [eax + 0x50]
jmp 0x407a34
mov edx, dword [eax]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x407b40
mov eax, dword [ebp + 4]
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.005968a5
mov ecx, dword [ebp + 8]
push 2
push ebx
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
lea edx, [esi + 0x20]
mov ecx, 0xa
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x28
mov eax, dword [ebx + 8]
mov ecx, dword [ebx]
push 0
sub eax, ecx
push 0
mov dword [esi + 0x24], eax
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
lea eax, [esi + 0x10]
sub ecx, edi
push eax
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 4]
push 0
push edx
push ecx
mov word [esi + 0x2c], 1
mov word [esi + 0x2e], 0x18
mov dword [esi + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edx, dword [esi + 4]
push eax
push edx
mov dword [esi + 0x14], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.00596b0b
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x20]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x48]
mov eax, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x20]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [ebp + 8]
push 2
push ebx
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov edx, dword [esi + 0x50]
mov eax, dword [ebx]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.00596c75
pop edi
jmp 0x407b52
mov edx, dword [ebp + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push ebx
mov ecx, esi
call fcn.0059bbba
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x408590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a43ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x628100]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
xor edi, edi
push 0x62cce0
mov dword [esp + 0x1c], edi
call fcn.0058f868
lea ecx, [esp + 0xc]
or eax, 0xffffffff
push ecx
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], eax
mov dword [esi + 8], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi], edi
call fcn.0058ca0f
lea edx, [esp + 0xc]
push edx
call fcn.0058ca0f
lea eax, [esp + 0xc]
push eax
call fcn.0058ca0f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x408630
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a43d0
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x20]
xor ebx, ebx
lea eax, [edi + 0x2c]
mov dword [esp + 0x18], ebx
push eax
push ecx
push edx
call fcn.0058f974
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x1c], 1
call fcn.0058f818
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], bl
call fcn.0058f6df
mov eax, dword [edi]
push 1
mov dword [esi + 8], eax
mov ecx, dword [edi + 0x1c]
push ebx
push ebx
push ecx
call fcn.00574350
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add eax, ecx
mov dword [esi + 0x30], ebx
adc edx, ebp
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
lea edx, [esi + 0x18]
lea eax, [edi + 4]
push edx
push eax
mov dword [esi + 0x2c], ebx
call fcn.00408700
lea ecx, [esi + 0x1c]
lea edx, [edi + 0xc]
push ecx
push edx
call fcn.00408700
lea eax, [esi + 0x20]
add edi, 0x14
push eax
push edi
call fcn.00408700
mov ecx, dword [esp + 0x40]
add esp, 0x18
mov dword [esi], ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4088c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a4416
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebp
push esi
mov esi, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x164]
lea ebp, [esi + 0x12]
push edi
push ebp
call fcn.00408a70
add esp, 8
test eax, eax
jne 0x408905
mov byte [ebp], al
jmp 0x408a4b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40891c
mov byte [ebp], 0
xor eax, eax
jmp 0x408a4b
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea ecx, [esp + 0x10]
call fcn.0058f74d
mov eax, dword [0x628100]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
push ecx
push edi
call fcn.00408be0
add esp, 8
lea ecx, [esp + 0x10]
push 0x600360
call fcn.0058c6e1
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00574123
add esp, 8
test eax, eax
jne 0x40898a
push 0x601dd8
lea ecx, [esp + 0x10]
call fcn.0058fabb
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4089cb
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.0058f6df
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0058f6df
xor eax, eax
jmp 0x408a4b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0x14]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x18]
and al, 0x7f
push esi
push edx
mov byte [esi + 0x10], al
mov dword [esi + 0xc], ecx
call fcn.00408700
lea edi, [esi + 8]
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00408700
lea ebp, [esi + 4]
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00408700
mov eax, dword [esi]
add esp, 0x18
test eax, eax
jne 0x408a17
mov edx, dword [ebp]
mov dword [esi], edx
cmp dword [edi], 0
jne 0x408a21
mov eax, dword [ebp]
mov dword [edi], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.0058f6df
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.0058f6df
mov eax, 1
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x154
ret
Function at 0x408a70
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a442b
push eax
mov dword fs:[0], esp
sub esp, 0x150
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x16c]
push eax
push esi
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x408ad7
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
add esp, 0x15c
ret
mov ecx, dword [0x628100]
mov dword [esp + 8], ecx
lea edx, [esp + 8]
mov dword [esp + 0x160], 0
push edx
push esi
call fcn.00408be0
add esp, 8
lea ecx, [esp + 8]
push 0x600360
call fcn.0058c6e1
push 0x600360
lea ecx, [esp + 0xc]
call fcn.0058fabb
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x408b66
lea ecx, [esp + 8]
mov dword [esp + 0x160], 0xffffffff
call fcn.0058f6df
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
add esp, 0x15c
ret
test byte [esp + 0xc], 2
jne 0x408b74
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [esp + 0xc], 4
jne 0x408ba3
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x408ba3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 8]
mov dword [esp + 0x160], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x158]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x40a4e0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, ecx
jne 0x40a4f9
xor eax, eax
pop edi
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
cmp esi, ecx
mov dword [esp + 8], ecx
jbe 0x40a5d6
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [ecx + ebx]
inc ecx
shl edx, 8
cmp ecx, esi
mov dword [esp + 0x24], ecx
jae 0x40a53d
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov bl, byte [ecx + esi]
mov esi, dword [esp + 0x20]
or edx, ebx
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x40a541
inc dword [esp + 0x10]
shl edx, 8
cmp ecx, esi
jae 0x40a55a
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov bl, byte [ecx + esi]
or edx, ebx
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x40a55e
inc dword [esp + 0x10]
mov esi, 3
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x40a577
dec ebx
mov byte [esp + esi + 0x14], 0x3d
mov dword [esp + 0x10], ebx
jmp 0x40a58d
mov ebx, dword [0x601ea0]
mov ecx, edx
and ecx, 0x3f
mov cl, byte [ecx + ebx]
mov byte [esp + esi + 0x14], cl
mov ecx, dword [esp + 0x24]
shr edx, 6
dec esi
jns 0x40a563
xor edx, edx
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40a5b3
cmp dword [edi + 4], esi
jb 0x40a5b3
mov byte [eax + ebp], 0xd
inc eax
mov byte [eax + ebp], 0xa
inc eax
mov dword [edi + 4], 0
mov bl, byte [esp + edx + 0x14]
mov byte [eax + ebp], bl
mov ebx, dword [edi + 4]
inc eax
inc edx
inc ebx
cmp edx, 4
mov dword [edi + 4], ebx
jl 0x40a595
mov esi, dword [esp + 0x20]
cmp ecx, esi
jb 0x40a512
pop ebp
pop ebx
pop esi
pop edi
add esp, 8
ret 0x10
Function at 0x40a5e0
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x40a5fb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x1c]
xor ebp, ebp
xor ebx, ebx
mov edi, dword [eax]
mov dword [esp + 0x10], ebx
mov edx, dword [edi - 8]
add edx, edi
cmp edi, edx
mov dword [esp + 0x14], edx
jae 0x40a720
xor eax, eax
mov dword [esp + 0x1c], eax
cmp edi, edx
jae 0x40a6d1
mov cl, byte [edi]
inc edi
movsx edx, cl
lea esi, [edx - 9]
cmp esi, 0x17
ja case.default.0x40a63e
xor ebx, ebx
mov bl, byte [esi + 0x40a734]
jmp dword [ebx*4 + 0x40a72c]
mov ebx, dword [esp + 0x10]
shl eax, 6
cmp cl, 0x60
jle 0x40a661
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffb9
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40a6c0
cmp cl, 0x40
jle 0x40a676
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffbf
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40a6c0
cmp cl, 0x3d
jne 0x40a68b
mov ecx, dword [esp + 0x1c]
inc ebx
inc ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
jmp 0x40a6c0
cmp cl, 0x2f
jle 0x40a6a0
mov ecx, dword [esp + 0x1c]
add edx, 4
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40a6c0
jne 0x40a6af
mov ecx, dword [esp + 0x1c]
or al, 0x3f
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40a6c0
cmp cl, 0x2b
jne 0x40a6b6
or al, 0x3e
inc dword [esp + 0x1c]
jmp 0x40a6c0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, 4
jb 0x40a620
cmp dword [esp + 0x1c], 4
jne 0x40a5ef
lea ecx, [ebp + 3]
mov esi, ecx
sub esi, ebx
cmp esi, dword [esp + 0x24]
ja 0x40a5ef
cmp ecx, ebp
je 0x40a70f
dec ecx
test ebx, ebx
je 0x40a701
mov esi, ebp
sub esi, ebx
add esi, 3
cmp ecx, esi
jae 0x40a708
mov esi, dword [esp + 0x20]
mov byte [ecx + esi], al
shr eax, 8
cmp ecx, ebp
jne 0x40a6f1
mov ecx, 3
sub ecx, ebx
add ebp, ecx
cmp edi, edx
jb 0x40a61a
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x40deb0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5a4ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x5c
lea ecx, [esp + 0x234]
mov dword [esp + 0x22c], esi
mov ebp, 1
call fcn.0058c734
push 0x600360
lea ecx, [esp + 0x234]
call fcn.0058fabb
lea eax, [esp + 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x230]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov ebx, dword [edx - 8]
cmp ebx, 2
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
jle 0x40e022
cmp byte [edx + 1], 0x3a
jne 0x40df8b
test ebx, ebx
jle 0x40e024
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40df50
mov edx, dword [esp + 0x230]
test ebp, ebp
je 0x40e024
mov al, byte [esi + edx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40df81
cmp esi, 2
je 0x40df81
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40df81
lea edx, [esp + 0x18]
push eax
push edx
call edi
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x40df49
jmp 0x40e024
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x238]
call fcn.0058c2ae
mov eax, dword [eax]
push 0x601e38
push eax
call fcn.00574123
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.0058f6df
test bl, bl
je 0x40e022
push 2
push 0x600360
lea ecx, [esp + 0x238]
call fcn.0058c356
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
mov ebx, eax
jle 0x40e024
test ebp, ebp
je 0x40e024
cmp ebx, 0xffffffff
je 0x40e024
mov ecx, dword [esp + 0x230]
mov al, byte [esi + ecx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40e01b
cmp esi, ebx
jle 0x40e01b
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40e01b
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
inc esi
cmp esi, edi
jl 0x40dfdf
jmp 0x40e024
xor ebp, ebp
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x220]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40eaa0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40eaef
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x28]
push ecx
push edx
call eax
test eax, eax
mov eax, dword [esp + 0x30]
je 0x40eb3b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
add esp, 0x28
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40eb37
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mul dword [esp + 4]
push 0
push ecx
push edx
push eax
call fcn.00574350
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
mov dword [eax + 4], 0
mov dword [eax], 0
mov eax, 1
add esp, 0x28
ret

Function at 0x40eb60
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40ebbe
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mul dword [esp + 8]
push esi
push ecx
push edx
push eax
call fcn.00574350
mov ecx, dword [esp + 0x1c]
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x40ebe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5a4eef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [esp + 0x10], 0
mov eax, dword [0x628100]
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, esi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
shrd eax, ecx, 0x14
push eax
lea edx, [esp + 0x20]
push 0x602c04
push edx
shr ecx, 0x14
mov byte [esp + 0x44], 3
call edi
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.0058f868
and esi, 0xfffff
lea ecx, [esp + 0x1c]
lea eax, [esi + esi*4]
add eax, eax
shr eax, 0x14
push eax
push 0x602c04
push ecx
call edi
add esp, 0xc
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xc]
push edx
call fcn.0058f868
lea eax, [esp + 0x10]
push 0x601e2c
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0058f974
lea edx, [esp + 0xc]
mov byte [esp + 0x38], 4
push edx
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0058f90e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 5
call fcn.0058f818
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 4
call fcn.0058f6df
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.0058f6df
mov esi, dword [esp + 0x40]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0058f454
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x38], 2
call fcn.0058f6df
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.0058f6df
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x10]
call fcn.0058f6df
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40ef7a
test al, 0x10
jne 0x40ef7a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40f620
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x5a4fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x628100]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [ebp], 0
mov dword [ebx], 0
mov dword [ecx], 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 0
mov dword [edx], 0
call fcn.0044a620
push str.ClassesRoot
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 1
call fcn.0044a8f0
push str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
lea ecx, [esp + 0x20]
call fcn.0044a920
push 0
push 0
push 0
push 0
push 0xf003f
push 0
lea ecx, [esp + 0x34]
call fcn.0044aa60
test eax, eax
je 0x40f7e7
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x62cce0
call fcn.0058f74d
push 1
push 1
lea eax, [esp + 0x70]
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.0044ae30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 2
call fcn.0058f818
lea ecx, [esp + 0x64]
mov byte [esp + 0x50], 1
call fcn.0058f6df
lea ecx, [esp + 0x60]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.0058fb0f
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0058fb5e
test edi, edi
je 0x40f7b0
push edi
call fcn.005738e8
mov esi, eax
add esp, 4
test esi, esi
je 0x40f7e7
mov edx, dword [esp + 0x60]
push esi
push edi
push edx
push 1
lea ecx, [esp + 0x20]
call fcn.0058fb0f
push eax
call sub.VERSION.dll_GetFileVersionInfoA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0058fb5e
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x600360
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
xor edx, edx
push esi
mov dx, word [eax + 0xa]
mov dword [ecx], edx
mov ecx, dword [esp + 0x60]
xor edx, edx
mov dx, word [eax + 8]
mov dword [ecx], edx
xor edx, edx
mov dx, word [eax + 0xe]
xor ecx, ecx
mov dword [ebx], edx
mov cx, word [eax + 0xc]
mov dword [ebp], ecx
call fcn.005737ff
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.0044bb60
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.0058f6df
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.0044bb60
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f87c
test al, 0x10
jne 0x40f87c
mov eax, 1
ret 4
xor eax, eax
ret 4