joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438b20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046b0aa
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004384c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046afd8
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004677bf
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004677bf
push 1
push 0
push 0
mov ecx, esi
call fcn.00467767
push 1
push 0
push 1
mov ecx, esi
call fcn.00467767
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046b11c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x438ca0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046b0aa
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004384c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046afd8
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x438d64
cmp dword [esp + 0x40], 1
jne 0x438d62
cmp ecx, eax
jge 0x438d64
mov eax, ecx
cmp eax, 0xc8
jge 0x438d70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00438b20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046b11c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4394e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473f73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00465bdf
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046b352
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046c8aa
test eax, eax
je 0x4395fc
mov ecx, dword [esp + 0x3c]
call fcn.0046b37f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4395c0
push edi
mov ecx, esi
call fcn.0046893a
mov ecx, esi
call fcn.00439760
cmp dword [esp + 0x38], 1
jne 0x4395f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00468aa4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43c030
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c063
push esi
call fcn.0043f140
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c05c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c0e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c0d2
mov eax, dword [esi + 8]
test eax, eax
je 0x43c087
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c0ce
cmp eax, 2
je 0x43c0d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c07a
cmp eax, 3
je 0x43c0ad
cmp eax, 1
jne 0x43c07a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c07a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c07a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c110
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c0f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c110
add esp, 4
pop esi
ret

Function at 0x447c50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x447cf3
test eax, eax
jbe 0x447cf3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x447cf3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x447c9e
xor esi, esi
jmp 0x447ca4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x447ccf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402470
add esi, eax
push esi
mov ebx, esi
call fcn.00402470
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x447cb0
pop ebp
test edi, edi
pop edi
jne 0x447cf3
test ebx, ebx
je 0x447cf3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00455090
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x447e35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x447f4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x447f4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00466031
mov esi, eax
test esi, esi
je 0x447f4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x447f4d
mov ecx, esi
call fcn.00447da0
cmp edi, eax
jge 0x447f4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x447ed3
mov dword [esp + 0x34], 1
jmp 0x447f2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x447f4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00447370
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4669d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x466a0d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464a8c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464a64
jmp 0x466a19
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4680c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x468105
call fcn.0046ddb1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x468105
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4680fc
xor eax, eax
jmp 0x46810d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00468113
pop edi
pop esi
pop ebx
ret 4
Function at 0x46e2e1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46e30f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46e32d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046e247
jmp 0x46e32d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46e32d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046e247
test edi, edi
mov eax, edi
jne 0x46e317
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x67641680
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x11c]
push ecx
sub esp, 0x148
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x120], 0x104
mov edi, dword [ecx + 0xc]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x120]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathCreateFromUrlA]
sub esp, 0x10
mov ecx, eax
test byte [0x67643048], 8
jne 0x67641730
test ecx, ecx
mov eax, dword [ebp - 0x12c]
mov dword [esp + 0x14], edi
cmove esi, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.shell32.dll_ShellExecuteA]
sub esp, 0x18
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [ebp - 0x130], eax
mov eax, esi
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x12c]
mov dword [esp + 0xc], str.__p___s___d__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.FileProtocolHandlerA
mov dword [esp + 4], 0x67643048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x130]
jmp 0x676416e2

Function at 0x67641780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test byte [0x67643048], 1
jne 0x67641790
xor eax, eax
ret 4
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.__08lx_:_stub__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.InetIsOffline
mov dword [esp + 4], 0x67643048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
xor eax, eax
leave
ret 4

Function at 0x676417d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test byte [0x67643048], 1
jne 0x676417e0
ret 0x10
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 0x10]
call sym._wine_dbgstr_an.constprop.0
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], str.__p___p___s___d_:_stub__n
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], str.OpenURLA
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x67643048
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
leave
ret 0x10
Function at 0x67642280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x676422db
cmp byte [esi + ebx - 1], 0xa
je 0x676422af
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x67643118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x10017b1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 1
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_SaferCreateLevel]
mov edi, eax
cmp edi, esi
je 0x100180f
push esi
push 4
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SaferComputeTokenFromLevel]
mov edi, eax
cmp edi, esi
je 0x100180f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push 0x10
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
cmp dword [ebp - 4], esi
je 0x100181d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SaferCloseLevel]
cmp dword [ebp - 8], esi
je 0x100182b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0x18
Function at 0x100245f
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001188
call fcn.01002628
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100249c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100249c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10024b4
cmp eax, 0x20b
je 0x10024a1
mov dword [ebp - 0x1c], ebx
jmp 0x10024c8
cmp dword [ecx + 0x84], 0xe
jbe 0x100249c
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10024c2
cmp dword [ecx + 0x74], 0xe
jbe 0x100249c
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003170], 0xffffffff
or dword [0x1003174], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100316c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003168]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003178], eax
call fcn.010026dc
cmp dword [0x1003150], ebx
jne 0x1002523
push fcn.010026dc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010026ca
push 0x100113c
push 0x1001138
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003164]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003160]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001134
push 0x1001130
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10025b9
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x100258d
cmp al, 0x22
jne 0x100257f
cmp byte [esi], 0x22
jne 0x1002596
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10025a0
cmp al, 0x20
jbe 0x1002592
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x10025c4
movzx eax, word [ebp - 0x48]
jmp 0x10025c7
cmp byte [esi], 0x20
jbe 0x1002596
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10025b9
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x10025e4
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002619
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002661
ret
Function at 0x403250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426bf6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004149c0
xor ebx, ebx
lea ebp, [esi + 0x5c]
mov dword [esi], 0x42a43c
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov dword [esp + 0x38], ebx
mov byte [ebp + 4], bl
lea edi, [esi + 0x78]
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], 0xff00ff
mov dword [edi], 0x42a434
mov dword [edi + 0x14], 3
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0x300
mov dword [esi + 0x54], 5
mov dword [esi + 0x24], 0xf1f5f5
mov dword [esi + 0x20], 0x660000
mov dword [esi + 0x28], 0xc04040
mov eax, dword [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x99a8ac
mov dword [esi + 0x34], 0xeaf4f5
mov dword [esi + 0x38], 0x2c8be6
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x3c], ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x436200
mov byte [esp + 0x3c], 2
mov dword [esi + 0x40], 0x743c00
mov dword [esi + 0x44], 0xbac7c9
mov dword [esi + 0x1c], 1
mov dword [esi + 8], ebx
mov dword [esi + 0x58], 0x190
call fcn.00410690
push 0xffffffffffffffff
push ebx
push eax
mov ecx, ebp
mov byte [esp + 0x44], 3
call fcn.00401310
cmp dword [esp + 0x2c], 0x10
mov byte [esp + 0x38], 2
jb 0x403359
mov eax, dword [esp + 0x18]
push eax
call fcn.0041e69d
add esp, 4
cmp dword [esp + 0x40], ebx
mov dword [esi + 0x10], 1
je 0x403398
mov eax, dword [edi + 0xc]
cmp eax, ebx
mov ebp, dword [0x436438]
je 0x40337a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x40]
push ebx
push ebx
push ebx
push ebx
push ecx
push ebp
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [edi + 0xc], eax
je 0x403398
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x404f40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x426e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
cmp eax, dword [edi + 0x3ac]
mov esi, 1
jne 0x405045
mov eax, dword [edi + 0x3a4]
xor ebx, ebx
cmp eax, ebx
je 0x404ff0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x42a46c
mov byte [ecx + 4], bl
call fcn.00401b80
mov edx, dword [edi + 0x10]
lea esi, [edi + 0x10]
mov ecx, esi
mov dword [esp + 0x34], 0xffffffff
call dword [edx + 4]
push eax
call fcn.004091d0
add esp, 4
mov eax, esp
mov dword [esp + 0x3c], esp
push str.exc_aborted
push eax
call fcn.00410470
add esp, 8
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x34], 0xffffffff
call dword [edx + 4]
push eax
call fcn.004091d0
add esp, 0x20
push 0x70
mov ecx, edi
call fcn.00404420
jmp 0x405018
mov ecx, 0x436280
call fcn.0040c610
test eax, eax
je 0x405045
lea eax, [esp + 0xc]
push eax
push ebx
push 0x70
push 0x404e80
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x436260], eax
mov ecx, dword [edi + 0x3ac]
mov edx, dword [edi + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_KillTimer]
inc dword [edi + 0x3ac]
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 4