joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401080
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x44
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
mov edi, ecx
push eax
lea ebx, [edi + 0x24]
push ebx
call ebp
push ebx
lea esi, [edi + 0x128]
push esi
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4315d8
push esi
call ebp
mov ecx, dword [esp + 0x5c]
push ecx
push esi
call ebp
mov edx, dword [esp + 0x60]
push edx
push esi
lea ebp, [edi + 0x22c]
push str.__s___s
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0
push 0x20
push 0
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40110a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
mov dword [edi], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
Function at 0x401d70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x43e0c0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push edi
mov edi, dword [esp + 0x23c]
mov ebx, ecx
lea eax, [ebx + 0x110]
push eax
lea ecx, [ebx + 4]
push ecx
lea edx, [esp + 0x138]
push str._sinf_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x140]
push 0
push eax
call fcn.00419e83
add esp, 0x18
test eax, eax
je 0x401dca
xor eax, eax
jmp 0x401ef2
push esi
lea ecx, [esp + 0x134]
push ecx
push 0x100
lea edx, [esp + 0x3c]
push edx
push str.Optional_Components
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp byte [esp + 0x34], 0
lea esi, [esp + 0x34]
je 0x401e41
mov ecx, edi
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401e17
test dl, dl
je 0x401e13
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401e17
add eax, 2
add ecx, 2
test dl, dl
jne 0x401df7
xor eax, eax
jmp 0x401e1c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401e3c
cmp byte [esi], 0
je 0x401e2d
add esi, 1
cmp byte [esi], 0
jne 0x401e25
add esi, 1
cmp byte [esi], 0
jne 0x401df3
xor eax, eax
jmp 0x401ef1
cmp byte [esi], 0
jne 0x401e48
xor eax, eax
jmp 0x401ef1
lea eax, [esp + 0x134]
push eax
push 0x100
lea ecx, [esp + 0x3c]
push ecx
push 0x431660
push str.UpgReg5
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x34]
push edx
push 0xa
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.00401cd0
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp byte [ecx], al
jne 0x401e99
cmp eax, 0xa
jge 0x401e99
mov edx, dword [esp + eax*4 + 0x10]
add eax, 1
cmp byte [edx], 0
je 0x401e88
mov ecx, dword [esp + eax*4 + 0xc]
lea esi, [ebx + 0x142]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
add ecx, 1
test dl, dl
jne 0x401ea5
mov ecx, dword [esp + eax*4 + 0x10]
add eax, 1
cmp byte [ecx], dl
jne 0x401ed1
lea esp, [esp]
cmp eax, 0xa
jge 0x401ed1
mov edx, dword [esp + eax*4 + 0x10]
add eax, 1
cmp byte [edx], 0
je 0x401ec0
mov eax, dword [esp + eax*4 + 0xc]
lea edx, [ebx + 0x246]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x401ee0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x234]
pop edi
pop ebx
xor ecx, esp
call fcn.00419953
add esp, 0x230
ret 4
Function at 0x4021a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42ebbb
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x43e0c0]
xor eax, esp
mov dword [esp + 0x334], eax
push ebx
push esi
push edi
mov eax, dword [0x43e0c0]
xor eax, esp
push eax
lea eax, [esp + 0x348]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0040b86e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4021f6
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x104
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x358], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x402253
lea eax, [esi - 0x10]
mov dword [esp + 0x350], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40224c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x402388
lea eax, [esp + 0x3c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402260
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401750
lea ecx, [esp + 0x10]
call fcn.00402140
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 0
jl 0x4022a3
push str._system
push edi
call fcn.00419de9
add esp, 8
test eax, eax
je 0x4022a3
sub eax, edi
jns 0x4022a8
lea eax, [edi - 0x10]
jmp 0x402228
push eax
lea ecx, [esp + 0x40]
push ecx
lea esi, [ebx + 4]
push esi
call fcn.00419ea0
push esi
lea edx, [esp + 0x150]
push str._sinf_sysoc.inf
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x158]
push 0
push eax
call fcn.00419e83
add esp, 0x20
test eax, eax
je 0x402301
lea eax, [edi - 0x10]
mov dword [esp + 0x350], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x402240
lea ecx, [esp + 0x140]
push ecx
push 0x100
lea edx, [esp + 0x24c]
push edx
push 0x431660
push 0x431714
push str.Components
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x244]
push eax
push 0xa
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.00401cd0
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 0x110]
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402350
lea eax, [edi - 0x10]
mov dword [esp + 0x350], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402383
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x334]
xor ecx, esp
call fcn.00419953
add esp, 0x344
ret
Function at 0x402540
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 0x402559
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402594
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402590
lea ebx, [ebx]
cmp esi, eax
jae 0x402594
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402580
cmp esi, eax
jb 0x40259a
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 0x403210
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 4]
cmp ax, 9
je 0x403232
cmp ax, 6
jne 0x40323c
mov eax, 1
pop esi
add esp, 0x24
ret
test ax, ax
jne 0x403248
xor eax, eax
pop esi
add esp, 0x24
ret
mov eax, esi
pop esi
add esp, 0x24
ret

Function at 0x403c30
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x42ec98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e0c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
push esi
mov ebx, eax
push 0x1001
push ebx
call ebp
test eax, eax
jle 0x403c94
lea edi, [eax + 1]
push edi
call fcn.00409b4a
push edi
mov esi, eax
push 0
push esi
call fcn.00419c30
add esp, 0x10
push edi
push esi
push 0x1001
push ebx
call ebp
call fcn.0040b86e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403cae
push 0x80004005
call fcn.004011c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push 0x431e40
push ecx
mov dword [esp + 0x2c], 0
call fcn.00403c10
push esi
call fcn.00409b4f
mov esi, dword [esp + 0x24]
push str.Japanese
push esi
call fcn.0041a9a1
add esp, 0x18
test eax, eax
sete al
test al, al
mov dword [esp + 0x20], 0xffffffff
lea eax, [esi - 0x10]
je 0x403d34
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403d1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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 0x408d50
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
ret 0x10

Function at 0x408d80
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0x10

Function at 0x40a3fc
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x43e0c0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x40a494
push 0x43399c
push 4
push eax
call fcn.0041ae81
push eax
call fcn.00401b70
add esp, 0x10
push ebx
push edi
call fcn.0041bafa
mov edi, dword [eax]
call fcn.0041bafa
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0041be76
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0041bafa
cmp dword [eax], ebx
je 0x40a4ab
call fcn.0041bafa
push dword [eax]
call fcn.00409c2c
pop ecx
jmp 0x40a4b2
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x40a448
jmp 0x40a524
call fcn.0041bafa
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40a520
cmp dword [ebp - 0x3c], esi
jae 0x40a520
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.00419c30
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40a512
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40a512
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40a512
push ebx
push ebx
push esi
jmp 0x40a518
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40a522
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.00419953
add ebp, 0xe0
leave
ret
Function at 0x40e756
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x40e75f
xor eax, eax
jmp 0x40e7c8
cmp dword [esp + 8], 0
jne 0x40e76b
call fcn.00409d9a
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0041e455
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40e7a6
push dword [esi + 0x10]
call fcn.0041e15b
test eax, eax
pop ecx
jne 0x40e7a6
mov esi, dword [esi + 0xc]
call fcn.0041bb0d
push esi
push dword [eax]
push 1
call fcn.0041894d
push dword [esi + 0x10]
call fcn.0041e18a
test eax, eax
pop ecx
je 0x40e7c5
push dword [esi + 0x10]
call fcn.0041e0af
push eax
call fcn.00401b70
pop ecx
pop ecx
jmp 0x40e794
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x40e7d1
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x40e7db
call fcn.00409d9a
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0041e5cf
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x40e808
mov esi, dword [esi + 0xc]
call fcn.0041bb0d
push esi
push dword [eax]
push 1
call fcn.0041894d
pop esi
ret 8

Function at 0x41446f
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 0x4144b2
call fcn.0040b7c2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4144b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4144cd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00414026
test ebx, ebx
mov esi, eax
je 0x4144cb
test edi, edi
je 0x4144cb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x419953
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e0c0]
jne 0x41995d
repz ret
jmp fcn.0042135c

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x419e29
call fcn.0041bb0d
mov dword [eax], esi
call fcn.0041bafa
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041fb05
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x419e05
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x419e58
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041bb20
pop ecx
call fcn.0041bafa
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x419e7f
test al, 1
je 0x419e7f
test byte [esp + 0xc], 2
je 0x419e7f
call fcn.0041bb0d
mov dword [eax], 5
call fcn.0041bafa
mov dword [eax], 0xd
jmp 0x419e4f
xor eax, eax
pop esi
ret
Function at 0x41e1b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x41e1f6
cmp dword [ebp + 0x14], edi
je 0x41e1f6
cmp ecx, edi
jne 0x41e1fd
call fcn.0041bafa
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041fb05
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x41e211
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x41e232
cmp ebx, 0xffffffff
je 0x41e221
push ebx
push edi
push ecx
call fcn.00419c30
add esp, 0xc
cmp esi, edi
je 0x41e1de
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x41e1de
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x41e24e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x41e255
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x41e346
test word [esi + 0xc], 0x10c
je 0x41e2a9
mov eax, dword [esi + 4]
test eax, eax
je 0x41e2a9
jl 0x41e3a7
cmp ebx, eax
mov edi, ebx
jb 0x41e27a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x41e34e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00419471
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x41e33e
cmp ebx, dword [ebp - 0xc]
jb 0x41e316
cmp dword [ebp - 0xc], 0
je 0x41e2d3
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x41e2c8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x41e2cf
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x41e2de
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x41e2de
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x41e37a
push eax
push dword [ebp - 8]
push esi
call fcn.0041de0e
pop ecx
push eax
call fcn.00427e86
add esp, 0xc
test eax, eax
je 0x41e3b9
cmp eax, 0xffffffff
je 0x41e3a7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x41e33e
push esi
call fcn.004277a5
cmp eax, 0xffffffff
pop ecx
je 0x41e3ab
cmp dword [ebp - 4], 0
je 0x41e37a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x41e25d
mov eax, dword [ebp + 0x14]
jmp 0x41e1f8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x41e365
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00419c30
add esp, 0xc
call fcn.0041bafa
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x41e1ee
cmp dword [ebp + 0xc], 0xffffffff
je 0x41e390
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00419c30
add esp, 0xc
call fcn.0041bafa
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x41e1ee
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x41e1f8
or dword [esi + 0xc], 0x10
jmp 0x41e3ab
Function at 0x425149
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 + 0x43ea10]
je 0x425164
inc edi
cmp edi, 0x17
jb 0x425155
cmp edi, 0x17
jae 0x4252e4
push ebp
push 3
call fcn.0042b242
cmp eax, 1
pop ecx
je 0x4252b0
push 3
call fcn.0042b242
test eax, eax
pop ecx
jne 0x425198
cmp dword [0x43e0d0], 1
je 0x4252b0
cmp ebx, 0xfc
je 0x4252e3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x442630
push ebp
call fcn.0041ae81
add esp, 0xc
test eax, eax
je 0x4251ce
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa09
add esp, 0x14
push 0x104
mov esi, 0x442649
push esi
push 0
mov byte [0x44274d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425212
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041ae81
add esp, 0xc
test eax, eax
je 0x425212
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041fa09
add esp, 0x14
push esi
call fcn.0041b8d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x425257
push esi
call fcn.0041b8d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x442944
push 0x43585c
sub ecx, eax
push ecx
push eax
call fcn.0041ee06
add esp, 0x14
test eax, eax
je 0x425257
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa09
add esp, 0x14
jmp 0x425259
xor esi, esi
push 0x435858
push ebx
push ebp
call fcn.0041bf1c
add esp, 0xc
test eax, eax
je 0x425279
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa09
add esp, 0x14
push dword [edi*8 + 0x43ea14]
push ebx
push ebp
call fcn.0041bf1c
add esp, 0xc
test eax, eax
je 0x42529b
push esi
push esi
push esi
push esi
push esi
call fcn.0041fa09
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042b085
add esp, 0xc
jmp 0x4252e3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4252e3
cmp ebp, 0xffffffff
je 0x4252e3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43ea14]
push dword [esi]
call fcn.0041b8d0
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 0x42b085
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00420cfc
xor ebx, ebx
cmp dword [0x442b90], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42b15b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42b23b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4369fc
push edi
call esi
cmp eax, ebx
je 0x42b23b
push eax
call fcn.00420c8e
mov dword [esp], 0x4369ec
push edi
mov dword [0x442b90], eax
call esi
push eax
call fcn.00420c8e
mov dword [esp], 0x4369d8
push edi
mov dword [0x442b94], eax
call esi
push eax
call fcn.00420c8e
mov dword [0x442b98], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041bbe7
test eax, eax
pop ecx
pop ecx
je 0x42b129
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041fa09
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42b15b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00420c8e
cmp eax, ebx
pop ecx
mov dword [0x442ba0], eax
je 0x42b15b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00420c8e
pop ecx
mov dword [0x442b9c], eax
mov eax, dword [0x442b9c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42b1e0
cmp dword [0x442ba0], ecx
je 0x42b1e0
push eax
call fcn.00420d05
push dword [0x442ba0]
mov esi, eax
call fcn.00420d05
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42b1e0
cmp edi, ebx
je 0x42b1e0
call esi
cmp eax, ebx
je 0x42b1ad
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42b1ad
test byte [ebp - 0x18], 1
jne 0x42b1e0
lea eax, [ebp - 0x10]
push eax
call fcn.0041bc1e
test eax, eax
pop ecx
je 0x42b1c8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041fa09
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42b1d7
or dword [ebp + 0x10], 0x200000
jmp 0x42b21b
or dword [ebp + 0x10], 0x40000
jmp 0x42b21b
mov eax, dword [0x442b94]
cmp eax, dword [ebp - 8]
je 0x42b21b
push eax
call fcn.00420d05
cmp eax, ebx
pop ecx
je 0x42b21b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42b21b
mov eax, dword [0x442b98]
cmp eax, dword [ebp - 8]
je 0x42b21b
push eax
call fcn.00420d05
cmp eax, ebx
pop ecx
je 0x42b21b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x442b90]
call fcn.00420d05
cmp eax, ebx
pop ecx
je 0x42b23b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42b23d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e71e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43e0c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042e6b3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00419c30
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42e76d
cmp dword [ebp - 0x1c], 5
jb 0x42e785
jmp 0x42e781
cmp dword [ebp - 0x10], 1
jne 0x42e785
cmp dword [ebp - 0x1c], 4
ja 0x42e781
jne 0x42e785
cmp dword [ebp - 0x18], 0
jbe 0x42e785
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x436a6c
call fcn.0042e587
test eax, eax
jge 0x42e7a6
mov byte [0x43f504], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00419953
add ebp, 0x78
leave
ret