joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030b0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push reloc.kernel32.dll_LocalFree
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60c
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004066c0
lea ebp, [esi + 0x1800]
mov edi, 0x424db2
mov esi, ebp
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x620], 0
je 0x403191
push ebp
lea ecx, [esp + 0x21c]
push str._s.
push ecx
call fcn.00408f1d
add esp, 0xc
push 0
lea edx, [esp + 0x21c]
push edx
lea ecx, [esp + 0x14]
call fcn.00406410
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403130
sub eax, edx
lea esi, [eax - 2]
test esi, esi
jle 0x403179
cmp byte [esi + ebp], 0x5c
je 0x40314d
dec esi
test esi, esi
jg 0x403140
jmp 0x403179
test esi, esi
jle 0x403179
push esi
lea eax, [esp + 0x118]
push ebp
push eax
call fcn.0040a230
add esp, 0xc
lea ecx, [esp + 0x114]
push ecx
mov byte [esp + esi + 0x118], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x620], 0xffffffff
call fcn.00401390
mov al, 1
jmp 0x4031a7
lea ecx, [esp + 0xc]
mov dword [esp + 0x620], 0xffffffff
call fcn.00401390
xor al, al
mov ecx, dword [esp + 0x618]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x618
ret

Function at 0x4031c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push reloc.kernel32.dll_LocalFree
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00405b50
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0
call fcn.00405660
add esi, 0x1c00
push esi
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x114]
push str._s_s.lnk
push edx
call fcn.00408f1d
add esp, 0x10
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
mov dword [esp + 0x218], 0xffffffff
call fcn.00401390
mov ecx, dword [esp + 0x210]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x404320
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 0x404339
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40434d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40436e
cmp esi, eax
jae 0x404347
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404360
cmp esi, eax
jae 0x404347
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x405080
Capabilities:
Identify system language via api

Disassembly:
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00405b50
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call fcn.00401c60
add esp, 4
cmp eax, 1
jge 0x4050b3
mov al, byte [0x433a0c]
neg al
sbb eax, eax
and eax, 0xffffffee
add eax, 0x13
push eax
mov ecx, esi
call fcn.00405060
lea ecx, [esp + 4]
call fcn.00401390
pop esi
pop ecx
ret

Function at 0x405081
Capabilities:
Identify system language via api

Disassembly:
push ecx
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00405b50
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
call fcn.00401c60
add esp, 4
cmp eax, 1
jge 0x4050b3
mov al, byte [0x433a0c]
neg al
sbb eax, eax
and eax, 0xffffffee
add eax, 0x13
push eax
mov ecx, esi
call fcn.00405060
lea ecx, [esp + 4]
call fcn.00401390
pop esi
pop ecx
ret

Function at 0x405460
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
push 1
push eax
push ecx
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x4055d0
ja 0x4055ba
movzx edx, byte [eax + 0x405610]
jmp dword [edx*4 + 0x4055d8]
push 0
push esi
push 0x4254cc
push 0
call dword [0x42fc7c]
xor al, al
pop esi
ret 0xc
mov al, 1
pop esi
ret 0xc
Function at 0x4056a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x4254cc]
mov ecx, dword [0x4254d0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [0x4332dc], ecx
mov dword [0x4332d8], eax
xor eax, eax
lea edx, [esp + 8]
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x405701
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
je 0x4058d5
mov eax, dword [esp + 0x18]
sub eax, 0
mov byte [0x433c1c], 0
je 0x40589d
dec eax
je 0x4057e0
dec eax
jne 0x4058d5
mov eax, dword [esp + 0xc]
cmp eax, 4
mov ecx, 1
mov byte [0x433c1c], cl
ja 0x405769
mov edx, dword [str.Windows_NT]
mov dword [0x4332d8], edx
mov edx, dword [0x425860]
mov dword [0x4332dc], edx
mov dx, word [0x425864]
mov word [0x4332e0], dx
mov dl, byte [0x425866]
mov byte [0x4332e2], dl
cmp eax, 5
jb 0x4058d5
cmp dword [esp + 0x10], ecx
jb 0x4057ac
mov eax, dword [str.Windows_XP]
mov ecx, dword [0x425854]
mov dx, word [0x425858]
mov dword [0x4332d8], eax
mov al, byte [0x42585a]
mov dword [0x4332dc], ecx
mov word [0x4332e0], dx
mov byte [0x4332e2], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.Windows_2000]
mov edx, dword [0x425844]
mov eax, dword [0x425848]
mov dword [0x4332d8], ecx
mov cl, byte [0x42584c]
mov dword [0x4332dc], edx
mov dword [0x4332e0], eax
mov byte [0x4332e4], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
mov ecx, dword [esp + 0x10]
jb 0x405833
cmp ecx, 0x5a
jb 0x405828
mov edx, dword [str.Windows_ME]
mov eax, dword [0x425838]
mov cx, word [0x42583c]
mov dword [0x4332d8], edx
mov dl, byte [0x42583e]
mov dword [0x4332dc], eax
mov word [0x4332e0], cx
mov byte [0x4332e2], dl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x405867
jne 0x405833
test ecx, ecx
ja 0x405867
mov eax, dword [str.Windows_95]
mov ecx, dword [0x425470]
mov dx, word [0x425474]
mov dword [0x4332d8], eax
mov al, byte [0x425476]
mov dword [0x4332dc], ecx
mov word [0x4332e0], dx
mov byte [0x4332e2], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.Windows_98]
mov edx, dword [0x42582c]
mov ax, word [0x425830]
mov dword [0x4332d8], ecx
mov cl, byte [0x425832]
mov dword [0x4332dc], edx
mov word [0x4332e0], ax
mov byte [0x4332e2], cl
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [str.Microsoft_Win32s]
mov eax, dword [0x425818]
mov ecx, dword [0x42581c]
mov dword [0x4332d8], edx
mov edx, dword [0x425820]
mov dword [0x4332dc], eax
mov al, byte [0x425824]
mov dword [0x4332e0], ecx
mov dword [0x4332e4], edx
mov byte [0x4332e8], al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405b50
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push edi
push str.shell32.dll
mov edi, ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x405b7d
push str.SHGetSpecialFolderPathA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], eax
push 0
mov ecx, edi
call fcn.004075f0
mov al, byte [0x4332d0]
test al, al
jne 0x405d7d
call fcn.004056a0
push 0x104
push 0x4333e0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push 0x4335f0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x4336f8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, 0x4336f8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405bd0
sub eax, edx
mov byte [eax + 0x4336f7], 0x5c
mov eax, 0x4336f8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405be8
push ebx
push ebp
push esi
sub eax, ecx
push 0x104
push 0x4334e8
mov ecx, edi
mov byte [eax + 0x4336f7], dl
call fcn.00405390
mov al, byte [0x433c1c]
test al, al
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
je 0x405c3d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405c3d
push 0
push 0x17
push 0x433800
push 0
call eax
jmp 0x405c81
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x405c81
lea ecx, [esp + 0x18]
push ecx
push 0x433800
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x24]
push str.Programs
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov al, byte [0x433c1c]
test al, al
je 0x405ca1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405ca1
push 0
push 0x19
push 0x433a10
push 0
call eax
jmp 0x405ce6
lea edx, [esp + 0x14]
push edx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x405ce6
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x433a10
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Desktop
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebx
mov al, byte [0x433c1c]
test al, al
je 0x405d06
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405d06
push 0
push 0x18
push 0x433908
push 0
call eax
jmp 0x405d4b
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [esp + 0x2c], 0x104
call esi
test eax, eax
jne 0x405d4b
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x433908
lea eax, [esp + 0x24]
push eax
push 0
push str.Startup
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebx
mov al, byte [0x433c1c]
test al, al
pop esi
pop ebp
mov byte [0x4332d0], 1
pop ebx
je 0x405d76
mov ecx, edi
call fcn.00405920
test eax, eax
setne al
mov byte [0x433c1d], al
mov eax, edi
pop edi
add esp, 0x10
ret
mov byte [0x433c1d], 1
mov eax, edi
pop edi
add esp, 0x10
ret
Function at 0x406220
Capabilities:
Create directory
Delete directory

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
lea ebp, [esi + eax]
mov ebx, 1
mov eax, ebp
push edi
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], bl
xor edi, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406250
sub eax, edx
mov dword [esp + 0x18], eax
je 0x406310
mov eax, esi
lea ecx, [esp + 0x1c]
sub eax, ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
sub ebx, edx
jmp 0x406280
mov eax, dword [esp + 0x18]
jmp 0x406280
lea esi, [esp + edi + 0x1c]
cmp byte [eax + esi], 0x5c
jne 0x4062ea
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406297
lea eax, [esp + 0x1c]
mov byte [esi], cl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4062b0
sub eax, edx
cmp eax, 3
jbe 0x4062ea
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.004061e0
test al, al
jne 0x4062ea
lea ecx, [ebx + esi]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
call fcn.00406220
test al, al
mov byte [esp + 0x13], al
je 0x40633d
mov eax, ebp
inc edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4062f0
sub eax, edx
cmp edi, eax
jb 0x406277
mov al, byte [esp + 0x13]
test al, al
je 0x40633d
mov esi, dword [esp + 0x124]
mov ecx, dword [esp + 0x14]
push esi
call fcn.004061e0
test al, al
jne 0x4063f6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x110
ret 8
mov ebx, dword [esp + 0x124]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406350
sub eax, edx
mov edi, eax
je 0x4063f6
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406370
mov eax, dword [esp + 0x18]
add eax, edi
cmp byte [esp + eax + 0x1c], 0x5c
jne 0x4063ef
lea edx, [esp + 0x1c]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406385
lea eax, [esp + 0x1c]
mov byte [esp + edi + 0x1c], cl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4063a0
sub eax, edx
cmp eax, 3
jbe 0x4063ef
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004061e0
test al, al
je 0x4063ef
xor esi, esi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4063ef
push 0x3e8
call ebp
inc esi
cmp esi, 3
jl 0x4063c2
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 8
dec edi
jne 0x406370
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 8
Function at 0x4072b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x114
push esi
push edi
mov edi, dword [esp + 0x120]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push edi
push 0x80000002
mov esi, 0x91
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407324
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push eax
push eax
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x407319
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x114
ret 4

Function at 0x407360
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [ecx]
or eax, 0xffffffff
test ecx, ecx
je 0x407383
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
ret 0xc

Function at 0x407390
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
or eax, 0xffffffff
test ecx, ecx
je 0x4073bc
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 8
Function at 0x407430
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push reloc.kernel32.dll_LocalFree
push eax
mov dword fs:[0], esp
sub esp, 0xd20
push ebp
push esi
push edi
mov edi, dword [esp + 0xd3c]
mov ebp, ecx
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp]
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
push eax
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
je 0x407492
cmp esi, 0xea
jne 0x407518
lea ecx, [esp + 0xc]
call fcn.00407280
lea ecx, [esp + 0x28]
push ecx
push edi
lea edx, [esp + 0x534]
push str._s_s
push edx
mov dword [esp + 0xd44], 0
call fcn.00408f1d
add esp, 0x10
lea eax, [esp + 0x52c]
push eax
push 0x80000002
lea ecx, [esp + 0x14]
call fcn.00407400
lea ecx, [esp + 0x52c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00407430
lea ecx, [esp + 0xc]
call fcn.00407340
mov eax, dword [ebp]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0xd34], 0xffffffff
call fcn.004073c0
cmp esi, 0x103
jne 0x407457
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407530
sub eax, edx
lea esi, [eax - 1]
test esi, esi
jle 0x40754b
cmp byte [esi + edi], 0x5c
je 0x407569
dec esi
test esi, esi
jg 0x407540
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xd2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0xd2c
ret 4
lea ecx, [esp + 0xc]
call fcn.00407280
push esi
lea ecx, [esp + 0x130]
push edi
push ecx
call fcn.0040a230
lea eax, [esi + edi + 1]
lea edx, [esp + 0x938]
add esp, 0xc
mov byte [esp + esi + 0x12c], 0
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4075a0
lea edx, [esp + 0x12c]
push edx
push 0x80000002
lea ecx, [esp + 0x14]
call fcn.00407400
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x92c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.004073c0
mov eax, esi
jmp 0x40754f
Function at 0x40901c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0040d32e
xor esi, esi
inc esi
cmp dword [0x455b90], esi
pop ecx
jne 0x409044
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x455b8c], esi
mov byte [0x455b88], al
jne 0x4090aa
mov ecx, dword [0x4573cc]
test ecx, ecx
je 0x40908b
mov eax, dword [0x4573c8]
sub eax, 4
cmp eax, ecx
jmp 0x409084
mov eax, dword [eax]
test eax, eax
je 0x409076
call eax
mov eax, dword [0x4573c8]
sub eax, 4
cmp eax, dword [0x4573cc]
mov dword [0x4573c8], eax
jae 0x40906e
mov eax, 0x42e088
mov esi, 0x42e090
cmp eax, esi
mov edi, eax
jae 0x4090aa
mov eax, dword [edi]
test eax, eax
je 0x4090a3
call eax
add edi, 4
cmp edi, esi
jb 0x40909b
mov eax, 0x42e094
mov esi, 0x42e09c
cmp eax, esi
mov edi, eax
jae 0x4090c9
mov eax, dword [edi]
test eax, eax
je 0x4090c2
call eax
add edi, 4
cmp edi, esi
jb 0x4090ba
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4090da
push 8
call fcn.0040d29a
jmp 0x4090ec
push dword [ebp + 8]
mov dword [0x455b90], 1
call fcn.00408f75
pop ecx
pop ebp
ret
Function at 0x4091ff
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x427a98
call fcn.0040c618
mov edi, 0x94
mov eax, edi
call fcn.00408ee0
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 [0x455b50], ecx
mov eax, dword [esi + 4]
mov dword [0x455b5c], eax
mov edx, dword [esi + 8]
mov dword [0x455b60], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x455b54], esi
cmp ecx, 2
je 0x40925f
or esi, 0x8000
mov dword [0x455b54], esi
shl eax, 8
add eax, edx
mov dword [0x455b58], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], reloc.kernel32.dll_ReadConsoleW
jne 0x40929a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40929a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4092b2
cmp eax, 0x20b
je 0x40929f
mov dword [ebp - 0x1c], esi
jmp 0x4092c6
cmp dword [ecx + 0x84], 0xe
jbe 0x40929a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4092c0
cmp dword [ecx + 0x74], 0xe
jbe 0x40929a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040d379
pop ecx
test eax, eax
jne 0x4092da
push 0x1c
call fcn.004091db
pop ecx
call fcn.0040d13e
test eax, eax
jne 0x4092eb
push 0x10
call fcn.004091db
pop ecx
call fcn.0040e844
mov dword [ebp - 4], esi
call fcn.0040f040
test eax, eax
jge 0x409304
push 0x1b
call fcn.004091b6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4573c0], eax
call fcn.0040ef1e
mov dword [0x455b94], eax
call fcn.0040ee7c
test eax, eax
jge 0x40932a
push 8
call fcn.004091b6
pop ecx
call fcn.0040ec49
test eax, eax
jge 0x40933b
push 9
call fcn.004091b6
pop ecx
call fcn.00408fb7
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40934e
push eax
call fcn.004091b6
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040ebe0
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40936f
movzx eax, word [ebp - 0x34]
jmp 0x409372
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00415dd2
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x409390
push edi
call fcn.004090ef
call fcn.00409111
jmp 0x4093c2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040c653
ret
Function at 0x40aab4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x40aad0
call fcn.0040bbbf
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x40ab42
push esi
push 0x88
push 1
call fcn.0040c3ba
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40ab28
push esi
call fcn.0040cf4f
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x40aa14
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x40ab20
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40ab3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00408e68
test ebx, ebx
pop ecx
je 0x40ab3a
push ebx
call fcn.0040bbd1
pop ecx
or eax, 0xffffffff
jmp 0x40ab41
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x40e8cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42ec98]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42f280]
je 0x40e8f9
inc eax
cmp eax, 0x12
jb 0x40e8ea
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42f280]
jne 0x40ea2d
mov eax, dword [0x455b9c]
cmp eax, 1
je 0x40ea08
cmp eax, edx
jne 0x40e929
cmp dword [0x42ecb4], 1
je 0x40ea08
cmp ecx, 0xfc
je 0x40ea2d
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e962
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00411650
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0040b4f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40e9a4
lea eax, [ebp - 0x10c]
push eax
call fcn.0040b4f0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x427e04
push edi
call fcn.0040a230
add esp, 0x10
push edi
call fcn.0040b4f0
push dword [esi + 0x42f284]
mov ebx, eax
call fcn.0040b4f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00408ee0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00411650
push edi
push ebx
call fcn.00411660
push 0x427e00
push ebx
call fcn.00411660
push dword [esi + 0x42f284]
push ebx
call fcn.00411660
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004131b2
add esp, 0x2c
jmp 0x40ea2d
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x42f284]
push dword [esi]
call fcn.0040b4f0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004087e5
pop edi
pop esi
pop ebx
leave
ret