joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cfd0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d003
push esi
call fcn.004400d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43cffc
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 0x43d089
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d072
mov eax, dword [esi + 8]
test eax, eax
je 0x43d027
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 0x43d06e
cmp eax, 2
je 0x43d072
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d01a
cmp eax, 3
je 0x43d04d
cmp eax, 1
jne 0x43d01a
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 0x43d01a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d01a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d0b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d098
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d0b0
add esp, 4
pop esi
ret

Function at 0x4483f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x448456
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x448456
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x448437
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x448f90
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004490e0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x448fb0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x448f91
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.004490e0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x448fb0
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x448fe0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x449037
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44904d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.00449070
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x449070
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x449100
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x449149
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x4495c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46bb50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00449170
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004491f0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004491f0
lea ecx, [esi + 0xc]
call fcn.0045d826
lea ecx, [esi + 0x10]
call fcn.0045d826
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044ba20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044ba20
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044ba20
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045d89b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045d89b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44a268
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46bd78
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44a278
call fcn.0044a790
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44a35b
cmp byte [edi], 0
je 0x44a35b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44a29d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00448f90
test eax, eax
jne 0x44a2bd
push 0x703458
lea ecx, [esi + 0x38]
call fcn.0045d9d8
jmp 0x44a35b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00448fe0
test eax, eax
jne 0x44a2ec
mov ecx, esi
call fcn.004490e0
push edi
add esi, 0x38
push 0x703434
push esi
call fcn.0045b837
add esp, 0xc
jmp 0x44a35b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044b010
test eax, eax
je 0x44a354
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044a430
test eax, eax
jne 0x44a370
push edi
lea eax, [esi + 0x38]
push 0x703410
push eax
call fcn.0045b837
add esp, 0xc
mov ecx, esi
call fcn.0044a790
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44a418
mov ecx, dword [0x7036c8]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0045b837
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00449090
test eax, eax
jne 0x44a3da
push 0x7033f4
lea ecx, [esi + 0x38]
call fcn.0045d9d8
jmp 0x44a3ea
push 0xfa
mov ecx, esi
call fcn.0044b010
test eax, eax
jne 0x44a407
mov ecx, esi
call fcn.0044a790
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045d89b
jmp 0x44a35b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0045d89b
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x45fc3f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fc77
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.0045dcf6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045dcce
jmp 0x45fc83
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46132d
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 0x46136f
call fcn.00466eae
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46136f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461366
xor eax, eax
jmp 0x461377
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046137d
pop edi
pop esi
pop ebx
ret 4

Function at 0x4673de
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 0x46740c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46742a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467344
jmp 0x46742a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46742a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467344
test edi, edi
mov eax, edi
jne 0x467414
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012ba
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x404014], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x404010], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401198
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x404010]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x404018], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401384
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x40136b
mov eax, dword [0x404014]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x401150
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
push ebx
push 0
push 2
mov dword [esp + 0xc], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
je 0x4011f2
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
push ebx
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4011d3
mov esi, dword [esp + 0x144]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x40]
push ecx
push esi
call ebp
test eax, eax
je 0x4011c3
lea edx, [esp + 0x18]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401199
jmp 0x4011d3
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
cmp eax, 1
pop ebp
jne 0x4011f2
mov eax, dword [esp + 8]
pop ebx
add esp, 0x130
ret
xor eax, eax
pop ebx
add esp, 0x130
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x403203
pop dword [ebp - 0xc]
mov eax, 0x403203
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xa340c1f3
add dword [ebp - 0x1c], 0xab118358
mov dword [ebp - 0x18], 0x1443a686
add dword [ebp - 0x18], 0x1defa5bf
mov dword [ebp - 0x14], 0x82ca36b6
add dword [ebp - 0x14], 0xc9820d78
mov dword [ebp - 0x10], 0xa4612766
add dword [ebp - 0x10], 0x5b9ed89a
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x639be1bf
sub eax, 0x635b6133
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x26541388
sub dword [ebp - 0x1c], 0xb1e1aa32
mov dword [ebp - 0x18], 0xe11bb1f8
sub dword [ebp - 0x18], 0x9faf5083
mov dword [ebp - 0x14], 0x40c1a3d8
add dword [ebp - 0x14], 0x22adc894
mov dword [ebp - 0x10], 0xc61f9ad2
sub dword [ebp - 0x10], 0xc61f9ad2
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x77d00f01
sub eax, 0x778f8e2d
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x32a0d
push 0
call eax
mov ecx, 0xa8ed0301
sub ecx, 0xa8eccade
mov esi, eax
mov edx, 0x52e1eb4f
add edx, 0xad5f24b1
add edx, dword [ebp - 0xc]
mov edi, 0xcd192eaf
sub edi, 0x85109a11
sub dword [ebp - 8], 0xb97ad6b6
mov ebx, dword [edx]
mov dword [ebp - 4], 0x4a0b8b2f
xor ebx, edi
sub dword [ebp - 4], 0x9fb63d64
mov dword [esi], ebx
mov dword [ebp - 8], 0xb79973cb
add esi, 0x18266a03
add esi, 0xe7d99601
add edx, 4
loop 0x403320
add eax, 0xd35f
xor ebx, ebx
add ebx, eax
add eax, 0x8c3df4be
sub eax, 0x8c3df4b9
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4025f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40260e
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402620
xor eax, eax
jmp 0x402652
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402644
cmp esi, eax
jae 0x40261c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402636
cmp esi, eax
jae 0x40261c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x402c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x402cc3
call fcn.00421bae
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x402cc3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x402cb9
xor eax, eax
jmp 0x402ddc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x402cf3
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x402cf3
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x402dd9
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x402d20
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040193f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x402dd9
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x402d69
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x402d69
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x402d63
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040193f
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x402dc9
and dword [ebp + 0xc], 0
jmp 0x402dc9
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x402dc9
push 0xc
call fcn.0041c7da
mov esi, eax
test esi, esi
pop ecx
je 0x402dab
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x402dad
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x402dc4
push dword [ebp - 8]
call fcn.004178a3
jmp 0x402dc9
call fcn.0041787a
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x402d2e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40bb56
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.0040bd50
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bbf1
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 [0x434084]
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 0x40bbf1
cmp eax, 1
je 0x40bc12
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 0x40bbf1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40bbbe
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40bbed
xor eax, eax
inc eax
jmp 0x40bc31
cmp edi, eax
jae 0x40bbf5
xor eax, eax
jmp 0x40bc31
cmp eax, esi
jae 0x40bbfc
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 [0x434084]
jmp 0x40bc15
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 0x40be31
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429488
call fcn.0040cc68
mov edi, 0x94
mov eax, edi
call fcn.0040bd50
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 [0x434084], ecx
mov eax, dword [esi + 4]
mov dword [0x434090], eax
mov edx, dword [esi + 8]
mov dword [0x434094], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x434088], esi
cmp ecx, 2
je 0x40be91
or esi, 0x8000
mov dword [0x434088], esi
shl eax, 8
add eax, edx
mov dword [0x43408c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40becc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40becc
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40bee4
cmp eax, 0x20b
je 0x40bed1
mov dword [ebp - 0x1c], esi
jmp 0x40bef8
cmp dword [ecx + 0x84], 0xe
jbe 0x40becc
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40bef2
cmp dword [ecx + 0x74], 0xe
jbe 0x40becc
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040ee2a
pop ecx
test eax, eax
jne 0x40bf0c
push 0x1c
call fcn.0040be0d
pop ecx
call fcn.0040eae2
test eax, eax
jne 0x40bf1d
push 0x10
call fcn.0040be0d
pop ecx
call fcn.004106f6
mov dword [ebp - 4], esi
call fcn.004104f8
test eax, eax
jge 0x40bf36
push 0x1b
call fcn.0040bde8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x435950], eax
call fcn.004103d6
mov dword [0x434070], eax
call fcn.00410334
test eax, eax
jge 0x40bf5c
push 8
call fcn.0040bde8
pop ecx
call fcn.00410101
test eax, eax
jge 0x40bf6d
push 9
call fcn.0040bde8
pop ecx
push 1
call fcn.0040cacd
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40bf83
push eax
call fcn.0040bde8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004100a4
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40bfa4
movzx eax, word [ebp - 0x40]
jmp 0x40bfa7
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00417430
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40bfc5
push edi
call fcn.0040cbfa
call fcn.0040cc1c
jmp 0x40bff7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040cca3
ret
Function at 0x40cb37
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4294e8
call fcn.0040cc68
push 8
call fcn.0040eddf
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4340c4], esi
jne 0x40cb6b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4340c0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4340bc], al
cmp dword [ebp + 0xc], edi
jne 0x40cbb5
cmp dword [0x435948], edi
je 0x40cba5
mov eax, dword [0x435944]
sub eax, 4
mov dword [0x435944], eax
cmp eax, dword [0x435948]
jb 0x40cba5
mov eax, dword [eax]
cmp eax, edi
je 0x40cb86
call eax
jmp 0x40cb86
push 0x430088
mov eax, 0x430080
call fcn.0040cab5
pop ecx
push 0x430094
mov eax, 0x43008c
call fcn.0040cab5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40cbe6
cmp dword [ebp + 0x10], edi
jne 0x40cbf4
mov dword [0x4340c4], esi
push dword [ebp + 8]
call fcn.0040ca73
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40cbf3
push 8
call fcn.0040ed2a
pop ecx
ret
call fcn.0040cca3
ret