joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c7b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x120]
call fcn.0045c700
mov eax, dword [esp + 0x124]
push 0
push eax
push edi
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esi], 0
jne 0x45c85a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x45c829
xor eax, eax
mov dword [esi], 0x51
jmp 0x45c85a
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00489550
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.0045c260
mov eax, dword [ebx]
mov dword [eax + 0xe4c], ebp
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e502
add esp, 0x104
ret

Function at 0x45ee80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.0045ee70
add esp, 4
mov dword [esp + 0xc], eax
jmp dword [sym.imp.MSVCR80.dll__read]

Function at 0x45f160
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
cmp esi, edi
mov ebx, 0x1505
jae 0x45f152
movzx eax, byte [esi]
push eax
call fcn.00463010
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
add esi, 1
add esp, 4
cmp esi, edi
mov ebx, ecx
jb 0x45f131
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x45f18f
mov ecx, esi
call fcn.0045ef90
test eax, eax
jne 0x45f18f
lea eax, [esp + 4]
push eax
call fcn.0045f0b0
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x45f120
xor eax, eax
pop esi
pop ecx
ret

Function at 0x460d00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0xbe8], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x460d3e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0045c170
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xb00]
push edx
mov dword [esp + 0xc], 1
call fcn.0045ee50
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb04]
push eax
call fcn.0045ee50
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x460db7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0045c170
add esp, 0x10
add esp, 0x14
ret
Function at 0x461480
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
cmp dword [ebx + 0x2f8], 3
jne 0x46164d
cmp dword [ebx + 0x528], 0
push ebp
push esi
push edi
jne 0x461641
cmp dword [ebx + 0x590], 0
jne 0x461641
mov esi, dword [esp + 0x224]
mov ebp, dword [ebx]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov edi, 0x80
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x461520
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push pe_nt_image_headers32
lea edx, [esp + 0x11c]
mov esi, eax
push edx
push esi
call fcn.00489550
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.0045c260
add esp, 0x1c
jmp 0x46164a
push edi
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], edi
call fcn.0044ea7c
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x461579
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push pe_nt_image_headers32
lea eax, [esp + 0x11c]
push eax
push esi
call fcn.00489550
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.0045c260
add esp, 0x1c
jmp 0x46164a
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 0x3a0]
push ecx
lea esi, [ebx + 0x372]
push esi
push edx
lea eax, [esp + 0xa4]
push eax
call fcn.00461410
add esp, 0x10
test eax, eax
jne 0x4615d7
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov edi, eax
call esi
mov edx, dword [edi]
push pe_nt_image_headers32
lea ecx, [esp + 0x11c]
push ecx
push edx
mov esi, eax
call fcn.00489550
push eax
mov eax, dword [esi]
push eax
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0045c260
add esp, 0x1c
jmp 0x46164a
mov eax, dword [esp + 0x14]
lea edi, [ebx + 0x2c4]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x3d4]
push ecx
lea edx, [ebx + 0x3a4]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
movsw word es:[edi], word [esi]
call fcn.00461410
add esp, 0x10
test eax, eax
jne 0x461641
mov esi, dword [sym.imp.MSVCR80.dll__errno]
call esi
mov edi, eax
call esi
push pe_nt_image_headers32
lea edx, [esp + 0x11c]
mov esi, eax
mov eax, dword [edi]
push edx
push eax
call fcn.00489550
mov ecx, dword [esi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.0045c260
add esp, 0x1c
jmp 0x46164a
push ebx
call fcn.00461390
add esp, 4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20c]
pop ebx
xor ecx, esp
call fcn.0044e502
add esp, 0x20c
ret
Function at 0x4617a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [eax]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x461801
push pe_nt_image_headers32
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00489550
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0045c170
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0044e502
add esp, 0x108
ret

Function at 0x461820
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x5dd240]
test eax, eax
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
jne 0x461870
push 3
push 2
push eax
push 6
call fcn.00453000
add esp, 0x10
test eax, eax
je 0x461864
mov dword [0x5dd240], 2
add esp, 0xc
ret
mov dword [0x5dd240], 1
jmp 0x461875
cmp eax, 2
je 0x4618bc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4618a3
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4618bb
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x463720
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x4637c5
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x463795
cmp word [ecx + 0xa], 4
jne 0x463795
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x463795
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.004636b0
test eax, eax
mov dword [esi], eax
je 0x4637b9
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x463770
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4637d5.11001
jmp dword [eax*4 + 0x4637f8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x464040
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x5dd244], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x463a90
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x463d80
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00463a40
je 0x4640b2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x5d2064]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0044e502
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4641c0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_strcpy_s]
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call edi
mov ebx, dword [sym.imp.MSVCR80.dll_strcat_s]
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call ebp
mov esi, eax
test esi, esi
je 0x46412f
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x46417f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call edi
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call ebx
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4641bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x464185
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4641bc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x464176
add edi, 1
cmp edi, 3
jl 0x464187
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x5d2064], edx
mov dword [0x5d206c], eax
mov dword [fcn.00463a40], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x5d2064]
xor ecx, esp
mov dword [0x5dd244], 1
call fcn.0044e502
add esp, 0x230
ret 4
Function at 0x465cf0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x465d14
cmp eax, 0xffffffff
jne 0x465d16
xor eax, eax
ret

Function at 0x466390
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp dword [0x5dd254], 0
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x4663c7
call fcn.00466380
test eax, eax
je 0x4663df
mov dword [0x5dd254], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.0044e502
add esp, 0x1b8
ret
mov eax, dword [esi + 0xa30]
test eax, eax
je 0x466400
push 0x400
push eax
call fcn.004c8110
add esp, 8
call fcn.00466380
test eax, eax
jne 0x4663c7
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
jmp 0x466420
lea eax, [esp + 0x34]
push eax
call fcn.00465d60
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
push 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
call fcn.004826c0
add esp, 8
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.00497d00
lea ecx, [esp + 0x74]
mov ebx, esi
imul ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.00465d60
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.00465d60
mov ecx, dword [esp + 0x38]
add esp, 8
add ebp, dword [eax]
push 0
adc ecx, dword [eax + 4]
lea edx, [esi + 1]
push edx
push ecx
push ebp
mov dword [esp + 0x38], edx
call fcn.00497d00
shld edx, eax, 8
xor dword [esp + 0x14], edx
shl eax, 8
xor dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
call fcn.00465d60
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.00465d60
mov edx, dword [ebp]
add edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 2
imul edx, esi
mov esi, dword [esp + 0x30]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
sub dword [esp + 0x20], 1
jne 0x466420
fld qword [0x57c298]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.004c7f80
add esp, 0x10
call fcn.00466380
test eax, eax
je 0x466403
lea ecx, [esp + 0xc4]
push pe_nt_image_headers32
push ecx
mov byte [esp + 0xcc], 0
call fcn.004c8250
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x466577
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.004c8110
add esp, 8
call fcn.00466380
test eax, eax
jne 0x4663c7
mov eax, dword [esp + 0x18]
push str.libcurl_is_now_using_a_weak_random_seed__n
push eax
call fcn.0045c170
add esp, 8
call fcn.00466380
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.0044e502
add esp, 0x1b8
ret
Function at 0x46bbb0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x5d2040]
mov edi, eax
add esp, 8
test edi, edi
je 0x46bb78
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x46bb90
cmp esi, ebx
je 0x46bb90
cmp esi, 0x8000
ja 0x46bb90
cmp esi, ebx
jb 0x46bb89
push esi
push edi
call dword [0x5d2040]
mov edi, eax
add esp, 8
test edi, edi
jne 0x46bb40
push ebp
call dword [0x5d203c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x5d203c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x46bb20
Function at 0x473ed0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x57b288
push ecx
call fcn.0045c170
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00472ea0
test eax, eax
jne 0x473f00
mov ecx, esi
jmp fcn.00473350
ret
Function at 0x476110
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x420]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x476154
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0045c260
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.00476000
add esp, 4
pop esi
pop ecx
ret
Function at 0x476a90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0xa4], 0
call fcn.0044ea7c
push 0x7f
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.0044ea7c
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x14c]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.004764a0
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
add eax, 1
add esp, 0x20
cmp ecx, 0x18
mov dword [edi + 0x1eb0], eax
je 0x476c7a
cmp ecx, 0x23
je 0x476c55
cmp ecx, 0x27
jne 0x476d0e
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.00465130
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
test esi, esi
mov ebp, 4
je 0x476be9
jmp 0x476b70
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x476b77
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x476bde
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x9c]
push edx
push str._127_____127s
push ebx
call dword [sym.imp.MSVCR80.dll_sscanf]
add esp, 0x10
test eax, eax
je 0x476bde
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0xa0]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x130]
push eax
call fcn.00465130
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x476b70
mov ebx, dword [esp + 0x14]
push 0xf0
push 0xff
mov ecx, 0x800
push str._c_c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x128]
push edx
call fcn.00465130
mov ecx, dword [ebx + 0x420]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x120]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x476c48
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.0045c260
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x476cfd
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x476c60
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x476c9d
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x476c85
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x138]
push 0x800
push eax
call fcn.00465130
mov edx, dword [ebx + 0x420]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x476cf7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.0045c260
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x122]
call fcn.004764a0
add esp, 8
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e502
add esp, 0x90c
ret
Function at 0x476f00
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x14c]
mov dword [esp + 4], eax
jne 0x477062
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
cmp ebx, edi
mov dword [edi], ebx
jae 0x476f38
mov byte [ebx], 0xff
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x476f44
mov byte [eax], 0xfa
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x476f50
mov byte [eax], 0x1f
add dword [edi], 1
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x476f83
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x476f92
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x476f9d
mov byte [eax], cl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x476fa8
mov byte [eax], ch
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x476fb4
mov byte [eax], 0xff
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x476fc0
mov byte [eax], 0xf0
add dword [edi], 1
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.004764a0
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
test eax, eax
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jge 0x47701d
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.0045c260
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.00476d30
mov edx, dword [edi + 0x420]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x47705f
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.0045c260
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x477af0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x424]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x477b47
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.004619b0
add esp, 8
cmp ebx, 0xffffffff
jne 0x477b7c
push str.Error_accept__ing_server_connect
push edi
call fcn.0045c260
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044e502
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.0045c170
push 1
push ebx
mov dword [esi + 0x554], 0
mov dword [esi + 0x424], ebx
call fcn.004875f0
add esp, 0x10
mov dword [esi + 0x754], 1
cmp dword [edi + 0x628], 0
je 0x477bfd
push 1
push edi
call fcn.0045a080
mov ecx, dword [edi + 0x62c]
mov edx, dword [edi + 0x628]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.0045a080
add esp, 0x1c
test ebx, ebx
je 0x477bfd
call fcn.00477a50
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0044e502
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044e502
add esp, 0x18
ret
Function at 0x47b160
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
push edi
mov edi, dword [ebx]
je 0x47b19a
push str.Couldnt_set_desired_mode
push edi
call fcn.0045c260
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x47b1b1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.0045c170
add esp, 0xc
cmp ebp, 0x13
jne 0x47b1c6
push ebx
call fcn.0047b0f0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x47b1d7
call fcn.00478670
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x47b1ea
mov eax, ebx
call fcn.0047b140
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x47b1f8
mov eax, ebx
call fcn.0047b150
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x485330
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x48536f
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret