joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402840
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42ce11
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x439f2c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 4]
mov dword [ebp], eax
mov ecx, dword [0x439f2c]
lea ebx, [esi + 0x2c]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx], ecx
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 1
call fcn.00401330
mov ecx, ebp
mov byte [esp + 0x1c], 2
mov dword [esi], 0x42f8cc
call fcn.00423c83
mov ebp, 1
mov ecx, ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
call fcn.00423c83
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], 0x32
mov dword [esi + 0x58], ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42cec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x439f2c]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
lea ebp, [esi + 0x30]
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov byte [esp + 0x2c], 1
call fcn.004022b0
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push ecx
lea edi, [esi + 4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.00423a6d
mov ecx, esi
call fcn.00402e00
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x402dc4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x402dc4
push 0x4380c0
lea ecx, [esp + 0x10]
call fcn.00424088
push 0x2a
mov ecx, edi
call fcn.00424173
cmp eax, 0xffffffff
jne 0x402d86
push 0x3f
mov ecx, edi
call fcn.00424173
cmp eax, 0xffffffff
jne 0x402d86
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edi
call fcn.00423a6d
mov ecx, ebp
call fcn.00401c60
jmp 0x402dc4
mov esi, dword [esi + 8]
push 0
push 0
push esi
push 0
push esi
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00423a6d
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x44], 2
call fcn.00423a6d
mov ecx, ebp
mov byte [esp + 0x40], 1
call fcn.00401780
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00423cf8
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00423cf8
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret
Function at 0x403510
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42cf88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov eax, dword [0x439f2c]
mov dword [esp + 0x18], 0
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.00422de6
cmp eax, 0xffffffff
je 0x40358c
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00422d6e
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call fcn.00423de5
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 2
call fcn.00423cf8
push 0x4380c0
lea ecx, [esp + 0xc]
call fcn.004231a1
push 0x5c
lea ecx, [esp + 0x24]
call fcn.00422de6
cmp eax, 0xffffffff
pop esi
je 0x4035fd
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00422d6e
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x18], 4
call fcn.00423de5
lea ecx, [esp + 8]
mov byte [esp + 0x14], 2
call fcn.00423cf8
mov edx, dword [esp]
push 0
push edx
call fcn.00415263
add esp, 8
test eax, eax
jne 0x4035fd
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00415055
add esp, 8
test eax, eax
je 0x4035fd
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.00423cf8
lea ecx, [esp]
mov byte [esp + 0x14], 0
call fcn.00423cf8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00423cf8
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x403640
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x42cfc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x439f2c]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea esi, [ecx + 4]
mov bl, 2
push 0x5c
mov ecx, esi
mov byte [esp + 0x20], bl
call fcn.00422de6
cmp eax, 0xffffffff
je 0x4036af
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00422d6e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call fcn.00423de5
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call fcn.00423cf8
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xc]
call fcn.00423de5
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
call esi
push 0x5c
lea ecx, [esp + 0xc]
call fcn.00422de6
cmp eax, 0xffffffff
je 0x403742
push edi
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00422d6e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.00423de5
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.00423cf8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.00415055
add esp, 8
test eax, eax
je 0x403731
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov edi, dword [edx - 8]
cmp eax, edi
jle 0x403731
push ecx
call esi
push 0x5c
lea ecx, [esp + 0x10]
call fcn.00422de6
cmp eax, 0xffffffff
jne 0x4036db
pop edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 1
call fcn.00423cf8
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call fcn.00423cf8
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00423cf8
mov ecx, dword [esp + 0x14]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x404600
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp method.CDialog.virtual_184
mov eax, 0x42e65c
call fcn.00416aa4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042b2d0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x42567e
call fcn.0042b2d0
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42568c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x42569a
or eax, 0xffffffff
jmp 0x425782
mov ecx, esi
call fcn.004255b5
mov dword [ebp - 0x14], eax
call fcn.004263c7
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4256d1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4256d1
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0042637b
push dword [ebp - 0x14]
call fcn.00425ec9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0042534d
cmp eax, edi
je 0x425744
test byte [esi + 0x24], 0x10
je 0x425712
push 4
mov ecx, esi
pop ebx
call fcn.004243b5
test ah, 1
je 0x42570a
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00427ed6
cmp dword [esi + 0x1c], edi
je 0x425744
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00424410
jmp 0x425744
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x425758
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x425771
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x425771
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004255ef
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x406620
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x42d510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x439f2c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
lea edx, [esp + 0x14]
xor ebx, ebx
push edx
mov dword [esp + 0x80], ebx
call fcn.00406450
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 1
call fcn.00423de5
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], bl
call fcn.00423cf8
mov eax, dword [0x439f2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x42fb34
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
push 0xa
lea ecx, [esp + 0x5c]
mov byte [esp + 0x80], 4
call fcn.00406d70
mov edi, 0x42fb30
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 5
mov dword [esp + 0x20], edi
call fcn.004046c0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x80], 6
mov esi, 1
call fcn.004046c0
test al, al
je 0x40674c
push str.IR_ZCD
lea ecx, [esp + 0x20]
call fcn.004048f0
test al, al
je 0x40674c
mov ebp, dword [esp + 0x40]
xor ecx, ecx
cmp ebp, ebx
push str.Prog
setne cl
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00404950
test al, al
je 0x40674c
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call fcn.00406410
mov eax, dword [eax]
push eax
call fcn.00415877
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00423cf8
xor eax, eax
cmp esi, ebx
sete al
mov ebp, eax
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x42fb24
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x7c], 0xa
cmp eax, ebx
je 0x4067a5
mov ecx, dword [esp + 0x60]
xor edi, edi
cmp ecx, ebx
jbe 0x4067a5
mov esi, dword [eax + edi*4]
cmp esi, ebx
je 0x40679c
lea edx, [esi + 8]
push 1
push edx
call fcn.0042330f
mov esi, dword [esi]
cmp esi, ebx
jne 0x406787
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
inc edi
cmp edi, ecx
jb 0x406780
push eax
call fcn.00424308
mov ecx, dword [esp + 0x70]
add esp, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.00423443
lea eax, [esp + 0x28]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], 0x42fb34
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x7c], 0xb
cmp eax, ebx
je 0x4067ed
push eax
call fcn.00424308
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 7
call fcn.00423cf8
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], bl
call fcn.00423cf8
lea ecx, [esp + 0x10]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00423cf8
mov ecx, dword [esp + 0x74]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret
Function at 0x406830
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42d550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x439f2c]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x120], 1
mov dword [esp + 8], eax
mov byte [esp + 0x120], 2
call fcn.0042b2d0
mov ecx, dword [eax + 4]
call fcn.00424f50
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call fcn.00423e35
push 0x4380c0
lea ecx, [esp + 0xc]
call fcn.004231a1
call fcn.0042b2d0
mov eax, dword [eax + 4]
mov edx, dword [eax + 0xc0]
cmp dword [edx - 8], esi
je 0x4068d6
call fcn.0042b2d0
mov eax, dword [eax + 4]
lea ecx, [esp + 8]
add eax, 0xc0
push eax
call fcn.00423de5
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [esp + 8]
push esi
push eax
lea ecx, [esp + 0x14]
push str._sir_ext_temp__d
push ecx
call fcn.0042318e
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call edi
cmp eax, 0xffffffff
je 0x406903
inc esi
jmp 0x4068dc
call fcn.0042b2d0
mov ecx, dword [eax + 4]
call fcn.00424f65
mov esi, dword [esp + 0x128]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00423a6d
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00423cf8
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 0
call fcn.00423cf8
mov ecx, dword [esp + 0x118]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x406970
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42d56b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
mov eax, dword [0x439f2c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], eax
xor ebx, ebx
push 4
mov dword [esp + 0x288], ebx
call fcn.004242df
mov ebp, eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x48]
mov dword [ebp], ebx
add esp, 4
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x29c]
xor ecx, ecx
mov dword [esp + 0x10], ecx
sub eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x78], ebx
mov word [esp + 0x76], bx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x70], 1
je 0x406a17
dec eax
je 0x406a0e
dec eax
jne 0x406a1e
mov word [esp + 0x74], 3
jmp 0x406a1e
mov word [esp + 0x74], 6
jmp 0x406a1e
mov word [esp + 0x74], 5
mov esi, dword [esp + 0x290]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x406a4a
mov edx, dword [esp + 0x28c]
lea eax, [esp + 0x88]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x406a69
mov ecx, dword [esp + 0x28c]
push esi
push ecx
lea edx, [esp + 0x90]
push str.__s___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, dword [esp + 0x294]
push esi
call edi
test eax, eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
push ecx
jne 0x406a84
push ebx
jmp 0x406a85
push esi
push ebx
push 0x20
push ebx
push ebx
lea edx, [esp + 0xa4]
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x406aae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x406b66
cmp dword [esp + 0x298], ebx
je 0x406b48
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push ebx
push eax
push 1
call edi
cmp eax, 1
jne 0x406b48
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call esi
test eax, eax
jle 0x406b2e
mov eax, dword [esp + 0x2c]
cmp eax, 0x200
je 0x406b1e
cmp eax, 0x201
je 0x406b1e
cmp eax, 0x202
je 0x406b1e
lea edx, [esp + 0x28]
push edx
call ebp
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push ebx
push ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call esi
test eax, eax
jg 0x406af3
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push ebx
push edx
push 1
call edi
cmp eax, 1
je 0x406ae3
mov ebp, dword [esp + 0x24]
cmp ebp, ebx
je 0x406b58
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00424308
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x284], 0xffffffff
call fcn.00423cf8
mov ecx, dword [esp + 0x27c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x278
ret
Function at 0x4085f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x198]
push ecx
mov ecx, esi
call fcn.004087e0
mov edx, dword [esi + 0x19c]
mov dword [esi + 0x198], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1a0]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.004087e0
mov dword [esi + 0x1a0], eax
pop esi
ret 4

Function at 0x408bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42d945
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], ebx
call fcn.00423d66
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x408bf4
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00423d66
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x30], 2
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408c2b
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00423a6d
mov dword [esp + 8], 1
jmp 0x408d59
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x408c54
push 0x438524
lea ecx, [esp + 0x44]
call fcn.004231a1
mov cl, byte [0x42fcf0]
push ecx
lea ecx, [esp + 0x44]
call fcn.004240af
push 0x438524
lea ecx, [esp + 0x10]
call fcn.004231a1
mov eax, dword [0x439f2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x34], 7
mov dword [esp + 0x14], 0x42fc68
call fcn.0040ca90
mov al, byte [esp + 0x44]
mov byte [esp + 0x30], 8
test al, al
je 0x408cce
mov al, byte [esi + 4]
test al, al
je 0x408cc8
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.0040cc90
mov ebx, 2
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 9
jmp 0x408cf0
lea eax, [esp + 0xc]
jmp 0x408cf0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.00408970
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0x30], 0xa
push eax
lea ecx, [esp + 0x44]
call fcn.004240c4
test bl, 4
mov dword [esp + 0x30], 9
je 0x408d17
and ebx, 0xfffffffb
lea ecx, [esp + 0x44]
mov dword [esp + 8], ebx
call fcn.00423cf8
test bl, 2
mov dword [esp + 0x30], 8
je 0x408d34
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.00423cf8
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.00423a6d
or ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 2
call fcn.0040ca10
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00423cf8
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call fcn.00423cf8
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14
Function at 0x40c2f0
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42de68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.00409730
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.0040d5b0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.00409770
mov edx, dword [esi + 4]
mov ecx, 0x438ac0
cmp edx, dword [ecx]
je 0x40c3dc
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409760
xor al, al
jmp 0x40c46f
mov eax, dword [edi + 0x50]
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.004097a0
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d5b0
test bp, bp
je 0x40c428
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.004097a0
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.0040d5b0
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x40c450
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.004097a0
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.0040d5b0
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x50]
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
mov dword [esp + 0x28], 0xffffffff
call fcn.00409760
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40cd60
Capabilities:
Access peb ldr_data
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x42dff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x439f2c]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x1c]
push eax
mov byte [esp + 0x40], 4
mov dword [esp + 0x20], 0x42fc68
call fcn.0040ca90
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 5
push ecx
lea ecx, [esp + 0x20]
call fcn.0040d250
mov esi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov byte [esp + 0x50], 6
call esi
test eax, eax
jne 0x40ce63
push 0x438524
lea ecx, [esp + 0x48]
call fcn.004231a1
mov cl, byte [0x42fcf0]
push ecx
lea ecx, [esp + 0x48]
call fcn.004240af
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call esi
test eax, eax
jne 0x40ce63
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 5
call fcn.00423cf8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040ca10
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov esi, dword [esp + 4]
lea ecx, [esp + 0x44]
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
mov dword [esp + 0x18], 0
mov byte [esp + 0x3c], 5
call fcn.00423cf8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040ca10
mov ecx, dword [esp + 0x34]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x40ceb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x40cec9
pop esi
xor al, al
pop ebp
ret
push ebx
push edi
push esi
call fcn.004242df
add esp, 4
mov edi, eax
mov bl, 1
push edi
push esi
call ebp
test eax, eax
jne 0x40cef2
push edi
xor bl, bl
call fcn.00424308
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [esp + 0x14]
push edi
call fcn.00423e35
push edi
call fcn.00424308
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40cf10
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret