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

Disassembly:
push 0xffffffffffffffff
push 0x47d933
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.00470b6d
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.0047620b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00477727
test eax, eax
je 0x4475dc
mov ecx, dword [esp + 0x3c]
call fcn.00476238
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 0x4475a0
push edi
mov ecx, esi
call fcn.00473896
mov ecx, esi
call fcn.00447740
cmp dword [esp + 0x38], 1
jne 0x4475d5
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.004739d1
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 0x44a010
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44a043
push esi
call fcn.0044d100
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44a03c
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 0x44a0c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44a0b2
mov eax, dword [esi + 8]
test eax, eax
je 0x44a067
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 0x44a0ae
cmp eax, 2
je 0x44a0b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44a05a
cmp eax, 3
je 0x44a08d
cmp eax, 1
jne 0x44a05a
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 0x44a05a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44a05a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044a0f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44a0d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044a0f0
add esp, 4
pop esi
ret

Function at 0x456200
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 0x4562a3
test eax, eax
jbe 0x4562a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4562a3
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 0x45624e
xor esi, esi
jmp 0x456254
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45627f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045a520
add esi, eax
push esi
mov ebx, esi
call fcn.0045a520
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x456260
pop ebp
test edi, edi
pop edi
jne 0x4562a3
test ebx, ebx
je 0x4562a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045f610
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4563e5
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 0x4564fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4564fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.00470fbf
mov esi, eax
test esi, esi
je 0x4564fd
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 0x4564fd
mov ecx, esi
call fcn.00456350
cmp edi, eax
jge 0x4564fd
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 0x456483
mov dword [esp + 0x34], 1
jmp 0x4564de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4564fd
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.00455880
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 0x45a700
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 0x45a766
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 0x45a766
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x45a747
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x45aaf0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x45ab28
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x45b750
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 0x45b799
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 0x45bc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e2b0
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.0045b7c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0045b840
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0045b840
lea ecx, [esi + 0xc]
call fcn.0046f51f
lea ecx, [esi + 0x10]
call fcn.0046f51f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045cdd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045cdd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045cdd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046f594
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046f594
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x471962
Capabilities:
Get graphical window text

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

Function at 0x473053
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 0x473095
call fcn.00478dc8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x473095
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47308c
xor eax, eax
jmp 0x47309d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004730a3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4792f8
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 0x479326
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x479344
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047925e
jmp 0x479344
mov eax, dword [esi + 0x14]
test eax, eax
je 0x479344
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047925e
test edi, edi
mov eax, edi
jne 0x47932e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ea77
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x450e6c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 4]
mov dword [ecx], eax
mov edx, dword [0x450e6c]
lea ebx, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx], edx
mov eax, dword [0x450e6c]
lea ebp, [esi + 0xc]
mov dword [ebp], eax
mov edx, dword [0x450e6c]
mov dword [esi + 0x30], edx
mov eax, dword [0x450e6c]
mov dword [esi + 0x38], eax
mov edx, dword [0x450e6c]
mov dword [esi + 0x3c], edx
mov eax, dword [0x450e6c]
mov dword [esi + 0x60], eax
mov edx, dword [0x450e6c]
mov dword [esi + 0x74], edx
mov eax, dword [0x450e6c]
mov dword [esi + 0x78], eax
mov edx, dword [0x450e6c]
mov dword [esi + 0x80], edx
mov eax, dword [0x450e6c]
mov dword [esi + 0x90], eax
mov edx, dword [0x450e6c]
mov dword [esi + 0x94], edx
mov eax, dword [0x450e6c]
mov dword [esi + 0x98], eax
mov edx, dword [0x450e6c]
mov dword [esi + 0x9c], edx
mov eax, dword [0x450e6c]
mov dword [esi + 0xa0], eax
push 0x452e38
mov byte [esp + 0x20], 0xe
mov dword [esi], 0x4426b0
call fcn.00432b27
push 0x452e38
mov ecx, ebx
call fcn.00432b27
push 0x452e38
mov ecx, ebp
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x30]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x38]
call fcn.00432b27
push str.HttpDownload_2.0
lea ecx, [esi + 0x3c]
call fcn.00432b27
mov eax, 0x9470
push 0x452e38
lea ecx, [esi + 0x60]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x74]
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x78]
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x80]
mov dword [esi + 0x7c], edi
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x90]
mov word [esi + 0x84], di
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x94]
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x98]
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0x9c]
call fcn.00432b27
push 0x452e38
lea ecx, [esi + 0xa0]
call fcn.00432b27
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xac], edi
mov word [esi + 0xa4], 0x50
mov dword [esi + 0xa8], 0xffffffff
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4012c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43eb47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4426b0
mov dword [esp + 0x10], 0xe
call fcn.00401430
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 0xd
call fcn.0043299e
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0xc
call fcn.0043299e
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0xb
call fcn.0043299e
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0xa
call fcn.0043299e
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 9
call fcn.0043299e
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 8
call fcn.0043299e
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 7
call fcn.0043299e
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 6
call fcn.0043299e
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call fcn.0043299e
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call fcn.0043299e
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 3
call fcn.0043299e
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call fcn.0043299e
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call fcn.0043299e
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.0043299e
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0043299e
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404a70
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
mov ecx, 0x64
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x404aac
push eax
call fcn.00404a50
add esp, 4
or eax, 0xffffffff
add esp, 0x190
ret
mov ax, word [esp]
cmp al, 2
jne 0x404ac6
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x404ac6
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x276c
call fcn.00404a50
add esp, 4
or eax, 0xffffffff
add esp, 0x190
ret

Function at 0x404b00
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x404b3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00404a50
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x404c60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x404cb1
mov eax, dword [esp]
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0x10
ret

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

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
push eax
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x404e7b
mov eax, dword [esp]
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0xc
ret
Function at 0x405030
Capabilities:
Connect socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 8], eax
jne 0x405063
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404a50
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x40509b
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00404a50
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x405133
cmp eax, 0x2733
jne 0x405133
mov eax, dword [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x4050f5
call edi
push eax
call fcn.00404a50
add esp, 4
or esi, esi
jmp 0x405133
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x40511b
call edi
push eax
call fcn.00404a50
add esp, 4
or esi, 0xffffffff
jmp 0x405133
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405131
push eax
call fcn.00404a50
add esp, 4
or esi, 0xffffffff
jmp 0x405133
xor esi, esi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x405190
Capabilities:
Create thread
Resolve dns

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push edi
mov edi, dword [esp + 0xac]
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x405254
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x40522b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40522b
cmp dword [esp + 0x24], 2
jne 0x40522b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x405160
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x40522b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40522b
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405243
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x409360
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43fa20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push edi
mov edx, dword [esp + 0x58]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
push 0x452e38
push edx
mov dword [esp + 0x50], 1
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x18], str.open
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
call fcn.00422b95
mov edx, dword [esp + 0x60]
add esp, 8
neg eax
sbb eax, eax
mov dword [esp + 8], 0x40
and eax, edx
mov dword [esp + 0x20], 0xa
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [esp + 0x50]
call fcn.0043299e
lea ecx, [esp + 0x54]
mov byte [esp + 0x48], 0
call fcn.0043299e
lea ecx, [esp + 0x58]
mov dword [esp + 0x48], 0xffffffff
call fcn.0043299e
mov ecx, dword [esp + 0x40]
pop edi
mov dword fs:[0], ecx
add esp, 0x48
ret 0xc
Function at 0x409430
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x43fa56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push ebp
push esi
push edi
mov ebx, 2
push 0
push ebx
mov dword [esp + 0x260], 1
mov dword [esp + 0x20], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x2c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4095e5
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x260]
push ecx
lea ecx, [esp + 0x14]
call fcn.00432713
lea edx, [esp + 0x48]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x25c], bl
call fcn.00432a0c
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 3
call fcn.00432ec0
lea ecx, [esp + 0x14]
call fcn.00432ec0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00422b95
add esp, 8
test eax, eax
jne 0x409584
mov edx, dword [esp + 0x2c]
push edx
push eax
push 0x1f0fff
call ebp
mov esi, eax
test esi, esi
je 0x409584
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
push 4
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x409584
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14c]
push 0x104
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x10]
push ecx
push 0x44f880
push edx
call fcn.00431a4e
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00432ec0
lea eax, [esp + 0x264]
lea ecx, [esp + 0x14]
push eax
call fcn.00432ad7
lea ecx, [esp + 0x14]
call fcn.00432ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00422b95
add esp, 8
test eax, eax
je 0x4095bc
lea eax, [esp + 0x24]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x258], bl
call fcn.0043299e
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 1
call fcn.0043299e
test esi, esi
jne 0x409492
jmp 0x4095e5
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 1
mov byte [esp + 0x258], bl
call fcn.0043299e
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 1
call fcn.0043299e
lea ecx, [esp + 0x260]
mov byte [esp + 0x258], 0
call fcn.0043299e
lea ecx, [esp + 0x264]
mov dword [esp + 0x258], 0xffffffff
call fcn.0043299e
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c
ret 8