joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d3a4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429380
push 0x40d514
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 [0x430598], 0xffffffff
or dword [0x43059c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4303d0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4303cc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4305a0], eax
call fcn.0040d4d5
cmp dword [0x42f7c0], 0
jne 0x40d427
push 0x40d4d2
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0040d4c0
push 0x42e014
push 0x42e010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4303c8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4303c4]
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 0x42e00c
push 0x42e000
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.00402ef0
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 0x4103b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4276ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0041fec0
lea eax, [esi + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0x42936c
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov cl, byte [esp + 0xb]
mov byte [esi + 0x30], cl
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
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
push esi
push 0x411750
mov ecx, esi
mov byte [esp + 0x20], 2
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x64], 1
call fcn.0041fee0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4158e0
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp]
test ebx, ebx
je case.default.0x415931
mov edx, dword [ebp + 8]
test edx, edx
je case.default.0x415931
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jl case.default.0x415931
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
test edi, edi
jg 0x415925
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [ebx - 1]
cmp eax, 3
ja case.default.0x415931
jmp dword [eax*4 + 0x4159c4]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push edx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0xb1
push edx
call ebx
mov al, byte [edi + esi]
mov byte [edi + esi], 0
mov ecx, dword [ebp + 8]
push esi
push 0
push 0xc2
push ecx
mov byte [esp + 0x24], al
call ebx
mov dl, byte [esp + 0x14]
mov byte [edi + esi], dl
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
cmp edx, 0xffffffff
je case.default.0x415931
push 0
push edi
push esi
push edx
call sub.WS2_32.dll_send
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x415a60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
push edi
lea eax, [esi + 0x2c]
mov dword [esi], 0x42944c
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
lea ecx, [esi + 0x1c]
mov edi, ecx
xor edx, edx
mov dword [edi], edx
mov dword [edi + 4], edx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov edi, dword [esp + 0xc]
cmp edi, 0xffffffff
mov word [eax], 2
mov word [ecx], 2
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 8], edx
mov byte [esi + 4], dl
mov dword [esi + 0xc], edi
jne 0x415ac5
mov eax, 1
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov byte [esi + 0x18], al
mov eax, esi
pop edi
pop esi
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
cmp ebp, 1
mov dword [esi + 0x10], ebp
setne bl
add ebx, 3
mov byte [esi + 0x18], dl
mov dword [esi + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0x10
mov ebp, dword [ebx]
mov dword [eax], ebp
mov ebp, dword [ebx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [ebx + 8]
mov dword [eax + 8], ebp
mov ebx, dword [ebx + 0xc]
mov word [esi + 0x1e], dx
mov dword [eax + 0xc], ebx
lea eax, [esp + 0x14]
push eax
push ecx
push edi
mov dword [esi + 0x20], edx
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.00415b50
mov cx, word [esi + 0x1e]
push ecx
call sub.WS2_32.dll_ntohs
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
ret 0xc
Function at 0x415b50
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x415b66
pop esi
mov eax, 0xfffffffe
pop ebx
ret 8
cmp dword [esi + 0x14], 3
jl 0x415bae
mov bl, byte [esp + 0xc]
xor ecx, ecx
test bl, bl
mov dx, word [esp + 0x10]
push 4
setne cl
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x22], dx
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x415bab
pop esi
mov eax, 0xfffffffa
pop ebx
ret 8
mov byte [esi + 4], bl
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x415c10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [esp + 0x120]
xor eax, eax
test edi, edi
mov dword [esp + 0x14], eax
jle 0x415c4f
mov ecx, esi
mov edx, edi
cmp eax, 0x40
jae 0x415c49
mov ebp, dword [ecx]
mov dword [esp + eax*4 + 0x18], ebp
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
add ecx, 4
dec edx
jne 0x415c35
mov ecx, dword [esp + 0x124]
test ecx, ecx
jle 0x415c7f
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, 0xf4240
cdq
idiv ecx
mov dword [esp + 0x10], edx
jmp 0x415c8f
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov al, byte [esp + 0x128]
test al, al
je 0x415caa
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push 0
push eax
push 0
jmp 0x415cb8
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push edx
push 0x40
call sub.WS2_32.dll_select
mov ebp, eax
test ebp, ebp
jne 0x415ccf
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
cmp ebp, 0xffffffff
jne 0x415cec
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x415cec
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret
test edi, edi
jle 0x415d0c
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
add esi, 4
neg eax
mov dword [esi - 4], eax
dec edi
jne 0x415cf0
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x10c
ret

Function at 0x415d20
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x415d46
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x415d3f
or eax, 0xffffffff
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret
Function at 0x415e00
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x30], 0xffffffff
jne 0x415e18
pop edi
pop esi
mov eax, 0xfffffff6
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x415e28
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, 1
push ebx
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x415e41
mov dword [esi + 0x10], edi
cmp dword [esi + 0x10], ebx
jne 0x415e52
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
pop ecx
ret 4
cmp dword [esp + 0x14], ebx
jl 0x415f0a
lea ecx, [esp + 0xc]
push ebp
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x1c], edi
call sub.WS2_32.dll_ioctlsocket
mov eax, dword [esi + 0xc]
lea edx, [esi + 0x2c]
push 0x10
push edx
push eax
call sub.WS2_32.dll_connect
test eax, eax
je 0x415e97
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x415e97
mov edi, 0xfffffff9
jmp 0x415ee3
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_time]
call ebx
add esp, 4
mov ecx, esi
mov ebp, eax
push edi
push 0x30d40
call fcn.00415bc0
mov edi, eax
test edi, edi
jne 0x415edf
push 0
call ebx
mov ecx, dword [esp + 0x1c]
sub eax, ebp
add esp, 4
cmp eax, ecx
jg 0x415eff
push 1
push 0x30d40
mov ecx, esi
call fcn.00415bc0
mov edi, eax
test edi, edi
je 0x415eb8
test edi, edi
jle 0x415ee3
xor edi, edi
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
push ecx
xor ebx, ebx
push 0x8004667e
push edx
mov dword [esp + 0x1c], ebx
call sub.WS2_32.dll_ioctlsocket
pop ebp
jmp 0x415f3c
test edi, edi
jne 0x415edf
mov edi, 0xfffffff3
jmp 0x415ee3
lea ecx, [esi + 0x2c]
push 0x10
push ecx
push eax
call sub.WS2_32.dll_connect
test eax, eax
je 0x415f40
mov edi, 0xfffffff9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp edi, 0xffffffff
jne 0x415f33
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
cmp edi, ebx
jne 0x415f1f
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], 3
cmp eax, 0xffffffff
jne 0x415f5d
mov edi, 0xfffffffe
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 4
lea edx, [esp + 0x14]
lea ecx, [esi + 0x1c]
push edx
push ecx
push eax
mov dword [esp + 0x20], 0x10
mov word [esi + 0x1e], bx
mov dword [esi + 0x20], ebx
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.00415b50
mov dx, word [esi + 0x1e]
push edx
call sub.WS2_32.dll_ntohs
mov di, ax
and edi, 0xffff
jmp 0x415f26
Function at 0x415fa0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
push ebp
push esi
mov esi, ecx
jge 0x415fbc
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x14
ret 0xc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x415fca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebp, dword [esp + 0x24]
mov eax, ebp
dec eax
je 0x416030
dec eax
je 0x415ff8
dec eax
jne 0x41604a
push 0xff
push 3
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x41604a
mov dword [esi + 0x10], 3
jmp 0x41604a
push 0
push 2
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x41604a
lea ecx, [esp + 0x24]
push 4
push ecx
push 0x20
push 0xffff
push eax
mov dword [esi + 0x10], 2
mov dword [esp + 0x38], 1
call sub.WS2_32.dll_setsockopt
jmp 0x41604a
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x41604a
mov dword [esi + 0x10], 1
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41605e
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x14
ret 0xc
cmp ebp, 3
mov dword [esp + 8], 1
je 0x4160f0
mov al, byte [esp + 0x28]
test al, al
je 0x41608e
mov eax, dword [esi + 0xc]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
mov ecx, ebp
mov eax, dword [esp + 0x20]
dec ecx
push eax
neg ecx
sbb ecx, ecx
mov word [esp + 0x10], 2
and ecx, 2
add ecx, 2
mov dword [esi + 0x14], ecx
call sub.WS2_32.dll_htons
push 0
mov word [esp + 0x12], ax
call sub.WS2_32.dll_htonl
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov dword [esp + 0x1c], eax
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
jne 0x416104
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop esi
mov eax, 0xfffffffb
pop ebp
add esp, 0x14
ret 0xc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
pop esi
mov eax, 0xfffffff5
pop ebp
add esp, 0x14
ret 0xc
cmp ebp, 1
jne 0x416135
mov ecx, dword [esi + 0xc]
push 5
push ecx
call sub.WS2_32.dll_listen
cmp eax, 0xffffffff
jne 0x416135
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [esi]
mov ecx, esi
mov dword [esi + 8], eax
call dword [edx + 4]
pop esi
mov eax, 0xfffffff8
pop ebp
add esp, 0x14
ret 0xc
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x41614a
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x14
ret 0xc
lea ecx, [esp + 0x28]
lea edx, [esi + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0x10
mov word [esi + 0x1e], 0
mov dword [esi + 0x20], 0
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.00415b50
mov ax, word [esi + 0x1e]
push eax
call sub.WS2_32.dll_ntohs
pop esi
and eax, 0xffff
pop ebp
add esp, 0x14
ret 0xc
Function at 0x416190
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 2
je 0x4161a7
pop edi
xor al, al
pop esi
add esp, 0x14
ret 4
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0x10
test eax, eax
jl 0x416212
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_time]
push 0
call ebp
add esp, 4
mov ecx, esi
mov ebx, eax
push 0
push 0x30d40
call fcn.00415bc0
mov edi, eax
test edi, edi
jne 0x416201
push 0
call ebp
mov ecx, dword [esp + 0x2c]
sub eax, ebx
add esp, 4
cmp eax, ecx
jg 0x416201
push 0
push 0x30d40
mov ecx, esi
call fcn.00415bc0
mov edi, eax
test edi, edi
je 0x4161dc
pop ebp
cmp edi, 1
pop ebx
je 0x416212
pop edi
xor al, al
pop esi
add esp, 0x14
ret 4
mov edx, dword [esi + 0xc]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
call sub.WS2_32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
jne 0x416236
pop edi
xor al, al
pop esi
add esp, 0x14
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x2c]
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], 3
mov dword [esi + 0x10], 1
mov dword [ecx], edx
mov edx, dword [esp + 0x14]
mov byte [esi + 0x18], 0
mov dword [esp + 0x20], 0x10
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], edx
lea edx, [esi + 0x1c]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x20]
push ecx
xor eax, eax
push edx
push edi
mov word [esi + 0x1e], ax
mov dword [esi + 0x20], eax
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.00415b50
mov ax, word [esi + 0x1e]
push eax
call sub.WS2_32.dll_ntohs
pop edi
mov al, 1
pop esi
add esp, 0x14
ret 4
Function at 0x4162b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 3
jge 0x4162c4
pop edi
mov eax, 0xfffffffe
pop esi
ret 0xc
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4163ac
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4163ac
mov edx, dword [esp + 0x14]
test edx, edx
jl 0x41635c
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_time]
push ebp
push 0
call ebx
add esp, 4
mov ecx, esi
mov ebp, eax
push 0
push 0x30d40
call fcn.00415bc0
mov edi, eax
test edi, edi
jne 0x41632e
push 0
call ebx
mov ecx, dword [esp + 0x20]
sub eax, ebp
add esp, 4
cmp eax, ecx
jg 0x41632e
push 0
push 0x30d40
mov ecx, esi
call fcn.00415bc0
mov edi, eax
test edi, edi
je 0x416309
pop ebp
cmp edi, 0xffffffff
pop ebx
jne 0x416345
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
pop edi
or eax, 0xffffffff
pop esi
ret 0xc
cmp edi, 1
je 0x416354
pop edi
mov eax, 0xfffffff3
pop esi
ret 0xc
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x10], 1
jne 0x416371
push 0
push eax
mov eax, dword [esi + 0xc]
push ecx
push eax
call sub.WS2_32.dll_recv
jmp 0x41638f
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push edx
lea edx, [esi + 0x2c]
push edx
push 0
push eax
mov eax, dword [esi + 0xc]
push ecx
push eax
call sub.WS2_32.dll_recvfrom
test eax, eax
jle 0x4163a0
mov ecx, dword [esi + 0x3c]
pop edi
add ecx, eax
mov dword [esi + 0x3c], ecx
pop esi
ret 0xc
jne 0x416335
pop edi
mov eax, 0xfffffffd
pop esi
ret 0xc
pop edi
mov eax, 0xfffffffc
pop esi
ret 0xc
Function at 0x4163c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x14]
push edi
cmp eax, 3
jge 0x4163da
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
ret 0xc
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x4163ee
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
ret 0xc
mov edi, dword [esp + 0x14]
test edi, edi
jg 0x416404
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x416478
mov ebp, dword [sym.imp.MSVCRT.dll_time]
push 0
call ebp
add esp, 4
mov ecx, ebx
mov dword [esp + 0x14], eax
push 1
push 0x30d40
call fcn.00415bc0
mov esi, eax
test esi, esi
jne 0x41645a
push 0
call ebp
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
sub eax, edx
add esp, 4
cmp eax, ecx
jg 0x41645a
push 1
push 0x30d40
mov ecx, ebx
call fcn.00415bc0
mov esi, eax
test esi, esi
je 0x416431
cmp esi, 0xffffffff
je 0x4164f6
cmp esi, 1
je 0x416474
pop edi
pop esi
pop ebp
mov eax, 0xfffffff3
pop ebx
ret 0xc
mov ebp, dword [esp + 0x18]
cmp dword [ebx + 0x10], 1
jne 0x4164af
mov eax, dword [ebx + 0xc]
push 0
push edi
push ebp
push eax
call sub.WS2_32.dll_send
mov esi, eax
test esi, esi
jle 0x4164c6
cmp esi, edi
jge 0x4164c4
mov edx, dword [ebx + 0xc]
sub edi, esi
push 0
lea ecx, [esi + ebp]
push edi
push ecx
push edx
call sub.WS2_32.dll_send
test eax, eax
jl 0x4164c4
add esi, eax
jmp 0x4164c4
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x2c]
push 0x10
push eax
push 0
push edi
push ebp
push ecx
call sub.WS2_32.dll_sendto
mov esi, eax
test esi, esi
jl 0x4164d9
mov eax, dword [ebx + 0x40]
pop edi
add eax, esi
mov dword [ebx + 0x40], eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
cmp esi, 0xffffffff
jne 0x4164f6
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x271d
jne 0x4164f6
pop edi
pop esi
pop ebp
mov eax, 0xfffffff2
pop ebx
ret 0xc
call sub.WS2_32.dll_WSAGetLastError
pop edi
pop esi
mov dword [ebx + 8], eax
pop ebp
or eax, 0xffffffff
pop ebx
ret 0xc
Function at 0x41fee0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
test eax, eax
mov dword [esi + 4], eax
jne 0x41fef4
xor al, al
pop esi
ret 8
mov eax, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x41ff70
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
setne al
pop esi
ret 8

Function at 0x41ff20
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
je 0x41ff69
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
jl 0x41ff40
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x41ff5a
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi], 0
pop esi
ret 4

Function at 0x41ffa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42862f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esp + 0x14], esi
lea eax, [esi + 0xc]
mov dword [esi + 8], ebx
push eax
mov dword [esi + 4], 0x42936c
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov cl, byte [esp + 0xf]
mov dword [esp + 0x20], ebx
mov byte [esi + 0x24], cl
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dl, byte [esp + 0xf]
mov al, byte [esp + 0xf]
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
mov byte [esi + 0x54], dl
mov byte [esi + 0x55], al
mov byte [esi + 0x5c], bl
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x430594]
mov byte [esp + 0x20], 2
cmp eax, ebx
jne 0x420055
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax + 4], ebx
mov dword [eax + 0x1c], 1
mov dword [0x430594], eax
mov dword [eax], ebx
mov ecx, dword [0x430594]
add esp, 4
mov dword [ecx + 8], ebx
mov edi, dword [0x430590]
push 0x20
inc edi
mov dword [0x430590], edi
mov edi, dword [0x430594]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax + 4], edi
mov dword [eax + 0x1c], ebx
mov dword [esi + 0x58], eax
mov dword [esi + 0x60], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x58]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax + 8], eax
mov byte [esp + 0x20], 1
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
mov ecx, dword [esp + 0x18]
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4209a0
Capabilities:
Create thread

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push 0x14
mov dword [esp + 0x10], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4209dc
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x42935c
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esi + 8], eax
jmp 0x4209de
xor esi, esi
cmp esi, ebx
jne 0x4209ed
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov eax, dword [edi + 4]
push ebp
lea ebp, [edi + 4]
mov ecx, ebp
call dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
push 0x420ac0
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x420a1c
mov dword [esp + 0x10], eax
jmp 0x420a70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x420a70
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x14]
mov dword [esp + 0x34], ecx
push edx
push eax
lea ecx, [edi + 0x54]
call fcn.00421830
mov ecx, eax
mov eax, dword [ecx]
add eax, 0x10
mov edx, dword [ecx + 4]
mov ecx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edx
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov dword [ecx + 8], esi
xor esi, esi
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 8]
test esi, esi
pop ebp
je 0x420aa7
mov eax, dword [esi + 0xc]
test eax, eax
je 0x420a8e
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
mov dword [esi], 0x42935c
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4