joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e190
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 1
mov edi, ecx
push 6
push edx
mov esi, dword [edi]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x46e1f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00488d10
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046c560
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046c560
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.004aa758
mov esp, ebp
pop ebp
ret

Function at 0x46e210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x746ae8]
mov dword [ebp - 0xc], 0x4020
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 4
push esi
mov esi, ecx
test eax, eax
jne 0x46e272
lea ecx, [eax + 3]
call fcn.00489580
test al, al
je 0x46e266
mov dword [0x746ae8], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov dword [0x746ae8], 1
jmp 0x46e277
cmp eax, 2
je 0x46e2b3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x46e29c
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jg 0x46e2b3
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004aa758
mov esp, ebp
pop ebp
ret
Function at 0x46e910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ecx + 0x1ec], 0
je 0x46e942
call fcn.0049ebb0
test eax, eax
jne 0x46e970
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x1a8]
cmp eax, 0xffffffff
je 0x46e932
push 2
push 1
lea ecx, [ebp - 5]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x46e970
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
Function at 0x475370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2e0]
push esi
push edi
lea esi, [ebp - 0x84]
mov edi, dword [eax]
mov al, byte [edi]
test al, al
je 0x4753b8
nop dword [eax]
movsx eax, al
push eax
call fcn.0060fa6b
mov byte [esi], al
lea edi, [edi + 1]
mov al, byte [edi]
add esp, 4
inc esi
test al, al
jne 0x4753a0
mov eax, dword [str._proxy]
mov dword [esi], eax
mov ax, word [0x6f5f4c]
mov word [esi + 4], ax
mov al, byte [0x6f5f4e]
mov byte [esi + 6], al
lea eax, [ebp - 0x84]
push eax
call fcn.0061a79f
mov edi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
add esp, 4
mov byte [ebp - 0x188], 0
test eax, eax
je 0x47541b
push 0x104
lea ecx, [ebp - 0x188]
push ecx
push eax
call edi
cmp byte [ebp - 0x188], 0
je 0x47541b
lea eax, [ebp - 0x188]
push eax
call dword [0x725404]
add esp, 4
jmp 0x47541d
xor eax, eax
test eax, eax
jne 0x4754c4
lea edx, [ebp - 0x84]
mov ecx, str.http_proxy
call fcn.0049a5a0
test eax, eax
jne 0x47546f
mov esi, 0x80
lea edx, [ebp - 0x84]
mov cl, byte [edx]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x475450
sub cl, 0x20
mov byte [edx], cl
inc edx
test cl, cl
je 0x47545c
sub esi, 1
jne 0x475444
lea eax, [ebp - 0x84]
push eax
call sym.hrkill.exe_curl_getenv
add esp, 4
test eax, eax
jne 0x4754c4
push str.all_proxy
call fcn.0061a79f
add esp, 4
mov byte [ebp - 0x188], 0
test eax, eax
je 0x4754b1
push 0x104
lea ecx, [ebp - 0x188]
push ecx
push eax
call edi
cmp byte [ebp - 0x188], 0
je 0x4754b1
lea eax, [ebp - 0x188]
push eax
call dword [0x725404]
add esp, 4
jmp 0x4754b3
xor eax, eax
test eax, eax
jne 0x4754c4
push str.ALL_PROXY
call sym.hrkill.exe_curl_getenv
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aa758
mov esp, ebp
pop ebp
ret
Function at 0x477820
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov edx, 3
mov dword [ebp - 4], esi
mov ebx, dword [edi]
mov ecx, ebx
call fcn.00480de0
mov eax, dword [edi + 0x2e0]
test byte [eax + 0x44], 0x10
je 0x477856
mov byte [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
mov byte [edi + 0x2b6], 0
cmp dword [ebx + 0x450], 0
je 0x4778ab
push dword [edi + 0x2f8]
call dword [0x725400]
add esp, 4
mov dword [edi + 0x2f8], 0
push dword [ebx + 0x450]
push str.User_Agent:__s_r_n
call sym.hrkill.exe_curl_maprintf
add esp, 8
mov dword [edi + 0x2f8], eax
test eax, eax
jne 0x4778ab
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xa0], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov dword [ebp - 0x14], 0
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x18], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [edi + 0x188], xmm0
cmp dword [edi + 0x1a8], 0xffffffff
jne 0x477912
mov byte [edi + 0x2a9], 0
mov ecx, edi
mov edx, dword [edi + 0x50]
call fcn.0046e6b0
test eax, eax
je 0x47794b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 4
mov ecx, ebx
call fcn.00480de0
mov edx, 5
mov ecx, ebx
call fcn.00480de0
mov eax, dword [ebp - 4]
mov ecx, edi
mov byte [edi + 0x2a9], 1
mov byte [eax], 1
mov edx, dword [edi + 0x1a8]
call fcn.0046dae0
mov ecx, edi
call fcn.00474260
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, eax
mov dword [ebp - 0x14], 0
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebp - 0x18], edx
sub esi, ecx
imul eax, esi, 0x3e8
mov dword [ebp - 0x10], eax
xor eax, eax
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [edi + 0x188], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47a340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x50
push 1
mov dword [ebp - 4], edx
mov edi, ecx
call dword [0x725408]
mov esi, eax
add esp, 8
mov dword [edi + 0x498], esi
mov ebx, 8
test esi, esi
je 0x47a400
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [edi + 0x488], ecx
push ecx
mov byte [edi + 0x490], 0
mov ecx, esi
mov dword [edi + 0x494], 0
mov dword [edi + 0x48c], 0
mov dword [esi], 0
call fcn.0047a0a0
add esp, 8
test eax, eax
je 0x47a400
push dword [edi + 0x484]
call dword [0x725400]
push dword [ebp - 4]
call dword [0x725404]
add esp, 8
mov dword [edi + 0x484], eax
test eax, eax
je 0x47a400
push 0
push 0
lea eax, [esi + 0x10]
push eax
push 0x47a190
push 0
push 0
call fcn.00627e07
add esp, 0x18
test eax, eax
je 0x47a3f1
cmp eax, 0xffffffff
jne 0x47a3f3
xor eax, eax
mov dword [esi], eax
test eax, eax
jne 0x47a41b
call fcn.0060a381
mov ebx, dword [eax]
lea ecx, [edi + 0x484]
call fcn.0047a280
call fcn.0060a381
pop edi
pop esi
mov dword [eax], ebx
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47bd10
Capabilities:
Create udp socket

Disassembly:
mov ecx, dword [0x72540c]
cmp ecx, 0xffffffff
jne 0x47bd53
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x47bd3c
xor ecx, ecx
xor eax, eax
test ecx, ecx
mov dword [0x72540c], ecx
setg al
ret
push eax
mov dword [0x72540c], 1
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x72540c]
xor eax, eax
test ecx, ecx
setg al
ret
Function at 0x4896a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x6f8eb8
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4896bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x6f8ecc
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x6f8edc
push str.WS2_32.DLL
mov ebx, eax
call fcn.00625975
add esp, 8
test eax, eax
je 0x489710
test ebx, ebx
je 0x4896fc
push 8
push 0
push str.WS2_32.DLL
call ebx
pop ebx
mov esi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
pop ebx
mov esi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x48973b
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x48973b
push 0x800
push 0
push str.WS2_32.DLL
call ebx
pop ebx
mov esi, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4897f0
lea ecx, [eax*2 + 0x16]
push ecx
call dword [0x7253b8]
mov edi, eax
add esp, 4
test edi, edi
je 0x4897e6
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x4897e6
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x489780
sub ecx, edx
mov edx, edi
sar ecx, 1
mov dword [edi + ecx*2], 0x5c
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4897a0
sub edx, ecx
mov ecx, str.WS2_32.DLL
sar edx, 1
lea edx, [edi + edx*2]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4897c0
test ebx, ebx
je 0x4897dd
push 8
push 0
push edi
call ebx
jmp 0x4897e4
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
push edi
call dword [0x725400]
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x489ba0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea edi, [ebp - 8]
mov dword [ebp - 0x18], ebx
push edi
push eax
push edx
xor esi, esi
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebx], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x489d52
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x489d3f
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x489bf5
mov eax, 0x10
jmp 0x489c03
cmp eax, 0x17
jne 0x489cb7
mov eax, 0x1c
cmp dword [ebx + 0x18], 0
mov dword [ebp - 0xc], eax
je 0x489cb7
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x489cb7
cmp ecx, eax
jb 0x489cb7
push 0x20
call dword [0x7253b8]
mov edi, eax
add esp, 4
test edi, edi
je 0x489d34
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x7253b8]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x489d23
push dword [ebp - 0xc]
push dword [ebx + 0x18]
push eax
call fcn.005f40c0
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x489ca5
push eax
call dword [0x725404]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x489d09
mov eax, dword [ebp - 0x10]
test esi, esi
cmove esi, edi
test eax, eax
je 0x489cb4
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x489be6
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
test eax, eax
je 0x489cd3
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x489d3b
test esi, esi
je 0x489d05
nop dword [eax + eax]
push dword [esi + 0x18]
call dword [0x725400]
push dword [esi + 0x14]
call dword [0x725400]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x725400]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x489ce0
xor esi, esi
jmp 0x489d4b
push dword [edi + 0x18]
mov ebx, 8
call dword [0x725400]
push edi
call dword [0x725400]
add esp, 8
jmp 0x489cc5
push edi
mov ebx, 8
call dword [0x725400]
add esp, 4
jmp 0x489cc5
mov ebx, 8
jmp 0x489cc5
test esi, esi
jne 0x489d4b
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret
Function at 0x48a0d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0061a79f
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x48a134
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x48a134
lea eax, [ebp - 0x108]
push eax
call dword [0x725404]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret

Function at 0x48bd20
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x49a4]
cmp byte [edx], 0
jne 0x48bd89
push 0x401
lea eax, [ebp - 0x408]
mov byte [ebp - 0x408], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [ebp - 8], 0
test eax, eax
jne 0x48bd84
lea eax, [ebp - 0x408]
push 0x2e
push eax
call fcn.005fa980
add esp, 8
test eax, eax
je 0x48bd7c
mov byte [eax], 0
lea edx, [ebp - 0x408]
jmp 0x48bd89
mov edx, str.localhost
push 1
push 0
lea eax, [esi + 0x4f0]
push eax
push 0
call fcn.0048a320
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop esi
call fcn.004aa758
mov esp, ebp
pop ebp
ret
Function at 0x48c320
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x1c], edx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], esi
mov dword [eax], esi
mov edi, dword [ecx]
xor eax, eax
mov dword [ebp - 4], 0x493e0
mov dword [ebp - 8], 0
mov edx, dword [edi + 0x208]
test edx, edx
mov ecx, dword [edi + 0x20c]
setg al
test ecx, ecx
jle 0x48c36c
or eax, 2
sub eax, 1
je 0x48c384
sub eax, 1
je 0x48c380
sub eax, 1
jne 0x48c38d
cmp edx, ecx
cmovl ecx, edx
mov eax, ecx
jmp 0x48c386
mov eax, edx
cdq
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
movups xmm1, xmmword [edi + 0x5c8]
mov esi, eax
mov eax, 0x10624dd3
mul esi
movaps xmm0, xmm1
psrldq xmm0, 8
push 0
mov eax, edx
shr eax, 6
imul ecx, eax, 0x3e8
mov dword [ebp - 0x18], eax
movd eax, xmm0
push 0x3e8
sub esi, ecx
imul ecx, esi, 0x3e8
movd esi, xmm1
psrldq xmm1, 4
sub ecx, eax
mov eax, 0x10624dd3
imul ecx
movd ecx, xmm1
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, dword [ebp - 0x18]
cdq
sbb ecx, 0
mov edi, eax
push ecx
push esi
mov ebx, edx
call fcn.0065e4b0
mov ecx, eax
sub ecx, edi
sbb edx, ebx
add ecx, dword [ebp - 4]
mov eax, ecx
adc edx, dword [ebp - 8]
or eax, edx
je 0x48c4ad
test edx, edx
jl 0x48c4ad
jg 0x48c426
test ecx, ecx
jb 0x48c4ad
mov edi, dword [ebp - 0x1c]
push edx
push ecx
push 0xffffffffffffffff
or edx, 0xffffffff
mov ecx, edi
call fcn.0046ebd0
add esp, 0xc
test eax, eax
jle 0x48c4a3
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
push 0
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x48c469
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x48c486
mov ecx, dword [ebp - 0x14]
jmp 0x48c342
cmp ebx, eax
je 0x48c492
test eax, eax
je 0x48c4a3
mov ecx, dword [ebp - 0x14]
sub ebx, eax
add esi, eax
mov dword [ebp + 0xc], ebx
add dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
jmp 0x48c342
mov eax, 0x38
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20]
add eax, dword [ebp - 0xc]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490d20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], 0x80
lea eax, [ebp - 8]
mov dword [ebp - 0x8c], ebx
push eax
lea eax, [ebp - 0x88]
mov esi, dword [ebx + 0x4a8]
mov edi, dword [ebx]
push eax
push 0
mov eax, dword [esi + 0x154]
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x490da4
push dword [ebp - 8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.005f40c0
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x490dd7
push str.Received_too_short_packet
push edi
call fcn.0046c5e0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x490df8
jmp dword [ecx*4 + 0x490f40]
cmp edx, 4
jle case.0x490df8.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x490df8.4
lea eax, [edx - 4]
mov ecx, ebx
push eax
mov eax, dword [esi + 0x15c]
mov edx, 1
add eax, 4
push eax
call fcn.0046cd90
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x490e6d
mov edx, 5
mov ecx, esi
call fcn.00490a40
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov ecx, edi
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
call fcn.00481120
mov ebx, dword [ebp - 0x8c]
add esp, 8
jmp case.0x490df8.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x6f6578
push edi
call fcn.0046c560
jmp 0x490f0a
lea eax, [edx - 2]
mov ecx, esi
mov edx, dword [esi + 0x15c]
push eax
add edx, 2
call fcn.0048fc30
add esp, 4
test eax, eax
je case.0x490df8.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x6e9d48
push edi
call fcn.0046c5e0
add esp, 0xc
mov ecx, ebx
call fcn.00481340
test eax, eax
je 0x490dc4
mov edx, 5
mov ecx, esi
call fcn.00490a40
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret
Function at 0x492c80
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0x80
push edi
or ebx, 0xffffffff
mov eax, dword [esi]
mov edi, dword [esi + 0x1ac]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x492cde
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x80
push eax
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp dword [esi + 0x40], 0
je 0x492cfc
cmp edi, dword [esi + 0x1ac]
jne 0x492d37
cmp byte [esi + 0x1b9], 0
je 0x492d37
mov byte [esi + 0x1b9], 0
mov edx, edi
mov ecx, esi
call fcn.0046b4e0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x492d4e
push str.Error_accept__ing_server_connect
push dword [ebp - 8]
call fcn.0046c5e0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, esi
call fcn.0046b4e0
mov eax, dword [esi + 0x40]
push edi
push dword [esi + 0x44]
call eax
add esp, 8
jmp 0x492d0c
mov edi, dword [ebp - 8]
push str.Connection_accepted_from_server_n
push edi
call fcn.0046c560
add esp, 8
mov byte [esi + 0x2a8], 0
lea eax, [ebp - 8]
mov dword [esi + 0x1ac], ebx
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov byte [esi + 0x1b9], 1
mov eax, dword [edi + 0x1d8]
test eax, eax
je 0x492dc3
push 1
push ebx
push dword [edi + 0x1dc]
call eax
add esp, 0xc
test eax, eax
je 0x492dc3
mov ecx, esi
call fcn.00492b60
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret
Function at 0x495340
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [edx - 0xc8]
xor esi, esi
mov ecx, dword [edi]
cmp eax, 0x64
jb 0x49536d
push str.Couldnt_set_desired_mode
push ecx
call fcn.0046c5e0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ecx
pop ebp
ret
cmp edx, 0xc8
je 0x495384
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.0046c560
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x49539a
mov ecx, edi
call fcn.00494410
mov esi, eax
pop edi
pop esi
pop ecx
pop ebp
ret
cmp eax, 0x14
jne 0x4953ad
mov ecx, edi
call fcn.00494490
mov esi, eax
pop edi
pop esi
pop ecx
pop ebp
ret
cmp eax, 0x15
jne 0x4953b6
push 0xd
jmp 0x4953bd
cmp eax, 0x16
jne 0x4953cb
push 0xe
mov dl, 1
mov ecx, edi
call fcn.00494910
add esp, 4
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ecx
pop ebp
ret

Function at 0x498570
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4985bc
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0046c5e0
add esp, 0xc
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x4985e4
shr eax, 8
test al, al
jne 0x4985e4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa758
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0046c5e0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 2
pop esi
call fcn.004aa758
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 6], al
push 3
lea eax, [ebp - 8]
mov byte [ebp - 8], 0xff
push eax
push dword [esi + 0x1a8]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 7], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4988f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0046c5e0
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.004987a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004aa758
mov esp, ebp
pop ebp
ret