joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401220
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [esi]
push edi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x4013e0
Capabilities:
Get file version info

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
cmp ebp, esi
je 0x4014a0
cmp dword [esp + 0x18], esi
je 0x4014a0
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, esi
ja 0x401422
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
push edi
lea edi, [ebx + ebx]
push edi
call fcn.0040e82c
mov esi, eax
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
add esp, 4
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
push 0
push eax
mov dword [esp + 0x2c], 0
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x41952c
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push 0x419514
push ebp
call fcn.0040f398
add esp, 0x18
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret 0xc
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x401c70
Capabilities:
Enumerate processes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418a48
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x20], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x22c
mov edi, eax
call fcn.0040e808
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push esi
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov ebx, dword [esp + 0x20]
je 0x401ce9
lea ebp, [esi + 0x24]
lea ebx, [ebx]
push ebp
push ebx
call fcn.0040f302
add esp, 8
test eax, eax
je 0x401d21
push esi
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401cd0
mov eax, dword [0x41d054]
lea edx, [ebx - 0xc]
cmp edx, eax
je 0x401d0c
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401d0c
push esi
call fcn.0040f26f
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x41d054]
lea ecx, [ebx - 0xc]
cmp ecx, eax
je 0x401d69
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x401d69
push esi
call fcn.0040f26f
add esp, 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x402020
Capabilities:
Check os version
Create process on windows
Create shortcut via ishelllink
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41822b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x402121
lea eax, [esp + 0xc]
push eax
push 0x419e94
push 1
push 0
push 0x419ea4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402121
mov edx, dword [0x41e098]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push 0x4195b8
push eax
call dword [ecx + 0x1c]
mov dword [esp + 8], 0
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 8]
push ecx
push 0x419eb4
push eax
mov dword [esp + 0x348], 0
call dword [edx]
test eax, eax
jl 0x402108
push 0
push 0x1a
lea edx, [esp + 0x130]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x128]
push str.MicrosoftInternet_ExplorerQuick_Launch_
push eax
call fcn.0040f98f
add esp, 8
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push 0
lea ecx, [esp + 0x12c]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
test eax, eax
mov dword [esp + 0x33c], 0xffffffff
je 0x402121
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, 0x45
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x14], 6
jb 0x402168
mov ecx, dword [0x41e098]
push 0
push 0
push 0
push ecx
push 0x419538
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x334]
mov eax, 1
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402980
Capabilities:
Download url
Receive data

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 4]
test edi, edi
je 0x4029b3
mov ecx, dword [esi + 8]
sub ecx, edi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
jne 0x4029d3
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 0
push 0x30
push 0
push 0
push eax
call dword [ecx + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov eax, dword [esi + 0x10]
lea edx, [eax + eax*4]
lea eax, [edi + edx*4]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x402a3b
mov dword [eax + 0xc], 3
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x14]
lea eax, [eax + eax*4]
push edi
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
mov eax, dword [esi + 0x10]
jne 0x402a64
lea edx, [eax + eax*4]
mov eax, dword [esi + 4]
lea eax, [eax + edx*4]
mov dword [eax + 0xc], 1
jmp 0x402a83
cmp dword [eax + 0xc], 2
jne 0x402a91
mov edx, dword [eax + 0x10]
mov ecx, 3
cmp edx, ecx
jg 0x402a91
mov edi, edx
inc edi
mov dword [eax + 0x10], edi
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 0xc], ecx
jmp 0x402a00
mov edx, dword [esi + 4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov dword [eax + 0xc], 2
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
inc dword [eax + 0x10]
mov edx, dword [edi]
push 0
push 0x30
push 0
push 0
push edi
call dword [edx + 0x18]
mov eax, dword [esi + 4]
test eax, eax
je 0x402aae
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esi + 0x10]
dec eax
cmp ecx, eax
jne 0x402acb
push ebp
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ecx
ret 4
inc ecx
push ebp
mov dword [esi + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ecx
ret 4

Function at 0x403100
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x402c10
push 0
push 0
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
pop esi
ret 4
Function at 0x403a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41828f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
push edi
mov dword [esp + 8], esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0x4194f8
mov dword [esi], 0x419624
mov dword [esi + 0x20], 0x419620
mov dword [esp + 0x14], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov eax, dword [0x41d050]
mov dword [esi + 0x2c], eax
mov edx, dword [0x41d050]
lea ecx, [esi + 0x30]
mov dword [ecx], edx
mov eax, dword [0x41d050]
lea edi, [esi + 0x34]
mov dword [edi], eax
push 0x419748
mov byte [esp + 0x18], 5
call fcn.00403230
push 0x419718
mov ecx, edi
call fcn.00403230
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4049d0
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x418a48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x30], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
push 0x22c
mov dword [esp + 0x14], ebp
call fcn.0040e808
mov edi, eax
add esp, 4
push edi
push ebp
mov dword [esp + 0x1c], edi
mov dword [edi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push edi
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x404b71
nop
mov esi, dword [esp + 0x30]
lea eax, [edi + 0x24]
push eax
push esi
call fcn.0040f302
add esp, 8
test eax, eax
jne 0x404b29
mov eax, dword [edi + 8]
push eax
push 0
inc ebx
push 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp ebx, 1
lea eax, [esi - 0xc]
jne 0x404b3a
push ecx
cmp dword [eax], 0
mov dword [esp + 0x20], esp
mov ebx, esp
jl 0x404a8b
push eax
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x404b1d
mov ecx, dword [0x41d050]
push esi
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax - 0xc]
cmp edx, 1
lea ecx, [eax - 0xc]
jg 0x404aae
cmp ebp, dword [eax - 4]
jle 0x404ae7
mov edx, dword [0x41d054]
add eax, 0xfffffff4
cmp eax, edx
je 0x404adb
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404ad4
mov edx, dword [ebx]
sub edx, 0xc
push edx
call fcn.0040f26f
add esp, 4
mov eax, dword [0x41d050]
mov dword [ebx], eax
push ebp
mov ecx, ebx
call fcn.004018f0
test eax, eax
je 0x404b19
lea eax, [ebp + ebp]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x404b0c
mov edi, dword [ebx]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx]
mov dword [ecx - 8], ebp
mov edx, dword [ebx]
mov word [eax + edx], 0
mov ebp, dword [esp + 0x14]
call fcn.00401c70
mov ebx, dword [esp + 0x1c]
add esp, 4
push edi
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404a30
jmp 0x404b75
cmp eax, dword [0x41d054]
je 0x404b59
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404b59
push esi
call fcn.0040f26f
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov esi, dword [esp + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41d054]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x404b9f
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x404b9f
push esi
call fcn.0040f26f
add esp, 4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x406f80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x218
mov edx, dword [esp + 0x21c]
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x406fde
test ecx, ecx
je 0x406fd0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x406ffa
test ecx, ecx
je 0x40709d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x218
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x407064
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.00406f80
mov edi, eax
test edi, edi
jne 0x4070aa
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x407026
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x40707b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x224]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x40709d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x218
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x4070b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x218
ret 4
Function at 0x4074c0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4074d2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40836a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [0x41e110]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
mov dword [esi + 4], eax
je 0x408397
push eax
mov eax, dword [0x41e110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esi], eax
jne 0x40839d
mov dword [esi + 4], eax
xor al, al
pop esi
ret 8
mov al, 1
pop esi
ret 8
Function at 0x40de30
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0xc4]
xor ecx, ecx
test eax, eax
setg cl
push ecx
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [esi + 0xc4], 1
pop esi
jne 0x40de75
mov edx, dword [0x41e098]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret 4

Function at 0x40fdc4
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x419fe8
call fcn.00410450
mov edi, 0x94
mov eax, edi
call fcn.0040fb80
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 [0x41e32c], ecx
mov eax, dword [esi + 4]
mov dword [0x41e338], eax
mov edx, dword [esi + 8]
mov dword [0x41e33c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41e330], esi
cmp ecx, 2
je 0x40fe24
or esi, 0x8000
mov dword [0x41e330], esi
shl eax, 8
add eax, edx
mov dword [0x41e334], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40fe5f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fe5f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fe77
cmp eax, 0x20b
je 0x40fe64
mov dword [ebp - 0x1c], esi
jmp 0x40fe8b
cmp dword [ecx + 0x84], 0xe
jbe 0x40fe5f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40fe85
cmp dword [ecx + 0x74], 0xe
jbe 0x40fe5f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411019
pop ecx
test eax, eax
jne 0x40fe9f
push 0x1c
call fcn.0040fda0
pop ecx
call fcn.00410a6b
test eax, eax
jne 0x40feb0
push 0x10
call fcn.0040fda0
pop ecx
call fcn.00414249
mov dword [ebp - 4], esi
call fcn.0041404b
test eax, eax
jge 0x40fec9
push 0x1b
call fcn.0040fd7b
pop ecx
call fcn.00413fac
mov dword [0x41fab4], eax
call fcn.00413e42
mov dword [0x41e154], eax
call fcn.00413dac
test eax, eax
jge 0x40feee
push 8
call fcn.0040fd7b
pop ecx
call fcn.00413b79
test eax, eax
jge 0x40feff
push 9
call fcn.0040fd7b
pop ecx
push 1
call fcn.0041363c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40ff15
push eax
call fcn.0040fd7b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00413b33
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40ff36
movzx eax, word [ebp - 0x40]
jmp 0x40ff39
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040d6d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40ff57
push edi
call fcn.00413769
call fcn.0041378b
jmp 0x40ff89
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041048b
ret
Function at 0x410dd6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x410e04
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x410e0b
cmp ebx, dword [eax + 4]
jae 0x410e0b
xor eax, eax
jmp 0x410ffb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410e1c
xor eax, eax
inc eax
jmp 0x410ffa
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410e32
cmp ecx, edx
jae 0x410f77
cmp dword [eax + 4], 0
je 0x410e3b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410e23
cmp dword [ebp + 8], 0
je 0x410e5d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410f77
cmp eax, esi
jae 0x410f77
mov eax, dword [0x41e2d8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410e82
cmp dword [esi*4 + 0x41e2e0], edi
je 0x410f7b
inc esi
cmp esi, eax
jl 0x410e70
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410ff7
cmp dword [ebp - 8], 0x1000000
jne 0x410ff7
test byte [ebp - 0xc], 0xcc
je 0x410f00
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410ff7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410ff7
cmp word [eax + 0x18], 0x10b
jne 0x410ff7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410ff7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410f00
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410f00
test byte [ecx + 0x27], 0x80
jne 0x410f77
push 1
push 0x41e320
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410e14
mov ecx, dword [0x41e2d8]
test ecx, ecx
mov edx, ecx
jle 0x410f34
lea eax, [ecx*4 + 0x41e2dc]
cmp dword [eax], edi
je 0x410f34
dec edx
sub eax, 4
test edx, edx
jg 0x410f28
test edx, edx
jne 0x410f65
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410f41
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410f59
lea eax, [edx*4 + 0x41e2e0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x410f47
cmp ecx, 0x10
jge 0x410f65
inc ecx
mov dword [0x41e2d8], ecx
push 0
push 0x41e320
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410e14
xor eax, eax
jmp 0x410ffa
test esi, esi
jle 0x410e14
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41e320
call ebx
test eax, eax
jne 0x410e14
cmp dword [esi*4 + 0x41e2e0], edi
je 0x410fd1
mov eax, dword [0x41e2d8]
lea esi, [eax - 1]
test esi, esi
jl 0x410fbf
cmp dword [esi*4 + 0x41e2e0], edi
je 0x410fbb
dec esi
jns 0x410faf
test esi, esi
jge 0x410fcf
cmp eax, 0x10
jge 0x410fca
inc eax
mov dword [0x41e2d8], eax
lea esi, [eax - 1]
jmp 0x410fd1
je 0x410fe9
xor ecx, ecx
test esi, esi
jl 0x410fe9
lea eax, [ecx*4 + 0x41e2e0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410fd7
push 0
push 0x41e320
call ebx
jmp 0x410e14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4136a6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41a800
call fcn.00410450
push 8
call fcn.00410cad
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41e36c], esi
jne 0x4136da
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41e368], esi
mov al, byte [ebp + 0x10]
mov byte [0x41e364], al
cmp dword [ebp + 0xc], edi
jne 0x413724
cmp dword [0x41fa88], edi
je 0x413714
mov eax, dword [0x41fa84]
sub eax, 4
mov dword [0x41fa84], eax
cmp eax, dword [0x41fa88]
jb 0x413714
mov eax, dword [eax]
cmp eax, edi
je 0x4136f5
call eax
jmp 0x4136f5
push 0x41d03c
mov eax, 0x41d034
call fcn.00413624
pop ecx
push 0x41d048
mov eax, 0x41d040
call fcn.00413624
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x413755
cmp dword [ebp + 0x10], edi
jne 0x413763
mov dword [0x41e36c], esi
push dword [ebp + 8]
call fcn.004135e2
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x413762
push 8
call fcn.00410bf8
pop ecx
ret
call fcn.0041048b
ret

Function at 0x41381f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41d170]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41d478]
je 0x413854
inc eax
cmp eax, 0x13
jb 0x413845
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41d478]
jne 0x41397a
mov eax, dword [0x41e158]
cmp eax, 1
je 0x413952
cmp eax, edx
jne 0x413884
cmp dword [0x41d168], 1
je 0x413952
cmp ecx, 0xfc
je 0x41397a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4138ba
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00413070
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040ffc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4138ee
mov eax, edi
push eax
call fcn.0040ffc0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ac08
push edi
call fcn.00414b50
add esp, 0x10
push edi
call fcn.0040ffc0
push dword [esi + 0x41d47c]
mov ebx, eax
call fcn.0040ffc0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040fb80
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00413070
push edi
push ebx
call fcn.00413080
push 0x41abe8
push ebx
call fcn.00413080
push dword [esi + 0x41d47c]
push ebx
call fcn.00413080
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041657d
add esp, 0x2c
jmp 0x41397a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41d47c]
push dword [esi]
call fcn.0040ffc0
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]
mov ecx, dword [ebp + 0x88]
call fcn.004103e0
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret