joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407820
Capabilities:
Get common file path

Disassembly:
sub esp, 0x74c
mov eax, dword [0x4431cc]
xor eax, esp
push ebp
push esi
push edi
mov dword [esp + 0x754], eax
xor eax, eax
mov ecx, 0x41
mov edi, 0x447814
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push 0x104
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x24]
push ecx
call fcn.004144df
add esp, 4
cmp word [esp + eax*2 + 0x22], 0x5c
je 0x407884
lea edx, [esp + 0x24]
push 0x4330e4
push edx
call fcn.004145d0
add esp, 8
lea eax, [esp + 0x24]
push 0x444b28
push eax
call fcn.004145d0
add esp, 8
push 0
push 2
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
mov ebp, eax
jne 0x4078e9
push 0xa
lea edx, [esp + 0x230]
push edx
push 0x13f0
call fcn.00414ddb
add esp, 0xc
push 0x43c88c
lea ecx, [esp + 0x10]
lea eax, [esp + 0x230]
push ecx
mov dword [esp + 0x14], eax
call fcn.00414e9e
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x4444e0
push 0x433bc4
push esi
push 0
call ebx
test eax, eax
jne 0x40793f
call edi
push 0xa
lea eax, [esp + 0x234]
push eax
push 0x1405
call fcn.00414ddb
add esp, 0xc
push 0x43c88c
lea edx, [esp + 0x14]
lea ecx, [esp + 0x234]
push edx
mov dword [esp + 0x18], ecx
call fcn.00414e9e
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
call fcn.00414c75
mov edi, eax
add esp, 4
test edi, edi
jne 0x407986
push 0xa
lea edx, [esp + 0x234]
push edx
push 0x13c9
call fcn.00414ddb
add esp, 0xc
push 0x43c88c
lea ecx, [esp + 0x14]
lea eax, [esp + 0x234]
push ecx
mov dword [esp + 0x18], eax
call fcn.00414e9e
mov edx, dword [esp + 0x14]
push 0
push edx
push edi
push 0x4444e0
push 0x433bc4
push esi
push 0
call ebx
test eax, eax
jne 0x4079d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea eax, [esp + 0x234]
push eax
push 0x1405
call fcn.00414ddb
add esp, 0xc
push 0x43c88c
lea edx, [esp + 0x14]
lea ecx, [esp + 0x234]
push edx
mov dword [esp + 0x18], ecx
call fcn.00414e9e
lea eax, [esp + 0x18]
push eax
push 0x4444e0
push 0x433bc4
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
push 0
push 0x104
lea ecx, [esp + 0x558]
push ecx
push 1
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
lea eax, [esp + 0x550]
push eax
push 0x447814
call fcn.004145fa
push edi
call fcn.00414b5d
add esp, 0xc
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov ecx, dword [esp + 0x758]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00414a22
add esp, 0x74c
ret
Function at 0x408f50
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x430f9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4ec
mov eax, dword [0x4431cc]
xor eax, esp
push esi
xor esi, esi
mov dword [esp + 0x4ec], eax
mov eax, dword [esp + 0x500]
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
mov dword [0x44d2b8], esi
mov dword [0x44d2c0], esi
mov dword [0x44d2bc], esi
call fcn.00407d00
mov dword [esp + 0x4f8], esi
call fcn.00402890
test eax, eax
jne 0x408fb8
call fcn.00402920
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push esi
push esi
push 2
push esi
push 3
call sub.WINSPOOL.DRV_EnumPrintersW
mov eax, dword [esp + 8]
cmp eax, esi
ja 0x408ff1
lea ecx, [esp + 0x18]
mov dword [esp + 0x4f8], 0xffffffff
call fcn.00407690
xor eax, eax
jmp 0x40914f
push ebp
push eax
call fcn.0042403f
mov edx, dword [esp + 0x10]
add esp, 4
mov ebp, eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push edx
push ebp
push 2
push esi
push 3
mov dword [esp + 0x34], ebp
call sub.WINSPOOL.DRV_EnumPrintersW
cmp eax, esi
je 0x409129
cmp dword [esp + 8], esi
mov dword [esp + 0x10], esi
jbe 0x409129
push ebx
add ebp, 0x10
push edi
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp]
push eax
push 0x104
lea ecx, [esp + 0x370]
push ecx
push str.Failed
push edi
push str.PRINTER_TYPE
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x368]
push str.Failed
push edx
call fcn.004150fa
add esp, 8
test eax, eax
je 0x40910b
mov eax, dword [0x444d64]
test eax, eax
jbe 0x4090b0
mov eax, dword [esi*4 + 0x4446e8]
push eax
push edi
call fcn.004150fa
add esp, 8
test eax, eax
je 0x4090a6
mov eax, dword [0x444d64]
inc ebx
inc esi
cmp esi, eax
jb 0x409084
jmp 0x4090b0
mov dword [0x44d2b8], 0
cmp ebx, dword [0x444d64]
mov esi, 1
jne 0x409101
lea ecx, [esp + 0x368]
push str.HORNET
push ecx
mov dword [0x44d2b8], esi
call fcn.00414f7d
add esp, 8
test eax, eax
je 0x4090e2
mov dword [0x44d2bc], esi
lea edx, [esp + 0x368]
push 0x435060
push edx
call fcn.00414f7d
add esp, 8
test eax, eax
je 0x409101
mov dword [0x44d2c0], esi
cmp dword [0x44d2b8], esi
je 0x409123
xor esi, esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
add ebp, 0x54
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x409036
mov ebp, dword [esp + 0x20]
pop edi
pop ebx
push ebp
call fcn.00424044
mov esi, dword [0x44d2b8]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4fc], 0xffffffff
call fcn.00407690
mov eax, esi
pop ebp
mov ecx, dword [esp + 0x4f0]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4ec]
pop esi
xor ecx, esp
call fcn.00414a22
add esp, 0x4f8
ret
Function at 0x409180
Capabilities:
Get common file path

Disassembly:
sub esp, 0x45c
mov eax, dword [0x4431cc]
xor eax, esp
push esi
mov esi, dword [esp + 0x464]
mov dword [esp + 0x45c], eax
lea eax, [esp + 0x254]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x254]
push ecx
call fcn.004144df
add esp, 4
cmp word [esp + eax*2 + 0x252], 0x5c
je 0x4091df
lea edx, [esp + 0x254]
push 0x4330e4
push edx
call fcn.004145d0
add esp, 8
lea eax, [esp + 0x254]
push esi
push eax
call fcn.004145d0
add esp, 8
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x45c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00414a22
add esp, 0x45c
ret 4

Function at 0x409230
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x104
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
call fcn.004144df
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x409265
push 0x4330e4
push esi
call fcn.004145d0
add esp, 8
push str.fileenc.tmp
push esi
call fcn.004145d0
add esp, 8
pop esi
ret 4
Function at 0x409280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x430fbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd40
mov eax, dword [0x4431cc]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, ebp
push edi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x338]
mov dword [esp + 0xd44], eax
mov eax, dword [ebp + 8]
push ecx
push 0x104
mov dword [esp + 0x18], eax
call esi
lea edx, [esp + 0x338]
push edx
call fcn.004144df
add esp, 4
cmp word [esp + eax*2 + 0x336], 0x5c
je 0x409305
lea eax, [esp + 0x338]
push 0x4330e4
push eax
call fcn.004145d0
add esp, 8
lea ecx, [esp + 0x338]
push str.Setup.ini
push ecx
call fcn.004145d0
add esp, 8
lea edx, [esp + 0xe8]
push edx
lea eax, [esp + 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x409399
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x338]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x338]
push ecx
push 0x104
call esi
lea edx, [esp + 0x338]
push edx
call fcn.004144df
add esp, 4
cmp word [esp + eax*2 + 0x336], 0x5c
je 0x409384
lea eax, [esp + 0x338]
push 0x4330e4
push eax
call fcn.004145d0
add esp, 8
lea ecx, [esp + 0x338]
push str.SetupDer.ini
push ecx
call fcn.004145d0
add esp, 8
lea edx, [esp + 0x338]
push 0x4350c4
push edx
call fcn.00415d06
mov esi, eax
add esp, 8
test esi, esi
je 0x4093f6
push 2
push 0
push esi
call fcn.00415c61
push esi
call fcn.00415b91
push 0
push 0
push esi
mov edi, eax
call fcn.00415c61
add esp, 0x1c
cmp edi, 0xffffffff
je 0x4093f6
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00409230
push 0x4350bc
push ebx
call fcn.00415d06
mov edi, eax
add esp, 8
test edi, edi
jne 0x4093fd
xor eax, eax
jmp 0x4094e0
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
call fcn.004017b0
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
mov dword [esp + 0xd54], 0
jne 0x409494
nop
push esi
push 0x400
lea ecx, [esp + 0x948]
push 1
push ecx
call fcn.004159e3
add esp, 0x10
lea edx, [esp + 0x540]
push edx
push eax
lea eax, [esp + 0x948]
push eax
lea ecx, [esp + 0x24]
call fcn.00401b00
test byte [esi + 0xc], bl
je 0x409479
xor ecx, ecx
lea edx, [esp + eax + 0x540]
cmp byte [edx], 0
jne 0x40946c
inc ecx
dec edx
cmp ecx, 8
jl 0x409460
test ecx, ecx
je 0x409479
mov edx, 1
sub edx, ecx
add eax, edx
push edi
push eax
lea eax, [esp + 0x548]
push 1
push eax
call fcn.004158ae
mov al, byte [esi + 0xc]
add esp, 0x10
test bl, al
je 0x409420
push edi
call fcn.0041574e
push edi
call fcn.0041559d
push esi
call fcn.0041559d
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x54c]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x94c]
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0xd54], 0xffffffff
call fcn.00401000
mov eax, 1
mov ecx, dword [esp + 0xd4c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xd44]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret 8
Function at 0x409510
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x4431cc]
push ebx
xor eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
mov dword [esp + 0x1dc], eax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x11c
call esi
mov edi, eax
test edi, edi
jne 0x40956c
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x114
call esi
test eax, eax
je 0x4096e8
mov eax, dword [esp + 0x28]
dec eax
je 0x4096ff
dec eax
jne 0x40971a
mov ecx, dword [esp + 0x1c]
cmp ecx, 5
jne 0x4095a7
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x409597
mov dword [0x44d2c8], eax
jmp 0x4095c2
test eax, eax
jne 0x4095bd
mov eax, 1
mov dword [0x44d2c8], eax
jmp 0x4095c2
cmp ecx, 6
jne 0x4095bd
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4095bd
mov eax, ecx
mov dword [0x44d2c8], eax
jmp 0x4095c2
mov eax, dword [0x44d2c8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test edi, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
je 0x409625
cmp byte [esp + 0x132], 1
jne 0x4096b2
cmp ecx, 4
je 0x4096b7
mov edx, dword [esp + 0x130]
test dh, 2
je 0x40960d
cmp eax, 6
je 0x4096b2
mov dword [0x44d2c8], 3
jmp 0x4096b2
cmp eax, 6
je 0x4096b2
mov dword [0x44d2c8], 4
jmp 0x4096b2
lea edx, [esp + 0x10]
push edx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
mov esi, 0x50
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x4096e8
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x13c]
push ecx
push 0
push 0
push str.ProductType
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4096e8
cmp dword [esp + 0x14], esi
ja 0x4096e8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x138]
push ecx
push str.WINNT
call ebx
lea edx, [esp + 0x138]
push edx
push str.LANMANNT
call ebx
lea eax, [esp + 0x138]
push eax
push str.SERVERNT
call ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, 4
jne 0x40971a
push str.Service_Pack_6
lea ecx, [esp + 0x30]
push ecx
call ebx
test eax, eax
jne 0x40971a
lea edx, [esp + 0x10]
push edx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40971a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, ebp
call fcn.00414a22
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x1c], 4
jne 0x40971a
cmp dword [esp + 0x20], 0xa
jne 0x40971a
push str.Microsoft_Windows_98
call fcn.00415d19
add esp, 4
mov ecx, dword [esp + 0x1dc]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret
Function at 0x409f00
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x414
mov eax, dword [0x4431cc]
xor eax, esp
push esi
mov dword [esp + 0x414], eax
lea eax, [esp + 4]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 4]
push ecx
call fcn.004144df
add esp, 4
cmp word [esp + eax*2 + 2], 0x5c
je 0x409f4e
lea edx, [esp + 4]
push 0x4330e4
push edx
call fcn.004145d0
add esp, 8
push edi
lea eax, [esp + 8]
push str.Lang.txt
push eax
call fcn.004145d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push 0xa
lea ecx, [esp + 0x214]
movzx edx, ax
push ecx
push edx
mov word [0x4442c8], ax
call fcn.00414ddb
add esp, 0xc
xor eax, eax
mov ecx, 0x82
mov edi, 0x4442d4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x104
push 0x4442d4
push str.Failed
lea ecx, [esp + 0x220]
push ecx
push str.LANGUAGES
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.Failed
push 0x4442d4
call fcn.004150fa
add esp, 8
test eax, eax
jne 0x409fec
push str.English
mov ecx, 0x82
mov edi, 0x4442d4
push 0x4442d4
rep stosd dword es:[edi], eax
call fcn.004145fa
add esp, 8
push 0x4442d4
mov ecx, esi
call fcn.00409180
test eax, eax
jne 0x40a01a
push str.English
mov ecx, 0x82
mov edi, 0x4442d4
push 0x4442d4
rep stosd dword es:[edi], eax
call fcn.004145fa
add esp, 8
push str.English
push 0x4442d4
call fcn.004150fa
add esp, 8
test eax, eax
pop edi
jne 0x40a06b
push 0x4442d4
mov ecx, esi
call fcn.00409180
test eax, eax
jne 0x40a06b
push eax
push str.HP_LaserJet_P1000_P1500_Series_Uninstall
push str.Cannot_find_files_necessary_for_uninstallation._r_nPlease_run_Uninstall_from_the_CD.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00414a22
add esp, 0x414
ret
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov eax, 1
call fcn.00414a22
add esp, 0x414
ret
Function at 0x40bd81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40bdd4
call fcn.0042e555
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x40bdd4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40bdca
xor eax, eax
jmp 0x40beed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40be04
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40be04
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40beea
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40be31
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040a8ec
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40beea
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40be7a
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40be7a
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40be74
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040a8ec
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40beda
and dword [ebp + 0xc], 0
jmp 0x40beda
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40beda
push 0xc
call fcn.00424014
mov esi, eax
test esi, esi
pop ecx
je 0x40bebc
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40bebe
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40bed5
push dword [ebp - 8]
call fcn.00423ae7
jmp 0x40beda
call fcn.00423abe
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40be3f
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41430b
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x439058
call fcn.004167d4
mov edi, 0x94
mov eax, edi
call fcn.00414b20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44f718], ecx
mov eax, dword [esi + 4]
mov dword [0x44f724], eax
mov edx, dword [esi + 8]
mov dword [0x44f728], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44f71c], esi
cmp ecx, 2
je 0x41436b
or esi, 0x8000
mov dword [0x44f71c], esi
shl eax, 8
add eax, edx
mov dword [0x44f720], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4143a6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4143a6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4143be
cmp eax, 0x20b
je 0x4143ab
mov dword [ebp - 0x1c], esi
jmp 0x4143d2
cmp dword [ecx + 0x84], 0xe
jbe 0x4143a6
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4143cc
cmp dword [ecx + 0x74], 0xe
jbe 0x4143a6
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418264
pop ecx
test eax, eax
jne 0x4143e6
push 0x1c
call fcn.004142e7
pop ecx
call fcn.0041815b
test eax, eax
jne 0x4143f7
push 0x10
call fcn.004142e7
pop ecx
call fcn.00417ef5
mov dword [ebp - 4], esi
call fcn.00417cf7
test eax, eax
jge 0x414410
push 0x1b
call fcn.004142c2
pop ecx
call fcn.00417c58
mov dword [0x451110], eax
call fcn.00417aee
mov dword [0x44f70c], eax
call fcn.00417a58
test eax, eax
jge 0x414435
push 8
call fcn.004142c2
pop ecx
call fcn.00417825
test eax, eax
jge 0x414446
push 9
call fcn.004142c2
pop ecx
push 1
call fcn.004152da
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41445c
push eax
call fcn.004142c2
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.004177df
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41447d
movzx eax, word [ebp - 0x40]
jmp 0x414480
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004235f1
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41449e
push edi
call fcn.00415407
call fcn.00415429
jmp 0x4144d0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041680f
ret
Function at 0x415344
Capabilities:
Terminate process

Disassembly:
push 8
push 0x439118
call fcn.004167d4
push 8
call fcn.004198a0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44f758], esi
jne 0x415378
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44f754], esi
mov al, byte [ebp + 0x10]
mov byte [0x44f750], al
cmp dword [ebp + 0xc], edi
jne 0x4153c2
cmp dword [0x451108], edi
je 0x4153b2
mov eax, dword [0x451104]
sub eax, 4
mov dword [0x451104], eax
cmp eax, dword [0x451108]
jb 0x4153b2
mov eax, dword [eax]
cmp eax, edi
je 0x415393
call eax
jmp 0x415393
push 0x441090
mov eax, 0x441088
call fcn.004152c2
pop ecx
push 0x44109c
mov eax, 0x441094
call fcn.004152c2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4153f3
cmp dword [ebp + 0x10], edi
jne 0x415401
mov dword [0x44f758], esi
push dword [ebp + 8]
call fcn.00415280
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x415400
push 8
call fcn.004197eb
pop ecx
ret
call fcn.0041680f
ret

Function at 0x416820
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00414b20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4168bb
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44f718]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4168bb
cmp eax, 1
je 0x4168dc
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4168bb
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416888
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4168b7
xor eax, eax
inc eax
jmp 0x4168fb
cmp edi, eax
jae 0x4168bf
xor eax, eax
jmp 0x4168fb
cmp eax, esi
jae 0x4168c6
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44f718]
jmp 0x4168df
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4174ca
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4431cc]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x443388]
je 0x417501
inc eax
cmp eax, 0x13
jb 0x4174f2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x443388]
jne 0x417624
mov eax, dword [0x44f710]
cmp eax, 1
je 0x4175ff
cmp eax, edx
jne 0x417531
cmp dword [0x4431c8], 1
je 0x4175ff
cmp ecx, 0xfc
je 0x417624
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417567
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0041e4b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00416710
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41759b
mov eax, edi
push eax
call fcn.00416710
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4395e8
push edi
call fcn.0041e5b0
add esp, 0x10
push edi
call fcn.00416710
push dword [esi + 0x44338c]
mov ebx, eax
call fcn.00416710
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414b20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041e4b0
push edi
push ebx
call fcn.0041e4c0
push 0x4395c8
push ebx
call fcn.0041e4c0
push dword [esi + 0x44338c]
push ebx
call fcn.0041e4c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041e3b2
add esp, 0x2c
jmp 0x417624
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x44338c]
push dword [esi]
call fcn.00416710
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00414a22
add ebp, 0x90
leave
ret