joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e560
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ecb9
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xb8], ecx
xor ebx, ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], ebx
call fcn.004086c0
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 4], ebx
call fcn.004086f0
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 1
call fcn.0040a9f0
add esp, 8
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00408830
test esi, esi
je 0x42e636
push esi
lea ecx, [ebp - 0x80]
call fcn.004086f0
push eax
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 4
push edx
mov dword [ebp - 0xac], 1
call fcn.0040a9f0
add esp, 8
mov dword [ebp - 4], 5
mov ebx, 3
mov ecx, eax
mov dword [ebp - 0xac], ebx
call fcn.00409b80
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x48]
call fcn.00409b80
mov ecx, dword [ebp - 0xb0]
push eax
push edi
mov edx, esi
call fcn.0042e9f0
test al, al
sete byte [ebp - 0x9d]
test bl, 2
je 0x42e66a
lea ecx, [ebp - 0x64]
and ebx, 0xfffffffd
call fcn.00409b30
mov dword [ebp - 4], 3
test bl, 1
je 0x42e67e
lea ecx, [ebp - 0x80]
call fcn.00408830
cmp byte [ebp - 0x9d], 0
je 0x42e690
lea ecx, [ebp - 0x2c]
push ecx
jmp 0x42e74c
push 0x100000
call fcn.0042ecc3
add esp, 4
lea edx, [ebp - 0xa4]
mov esi, eax
mov eax, dword [edi + 0x18]
push edx
push eax
mov byte [ebp - 0x9d], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x42e72e
jmp 0x42e6c0
mov ebx, dword [ebp - 0xa4]
test ebx, ebx
je 0x42e727
cmp ebx, 0x100000
jbe 0x42e6e9
push esi
call fcn.0042ec89
mov ebx, dword [ebp - 0xa4]
push ebx
call fcn.0042ecc3
add esp, 8
mov esi, eax
mov edx, dword [edi + 0x18]
lea ecx, [ebp - 0xb4]
push ecx
push ebx
push esi
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x42e72e
mov eax, dword [ebp - 0xb4]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004091f0
mov edx, dword [edi + 0x18]
lea ecx, [ebp - 0xa4]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x42e6c0
jmp 0x42e72e
mov byte [ebp - 0x9d], 1
push esi
call fcn.0042ec89
add esp, 4
cmp byte [ebp - 0x9d], 0
jne 0x42e748
lea ecx, [ebp - 0x2c]
call fcn.00409a10
lea eax, [ebp - 0x2c]
push eax
mov esi, dword [ebp - 0xa8]
mov ecx, esi
call fcn.00408770
lea ecx, [ebp - 0x48]
call fcn.00409b30
lea ecx, [ebp - 0x2c]
call fcn.00408830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42e790
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e468
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0
call fcn.004086c0
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp - 0x40]
push edi
push esi
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0042e9f0
test al, al
jne 0x42e802
lea eax, [ebp - 0x2c]
push eax
jmp 0x42e89e
push 0x100000
call fcn.0042ecc3
mov edx, dword [esi + 0x18]
add esp, 4
lea ecx, [ebp - 0x34]
push ecx
push edx
mov edi, eax
mov byte [ebp - 0x2d], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x42e883
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x42e87f
cmp ebx, 0x100000
jbe 0x42e84a
push edi
call fcn.0042ec89
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.0042ecc3
add esp, 8
mov edi, eax
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x3c]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x42e883
mov edx, dword [ebp - 0x3c]
push edx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004091f0
mov ecx, dword [esi + 0x18]
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x42e827
jmp 0x42e883
mov byte [ebp - 0x2d], 1
push edi
call fcn.0042ec89
add esp, 4
cmp byte [ebp - 0x2d], 0
jne 0x42e89a
lea ecx, [ebp - 0x2c]
call fcn.00409a10
lea edx, [ebp - 0x2c]
push edx
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.00408770
lea ecx, [ebp - 0x2c]
call fcn.00408830
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret 0x14

Function at 0x42e8d0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [edi + 0x18]
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x15
push ecx
mov byte [ebp - 1], 0
call ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x42e956
mov edx, dword [ebp - 8]
push esi
push edx
call fcn.0042ecc3
mov ecx, dword [edi + 0x18]
add esp, 4
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x15
push ecx
call ebx
test eax, eax
je 0x42e940
mov ecx, dword [ebp + 8]
push esi
call fcn.0040ced0
push esi
mov bl, 1
call fcn.0042ec89
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov bl, byte [ebp - 1]
push esi
call fcn.0042ec89
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e960
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x3a
push eax
lea ecx, [ebp - 0x3e]
push ecx
xor bl, bl
mov word [ebp - 0x40], ax
call fcn.00437410
mov ecx, dword [esi + 0x18]
add esp, 0xc
push 0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push ecx
mov dword [ebp - 0x48], 0x3c
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x42e9d7
push 0xa
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
call fcn.0043015f
add esp, 0xc
mov dword [edi], eax
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x42ec7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49b024]
jne 0x42ec84
repz ret
jmp fcn.00430f79

Function at 0x438e5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00433055
and dword [ebp - 0x14], 0
cmp dword [0x49d4b0], 0
mov dword [ebp - 0x18], eax
jne 0x438f0f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x438fb7
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x438fb7
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x49d4b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x49d4b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49d4b8], eax
call edi
push eax
call esi
mov dword [0x49d4c0], eax
test eax, eax
je 0x438f0f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x49d4bc], eax
mov eax, dword [0x49d4bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x438f68
cmp dword [0x49d4c0], ecx
je 0x438f68
push eax
call esi
push dword [0x49d4c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x438f68
test ebx, ebx
je 0x438f68
call edi
test eax, eax
je 0x438f5f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x438f5f
test byte [ebp - 8], 1
jne 0x438f68
or dword [ebp + 0x10], 0x200000
jmp 0x438f9b
mov eax, dword [0x49d4b4]
cmp eax, dword [ebp - 0x18]
je 0x438f9b
push eax
call esi
test eax, eax
je 0x438f9b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x438f9b
mov eax, dword [0x49d4b8]
cmp eax, dword [ebp - 0x18]
je 0x438f9b
push eax
call esi
test eax, eax
je 0x438f9b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x49d4b0]
call esi
test eax, eax
je 0x438fb7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x438fb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ec7a
leave
ret

Function at 0x43cad0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x43cb20
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x43cb1a
shr eax, 8
cmp al, 2
jne 0x43cb1a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x4499a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4499d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x449b10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1e0]
push edi
xor edi, edi
test ecx, ecx
je 0x449b36
mov edx, dword [esi + 0x16c]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop edi
pop ebp
ret
test eax, eax
js 0x449b6d
cmp eax, 2
jg 0x449b6d
mov ecx, dword [esi + 0x168]
push ecx
push 1
lea edx, [eax + eax*2 + 0x484540]
push 2
push edx
call fcn.00472bb9
mov eax, dword [esi + 0x168]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call fcn.00472bb9
add esp, 0x20
mov eax, edi
pop edi
pop ebp
ret

Function at 0x44a0e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebx + 0x330]
mov ecx, dword [ebx + eax*4 + 0x1a8]
push esi
lea esi, [eax + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
mov dword [ebp - 4], ecx
je 0x44a18e
cmp dword [ebx + eax*4 + 0x1c0], 0x449e80
jne 0x44a18e
cmp dword [esi], 0
je 0x44a124
test edi, edi
je 0x44a18e
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
call fcn.0043d7d0
add esp, 0x14
cmp eax, 0xffffffff
je 0x44a18e
test al, 1
je 0x44a18e
cmp dword [esi], 0
jne 0x44a16b
mov eax, dword [ebx]
mov eax, dword [eax + 0x4f8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x49bf40]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x44a18b
mov ecx, dword [esi]
add ecx, dword [esi + 8]
mov edx, dword [ebp - 4]
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x44a18e
add dword [esi + 8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44a1a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + eax*4 + 0x1a8]
push edi
call fcn.0044a0e0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push 0
push eax
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x44a221
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x44a1f6
mov dword [edi], 0x51
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push eax
push ebx
call fcn.0043d600
mov edx, dword [ebx]
push eax
push str.Send_failure:__s
push edx
call fcn.00449ce0
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x4954], ecx
add esp, 0x14
mov dword [edi], 0x37
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x44bc10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x6e0], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x44bc63
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00449c60
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x6e4]
push edx
mov dword [ebp - 0x10], 1
call fcn.00462f10
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x6e8]
push eax
call fcn.00462f10
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x44bcd5
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.00449c60
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x44c3f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x49b024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x94], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x44c5ed
cmp dword [esi + 0x288], 0
push edi
jne 0x44c5e3
cmp dword [esi + 0x2f8], 0
jne 0x44c5e3
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x44c494
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0043d600
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00449ce0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call fcn.00437410
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44c4fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0043d600
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00449ce0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x10a]
lea ebx, [esi + 0x138]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.0044c3a0
test eax, eax
jne 0x44c564
call fcn.004310c1
mov esi, eax
call fcn.004310c1
mov edx, dword [esi]
mov edi, eax
mov eax, dword [ebp - 0x108]
push edx
push eax
call fcn.0043d600
mov ecx, dword [edi]
mov edx, dword [ebp - 0x110]
push eax
push ecx
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00449ce0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x60]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x16c]
lea edi, [eax + 0x13c]
lea esi, [ebp - 0x84]
call fcn.0044c3a0
test eax, eax
jne 0x44c5dd
call fcn.004310c1
mov esi, eax
call fcn.004310c1
mov ecx, dword [ebp - 0x108]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
call fcn.0043d600
mov edx, dword [edi]
push eax
mov eax, dword [ebp - 0x110]
push edx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00449ce0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.0044c320
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ec7a
mov esp, ebp
pop ebp
ret
Function at 0x44c600
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
push 4
lea eax, [ebp + 8]
push eax
push 1
push 6
push ecx
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x44c649
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0043d600
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00449c60
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00449c60
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x44c660
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49d628]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x44c6b1
push 3
push 2
push eax
push 6
call fcn.0046c400
add esp, 0x10
test eax, eax
je 0x44c6a5
mov dword [0x49d628], 2
mov esp, ebp
pop ebp
ret
mov dword [0x49d628], 1
jmp 0x44c6b6
cmp eax, 2
je 0x44c6f7
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x44c6df
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x44c6f6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44c700
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x44c713
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x44c70f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
neg eax
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x44e730
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x44e8c6
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x44e8a8
push esi
cmp dword [edi + 4], 2
jne 0x44e82c
cmp dword [edi + 0x18], ebx
je 0x44e82c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x44e82c
cmp eax, 0x10
jb 0x44e82c
push 0x20
call dword [0x49bf40]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x44e839
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x49bf40]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x44e842
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x44e817
push eax
call dword [0x49bf4c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x44e855
cmp dword [ebp - 4], ebx
jne 0x44e81f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x44e829
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x44e772
jmp 0x44e870
mov dword [ebp - 8], 8
jmp 0x44e870
push esi
mov dword [ebp - 8], 8
call dword [0x49bf44]
add esp, 4
jmp 0x44e870
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x49bf44]
push esi
call dword [0x49bf44]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x44e87f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x44e8a3
mov eax, dword [ebp - 4]
push eax
call fcn.0044e6f0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x44e8ba
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44ebf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00430827
add esp, 0x18
test eax, eax
je 0x44ec14
cmp eax, 0xffffffff
jne 0x44ec16
xor eax, eax
pop ebp
ret
Function at 0x456740
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x4847b8
push ecx
call fcn.00449c60
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00455850
test eax, eax
jne 0x456774
mov eax, esi
pop ebp
jmp fcn.00455ce0
pop ebp
ret