joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406390
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44c0f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x2c]
call fcn.0041232b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4063d6
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
push esi
lea ecx, [esp + 0x30]
push str.HandleFeedBackOfConfirmUser_status_:__d_n
push ecx
mov dword [esp + 0x30], 0
call fcn.00401f90
mov edx, dword [esp + 0x38]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x2c]
call fcn.00401eb0
cmp esi, 0x425
ja 0x40643c
je case.0x406435.1001
add esi, 0xfffffc17
cmp esi, 0xd
ja case.0x406435.1003
movzx eax, byte [esi + 0x4065ac]
jmp dword [eax*4 + 0x4065a4]
cmp esi, 0x47e
ja 0x40654f
je 0x40647c
sub esi, 0x457
je case.0x406435.1001
sub esi, 9
jne case.0x406435.1003
lea edi, [esp + 0x2c]
mov esi, 0x85
call fcn.0040a720
mov ecx, dword [esp + 0x2c]
push 0
push 0x10
push ecx
call fcn.004137fa
jmp 0x406564
push 0x455fb4
lea ecx, [esp + 0x1c]
call fcn.00406710
mov esi, eax
push 0x455fb4
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.00406710
mov edi, eax
push 0x455fb4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00406710
push esi
push edi
mov byte [esp + 0x2c], 3
mov ecx, dword [ebp + 0x80]
push eax
mov eax, dword [ebp + 0x84]
lea edx, [ecx + 0x8c]
push edx
add ecx, 0x84
push ecx
push eax
call fcn.004018e0
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406501
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40654b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xa
jmp 0x40655d
cmp esi, 0x76d
je 0x40655b
push 2
jmp 0x40655d
push 0
mov eax, ebp
call fcn.00405d10
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40658c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x406950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406969
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4069a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4069a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4069a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406990
cmp esi, eax
jb 0x4069aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44bb48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x5c]
push eax
lea ecx, [esp + 0x10]
call fcn.0041441a
lea esi, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00407d50
mov ecx, edi
call fcn.00412bca
test al, 4
je 0x407cf6
test al, 1
je 0x407d16
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push ecx
mov edx, esi
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
push ebx
mov ecx, edi
call fcn.004083d0
jmp 0x407d16
test al, 1
je 0x407d16
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
push ebx
mov ecx, edi
call fcn.00408030
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CBrush.0
call fcn.00402140
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409500
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x80c
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x810]
push esi
push 0x7fe
mov esi, ecx
lea ecx, [esp + 0x12]
push 0
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
call fcn.0042af00
add esp, 0xc
test esi, esi
je 0x40956a
cmp word [esi], 0
je 0x40956a
mov edx, dword [edi + 0x10]
push edx
push 0x800
lea eax, [esp + 0x14]
push eax
push 0x455fb4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00406710
mov ecx, dword [esp + 0x80c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00428d80
add esp, 0x80c
ret 4
Function at 0x409bc0
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44b7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0x457420
mov dword [esp + 0x20], str.language_
call fcn.0041232b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409c11
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], 0
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x104
or eax, ecx
jge 0x409c4f
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401c70
mov ebp, dword [esp + 0x14]
push 0x104
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test ebp, ebp
jne 0x409c65
xor ecx, ecx
jmp 0x409c85
mov ecx, ebp
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x409c70
sub ecx, esi
sar ecx, 1
js 0x409dd6
cmp ecx, dword [ebp - 8]
jg 0x409dd6
test eax, eax
mov dword [ebp - 0xc], ecx
mov word [ebp + ecx*2], 0
jbe 0x409d9b
push 0x5c
push ebp
call fcn.00429552
add esp, 8
test eax, eax
jne 0x409cb4
or eax, 0xffffffff
jmp 0x409cb8
sub eax, ebp
sar eax, 1
add eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402e40
mov byte [esp + 0x2c], 1
mov edi, dword [esp + 0x34]
add edi, 4
push eax
mov ecx, edi
call fcn.00401d90
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409d03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x1c]
push ecx
lea edx, [esp + 0x38]
push edi
push edx
call fcn.0040bd70
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409d43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
je 0x409d4d
test bl, 0x10
jne 0x409d57
add esi, 1
cmp esi, 2
jl 0x409d05
jmp 0x409d8d
mov edx, dword [esp + esi*4 + 0x1c]
test edx, edx
jne 0x409d63
xor eax, eax
jmp 0x409d7f
mov eax, edx
lea ebx, [eax + 2]
jmp 0x409d70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409d70
sub eax, ebx
sar eax, 1
push eax
push edx
mov ecx, edi
call fcn.00401b80
cmp esi, 2
jl 0x409d9b
push 0
push 0x455fb4
mov ecx, edi
call fcn.00401e10
add ebp, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409dc0
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
push 0x80070057
call fcn.004014d0
int3
Function at 0x40ccae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x449e9b
call fcn.0042b3a6
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00418033
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40ccf9
call fcn.00418033
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40cd0a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40cd17
or eax, 0xffffffff
jmp 0x40ce73
mov ecx, esi
call fcn.0040c800
mov dword [ebp - 0x14], eax
call fcn.0040f654
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40cd95
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40cd95
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40cd95
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040c68f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40cd95
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40cd95
mov ecx, ebx
call fcn.00412d0d
test eax, eax
je 0x40cd95
push 0
mov ecx, ebx
call fcn.00412d28
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00411039
push dword [ebp - 0x14]
call fcn.0040f5ac
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040cab6
xor edi, edi
cmp eax, edi
je 0x40cdf2
test byte [esi + 0x3c], 0x10
je 0x40cddc
push 4
pop edi
mov ecx, esi
call fcn.00412bca
test ax, 0x100
je 0x40cdd2
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040f174
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40cdf2
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00412efb
or dword [ebp - 4], 0xffffffff
jmp 0x40ce1d
cmp dword [ebp - 0x28], edi
je 0x40ce2b
push 1
mov ecx, ebx
call fcn.00412d28
cmp dword [ebp - 0x2c], edi
je 0x40ce3b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40ce54
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40ce54
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040c83a
cmp dword [esi + 0x58], edi
je 0x40ce70
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0042b44b
ret
Function at 0x40cedd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40cefd
cmp dword [edi + 0x54], 0
jne 0x40cefd
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00418033
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040cea4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x41063c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x410675
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004105ff
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402030
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x411c79
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x455fb4
mov ecx, edi
call fcn.00401ff0
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x411ccc
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x411cdf
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004105ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00402030
jmp 0x411cdf
mov ecx, esi
call fcn.00412b2b
test eax, eax
je 0x411cdf
push edi
mov ecx, eax
call fcn.0041063c
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x4122c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x412309
call fcn.00418033
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x412309
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412324
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00411e80
test ebx, ebx
mov esi, eax
je 0x412322
test edi, edi
je 0x412322
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x414d86
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x462600]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x414dc3
push 0x44efb0
push 4
push eax
call fcn.0042ba0d
push eax
call fcn.004069c0
add esp, 0x10
jmp 0x414dd5
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414e40
push edi
call fcn.0042b735
mov edi, dword [eax]
call fcn.0042b735
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00429311
add esp, 0x18
mov ebx, eax
call fcn.0042b735
cmp dword [eax], 0
je 0x414e20
call fcn.0042b735
push dword [eax]
call fcn.0040cf49
pop ecx
jmp 0x414e27
call fcn.0042b735
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x414e40
cmp ebx, esi
jae 0x414e40
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x414e42
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00428d80
leave
ret
Function at 0x416a4a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x416a90
call fcn.00418033
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x416a90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x416ad3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x416abc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x416abc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x416ad0
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x428d80
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x462600]
jne 0x428d8a
repz ret
jmp fcn.0042ea48
Function at 0x42d6d7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x462790]
je 0x42d6f2
inc edi
cmp edi, 0x17
jb 0x42d6e3
cmp edi, 0x17
jae 0x42d872
push ebp
push 3
call fcn.00436220
cmp eax, 1
pop ecx
je 0x42d83e
push 3
call fcn.00436220
test eax, eax
pop ecx
jne 0x42d726
cmp dword [0x4625e0], 1
je 0x42d83e
cmp ebx, 0xfc
je 0x42d871
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x465c98
push ebp
call fcn.004361bb
add esp, 0xc
test eax, eax
je 0x42d75c
push esi
push esi
push esi
push esi
push esi
call fcn.0042ecb6
add esp, 0x14
push 0x104
mov esi, 0x465cb1
push esi
push 0
mov byte [0x465db5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42d7a0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004361bb
add esp, 0xc
test eax, eax
je 0x42d7a0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042ecb6
add esp, 0x14
push esi
call fcn.00436130
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42d7e5
push esi
call fcn.00436130
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x465fac
push 0x451304
sub ecx, eax
push ecx
push eax
call fcn.00436075
add esp, 0x14
test eax, eax
je 0x42d7e5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042ecb6
add esp, 0x14
jmp 0x42d7e7
xor esi, esi
push 0x451300
push ebx
push ebp
call fcn.00436004
add esp, 0xc
test eax, eax
je 0x42d807
push esi
push esi
push esi
push esi
push esi
call fcn.0042ecb6
add esp, 0x14
push dword [edi*8 + 0x462794]
push ebx
push ebp
call fcn.00436004
add esp, 0xc
test eax, eax
je 0x42d829
push esi
push esi
push esi
push esi
push esi
call fcn.0042ecb6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00435e47
add esp, 0xc
jmp 0x42d871
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42d871
cmp ebp, 0xffffffff
je 0x42d871
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x462794]
push dword [esi]
call fcn.00436130
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x435e47
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042e287
xor ebx, ebx
cmp dword [0x466790], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x435f1d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x435ffd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x435ffd
push eax
call fcn.0042e219
mov dword [esp], 0x451540
push edi
mov dword [0x466790], eax
call esi
push eax
call fcn.0042e219
mov dword [esp], 0x45152c
push edi
mov dword [0x466794], eax
call esi
push eax
call fcn.0042e219
mov dword [0x466798], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042bbf6
test eax, eax
pop ecx
pop ecx
je 0x435eeb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ecb6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x435f1d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042e219
cmp eax, ebx
pop ecx
mov dword [0x4667a0], eax
je 0x435f1d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e219
pop ecx
mov dword [0x46679c], eax
mov eax, dword [0x46679c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x435fa2
cmp dword [0x4667a0], ecx
je 0x435fa2
push eax
call fcn.0042e290
push dword [0x4667a0]
mov esi, eax
call fcn.0042e290
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x435fa2
cmp edi, ebx
je 0x435fa2
call esi
cmp eax, ebx
je 0x435f6f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435f6f
test byte [ebp - 0x18], 1
jne 0x435fa2
lea eax, [ebp - 0x10]
push eax
call fcn.0042bc2d
test eax, eax
pop ecx
je 0x435f8a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042ecb6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x435f99
or dword [ebp + 0x10], 0x200000
jmp 0x435fdd
or dword [ebp + 0x10], 0x40000
jmp 0x435fdd
mov eax, dword [0x466794]
cmp eax, dword [ebp - 8]
je 0x435fdd
push eax
call fcn.0042e290
cmp eax, ebx
pop ecx
je 0x435fdd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x435fdd
mov eax, dword [0x466798]
cmp eax, dword [ebp - 8]
je 0x435fdd
push eax
call fcn.0042e290
cmp eax, ebx
pop ecx
je 0x435fdd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466790]
call fcn.0042e290
cmp eax, ebx
pop ecx
je 0x435ffd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x435fff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43e6c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x462600]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
test eax, eax
mov ecx, dword [0x452f4c]
mov edx, dword [0x452f50]
mov dword [esp], 0
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
jne 0x43e6fe
mov ax, word [0x466810]
mov word [esp + 4], ax
jmp 0x43e706
mov cx, word [eax]
mov word [esp + 4], cx
push 0
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp]
xor ecx, esp
call fcn.00428d80
add esp, 0x10
ret