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

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4f04e3
push esi
call fcn.004f35a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4f04dc
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 0x4f0569
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4f0552
mov eax, dword [esi + 8]
test eax, eax
je 0x4f0507
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 0x4f054e
cmp eax, 2
je 0x4f0552
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4f04fa
cmp eax, 3
je 0x4f052d
cmp eax, 1
jne 0x4f04fa
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 0x4f04fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4f04fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004f0590
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4f0578
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004f0590
add esp, 4
pop esi
ret

Function at 0x4fb940
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 0x4fb9a6
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 0x4fb9a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4fb987
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4fbd30
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4fbd68
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 0x4fca40
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 0x4fca89
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 0x4fcf00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x544d80
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.004fcab0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004fcb30
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004fcb30
lea ecx, [esi + 0xc]
call fcn.0053229d
lea ecx, [esi + 0x10]
call fcn.0053229d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004fe0c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004fe0c0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004fe0c0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00532312
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00532312
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x504410
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 0x5044b3
test eax, eax
jbe 0x5044b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x5044b3
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 0x50445e
xor esi, esi
jmp 0x504464
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x50448f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004b38b0
add esi, eax
push esi
mov ebx, esi
call fcn.004b38b0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x504470
pop ebp
test edi, edi
pop edi
jne 0x5044b3
test ebx, ebx
je 0x5044b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00521570
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x5045f5
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 0x50470d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50470d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00533dcf
mov esi, eax
test esi, esi
je 0x50470d
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 0x50470d
mov ecx, esi
call fcn.00504560
cmp edi, eax
jge 0x50470d
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 0x504693
mov dword [esp + 0x34], 1
jmp 0x5046ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x50470d
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.00503b10
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 0x533158
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0053d58d
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x533189
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0053319c
pop edi
pop esi
pop ebx
ret 8

Function at 0x534773
Capabilities:
Get graphical window text

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

Function at 0x536063
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 0x5360a5
call fcn.0053d58d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5360a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53609c
xor eax, eax
jmp 0x5360ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005360b3
pop edi
pop esi
pop ebx
ret 4

Function at 0x53dabd
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 0x53daeb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53db09
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053da23
jmp 0x53db09
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53db09
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053da23
test edi, edi
mov eax, edi
jne 0x53daf3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x49045f]
shl eax, 2
mov dword [0x490463], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0048288c
pop edx
call fcn.004827f0
call fcn.004828cc
push 0
call fcn.00483b78
pop ecx
push 0x490408
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x490467], eax
push 0
jmp fcn.0048a3d8
Function at 0x408390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
mov eax, 0x49271c
call fcn.00482f64
push 0
lea edx, [ebp - 0x30]
push edx
push pe_nt_image_headers32
lea ecx, [ebp - 0x238]
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
call sub.KERNEL32.DLL_ReadFile
cmp dword [ebp - 0x30], 0
jne 0x4083d7
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x408591
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
cmp byte [eax + 0x3c], 0
je 0x408507
mov word [ebp - 0x1c], 8
mov edx, 0x492631
lea eax, [ebp - 4]
call fcn.0048e5d8
inc dword [ebp - 0x10]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x34
call fcn.0048e768
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0048e738
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x54]
sub eax, 1
jb 0x408432
je 0x408479
jmp 0x4084ef
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jae 0x40844a
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x43
jne 0x40842f
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jae 0x408507
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x43
jne 0x408507
mov edx, dword [ebp + 8]
mov byte [edx + 0x3c], 0
jmp 0x408507
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jae 0x4084a1
mov eax, dword [ebp - 0x34]
movsx edx, byte [ebp + eax - 0x238]
cmp edx, 0x58
je 0x4084a1
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x4c
jne 0x408476
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x30]
jae 0x4084c7
mov ecx, dword [ebp - 0x34]
movsx eax, byte [ebp + ecx - 0x238]
cmp eax, 0x58
jne 0x4084c7
mov edx, dword [ebp + 8]
mov byte [edx + 0x3c], 0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x3f], 0
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jae 0x408507
mov edx, dword [ebp - 0x34]
movsx ecx, byte [ebp + edx - 0x238]
cmp ecx, 0x4c
jne 0x408507
mov eax, dword [ebp + 8]
mov byte [eax + 0x3c], 0
mov edx, dword [ebp + 8]
mov byte [edx + 0x3f], 1
jmp 0x408507
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x3c], 1
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x408591
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x3c], 0
je 0x40851e
xor eax, eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x408591
mov byte [ebp - 0x35], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jae 0x408584
mov eax, dword [ebp - 0x34]
movsx edx, byte [ebp + eax - 0x238]
cmp edx, 0xd
jne 0x408540
mov byte [ebp - 0x35], 1
jmp 0x408584
mov word [ebp - 0x1c], 0x14
mov ecx, dword [ebp - 0x34]
mov dl, byte [ebp + ecx - 0x238]
lea eax, [ebp - 8]
call fcn.0048e6a8
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 0x34
call fcn.0048e77c
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0048e738
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jb 0x40852a
mov al, byte [ebp - 0x35]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x409b74
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov byte [ebp - 8], dl
test dl, dl
jle 0x409b86
call fcn.0048ebf0
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
mov eax, 0x492d9c
call fcn.00482f64
mov word [ebp - 0x18], 8
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00473224
add dword [ebp - 0xc], 2
mov edx, dword [ebp - 4]
mov byte [edx + 0x38], 0
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x34], ecx
mov eax, dword [ebp - 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp - 4]
cmp byte [ebp - 0x29], 0
je 0x409bda
call fcn.0048ebfd
mov esp, ebp
pop ebp
ret

Function at 0x40b7f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov byte [ebp - 1], 0
push 0
push 0x8000080
push 3
push 0
push 1
push closesocket
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40b824
xor eax, eax
jmp 0x40b942
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0x10]
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40b856
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40b942
push 0x40000
call fcn.004823dc
pop ecx
mov dword [ebp - 0x10], eax
push 0x6e
push dword [ebp + 8]
call fcn.0040b7bc
add esp, 8
test al, al
jne 0x40b88b
push 0x65
push dword [ebp + 8]
call fcn.0040b7bc
add esp, 8
mov byte [ebp - 1], 1
jmp 0x40b91d
push 0x4e
push dword [ebp + 8]
call fcn.0040b77c
add esp, 8
test al, al
jne 0x40b8af
push 0x65
push dword [ebp + 8]
call fcn.0040b7bc
add esp, 8
mov byte [ebp - 1], 1
jmp 0x40b91d
push 0
lea edx, [ebp - 0x18]
push edx
push 0x40000
push dword [ebp - 0x10]
push dword [ebp - 8]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 0x1d], cl
cmp byte [ebp - 0x1d], 0
je 0x40b8dc
cmp dword [ebp - 0x18], 0
je 0x40b91d
cmp byte [ebp - 0x1d], 0
jne 0x40b8e8
mov byte [ebp - 1], 1
jmp 0x40b91d
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x40b906
mov byte [ebp - 1], 1
jmp 0x40b91d
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
je 0x40b864
mov byte [ebp - 1], 1
jmp 0x40b91d
push dword [ebp - 0x10]
call fcn.00482218
pop ecx
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov al, byte [ebp - 1]
cmp eax, 1
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x41bd78
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 0x41be01
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49ab20
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x41bdeb
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0047a8d8
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, 0x41be18
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x49a3a4]
mov dl, 1
mov eax, dword [0x41b5c4]
call fcn.0047b210
call fcn.0047fcbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41be08
lea eax, [ebp - 0x1c]
call fcn.004801c0
ret
Function at 0x41c470
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0041c394
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0047f700
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x41c4d4
call fcn.0041bcc0
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x41c4c6
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0047f700
pop esi
pop ebx
ret

Function at 0x41c4f8
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00480604
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.0047f1ec
test ebx, ebx
je 0x41c543
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 0x41c588
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x41c5b0
mov edx, edi
mov eax, esi
call fcn.0041c4f8
mov dword [ebx + 4], eax
jmp 0x41c5ed
cmp dword [ebp - 4], 0
je 0x41c5c9
mov eax, dword [ebp - 4]
call fcn.00480604
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x41c5ed
cmp byte [ebp + 0xc], 0
jne 0x41c5d6
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x41c5ed
mov ecx, dword [0x49a3ac]
mov dl, 1
mov eax, dword [0x41b5c4]
call fcn.0047b1d4
call fcn.0047fcbc
cmp dword [ebp + 0x14], 0
je 0x41c609
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0041c554
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x41c617
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x41c620
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 esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x41c651
mov ecx, dword [0x49a3b4]
mov dl, 1
mov eax, dword [0x41b5c4]
call fcn.0047b1d4
call fcn.0047fcbc
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 0x41c67e
mov ecx, dword [0x49a3b0]
mov dl, 1
mov eax, dword [0x41b5c4]
call fcn.0047b1d4
call fcn.0047fcbc
xor eax, eax
push ebp
push 0x41c6fd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.0047f700
cmp byte [ebp + 8], 0
je 0x41c6d9
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, esi
mov eax, dword [ebp - 4]
call fcn.0041c588
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0041c470
jmp 0x41c6f3
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, esi
mov eax, dword [ebp - 4]
call fcn.0041bfac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41c71a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c8e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0041c22c
xor edx, edx
push ebp
push 0x41ca40
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x41ca2a
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x41c92a
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x41c934
call fcn.0047fd5c
jmp 0x41ca47
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046e7bc
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 + 4]
mov ebx, eax
test ebx, ebx
jle 0x41ca1f
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
cmp eax, 0xffffffff
jne 0x41c9dd
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x41c9cd
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.0047f700
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.0041c898
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x41ca50]
cmp dl, byte [eax + 0x28]
je 0x41ca26
call fcn.0047b0bc
jmp 0x41ca26
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0046e7cc
jmp 0x41ca26
cmp eax, ebx
jge 0x41c9f6
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046e7cc
jmp 0x41c934
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046e7bc
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0046e7d8
cmp ebx, eax
jne 0x41c934
push ebp
call fcn.0041c898
pop ecx
jmp 0x41ca26
push ebp
call fcn.0041c898
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca47
mov eax, dword [ebp - 4]
call fcn.0041c238
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41d098
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.00477158
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.00477148
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.WSOCK32.DLL_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret