joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003e460
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov ebp, dword [esi + 0x18]
cmp edi, 0x2a
jne 0x1003e598
mov esi, dword [esi + 0x8bc]
add esi, 2
push ebx
mov al, byte [esi]
test al, al
je 0x1003e49f
cmp al, 0x20
je 0x1003e497
cmp al, 9
je 0x1003e497
cmp al, 0xd
je 0x1003e497
cmp al, 0xa
jne 0x1003e4a6
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1003e487
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov al, byte [esi]
test al, al
je 0x1003e49f
xor edi, edi
mov edi, edi
cmp al, 0x20
je 0x1003e4c9
cmp al, 9
je 0x1003e4c9
cmp al, 0xd
je 0x1003e4c9
cmp al, 0xa
je 0x1003e4c9
mov al, byte [edi + esi + 1]
inc edi
test al, al
jne 0x1003e4b0
cmp edi, 8
jne 0x1003e4ee
cmp dword [esi], 0x52415453
jne 0x1003e557
cmp dword [esi + 4], 0x534c5454
jne 0x1003e557
mov byte [ebp + 0x425], 1
add esi, edi
jmp 0x1003e481
cmp edi, 0xd
jne 0x1003e525
mov ecx, esi
lea ebx, [edi - 4]
mov edx, str.LOGINDISABLED
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1003e557
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x1003e500
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1003e557
mov byte [ebp + 0x426], 1
add esi, edi
jmp 0x1003e481
cmp edi, 7
jne 0x1003e552
cmp dword [esi], 0x4c534153
jne 0x1003e557
movzx eax, word [esi + 4]
cmp ax, 0x492d
jne 0x1003e557
movzx eax, byte [esi + 6]
cmp al, 0x52
jne 0x1003e557
mov byte [ebp + 0x427], 1
add esi, edi
jmp 0x1003e481
cmp edi, 5
jbe 0x1003e591
cmp dword [esi], 0x48545541
jne 0x1003e591
movzx eax, byte [esi + 4]
cmp al, 0x3d
jne 0x1003e591
lea eax, [esp + 0x14]
sub edi, 5
push eax
add esi, 5
push edi
push esi
call fcn.10060fe0
movzx eax, ax
add esp, 0xc
test ax, ax
je 0x1003e591
cmp dword [esp + 0x14], edi
jne 0x1003e591
or word [ebp + 0x3f4], ax
add esi, edi
jmp 0x1003e481
cmp byte [esi + 0x6ac], 0
je 0x1003e5f5
push 0
push ebp
call fcn.1001fc10
add esp, 8
test al, al
jne 0x1003e5f5
cmp edi, 1
jne 0x1003e5ec
cmp byte [ebp + 0x425], al
je 0x1003e5ec
cmp byte [ebp + 0x424], al
jne 0x1003e5ec
push str.STARTTLS
push esi
call fcn.1003e2b0
add esp, 8
test eax, eax
jne 0x1003e4a2
mov ecx, dword [esi + 0x18]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x418], 3
ret
cmp byte [esi + 0x6ac], 1
ja 0x1003e603
push ebp
push esi
call fcn.1003dd50
add esp, 8
pop edi
pop esi
pop ebp
ret
push str.STARTTLS_not_available.
push esi
call fcn.10020190
add esp, 8
mov eax, 0x40
pop edi
pop esi
pop ebp
ret
Function at 0x10042ae0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x144]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10042b4b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x10042b4f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x10042b7f
push str.Error_accept__ing_server_connect
push edi
call fcn.10020190
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100676f5
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.10020260
mov byte [ebx + 0x1ed], 0
push 1
push dword [esp + 0x18]
call fcn.1005cc90
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.10054be0
add esp, 0x20
test eax, eax
jne 0x10042c19
cmp dword [edi + 0x1ac], eax
je 0x10042c17
push 1
push edi
call fcn.1000dc80
mov eax, dword [edi + 0x1ac]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1b0]
call eax
push 0
push edi
mov esi, eax
call fcn.1000dc80
add esp, 0x1c
test esi, esi
je 0x10042c17
push 1
push edi
call fcn.1001f600
push 1
push ebx
push edi
call fcn.1001f440
add esp, 0x14
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.100676f5
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0x8c
ret

Function at 0x10045400
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 2
je 0x1004543b
push str.Couldnt_set_desired_mode
push esi
call fcn.10020190
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x10045452
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.10020260
add esp, 0xc
mov al, byte [esp + 0x18]
cmp al, 0x13
jne 0x1004546a
push ebx
push esi
call fcn.100450b0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x1004547d
push esi
call fcn.100440a0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x10045494
push 0xd
push 1
push esi
call fcn.10044ba0
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x100454a7
push 0xe
push 1
push esi
call fcn.10044ba0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10048c30
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10048c7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10020190
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.10048560
add esp, 0x10
pop esi
pop ebx
ret

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

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x11c]
mov dword [esp + 8], eax
jne 0x10048f0e
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x10048df8
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e03
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e0e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x18]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e40
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e4a
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e54
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e5e
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e69
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10048e74
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebp + 0x1cb4]
mov dword [ebp + 0x1eb8], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.10048670
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x140]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x10048ece
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10020190
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.10048ca0
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x140]
call edi
test eax, eax
jns 0x10048f0c
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.10020190
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10049080
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push ebp
mov ebp, dword [esp + 0x818]
push esi
push edi
mov edi, dword [ebp + 0x11c]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x10], ebx
mov eax, dword [edi + 0x1eb8]
sub eax, dword [edi + 0x1eb4]
add eax, 2
push eax
lea eax, [edi + 0x1cb4]
push eax
push 0x3c
push ebp
call fcn.10048670
mov eax, dword [edi + 0x1eb4]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1eb4], eax
cmp ecx, 0x18
je 0x10049218
cmp ecx, 0x23
je 0x100491f3
cmp ecx, 0x27
jne 0x100492a0
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.100279f0
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
mov ebx, 0x800
test edi, edi
je 0x100491b8
mov edx, dword [edi]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049140
sub ecx, dword [esp + 0x14]
lea eax, [esi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x100491ad
push 0x2c
push edx
call fcn.10068f80
add esp, 8
test eax, eax
jne 0x10049184
push dword [edi]
push eax
mov eax, ebx
sub eax, esi
push str._c_s
push eax
lea eax, [esp + 0x28]
add eax, esi
push eax
call fcn.100279f0
add esp, 0x14
jmp 0x100491ab
mov ecx, dword [edi]
mov edx, eax
inc eax
sub edx, ecx
push eax
push 1
push ecx
push edx
push 0
mov eax, ebx
sub eax, esi
push str._c_.s_c_s
push eax
lea eax, [esp + 0x34]
add eax, esi
push eax
call fcn.100279f0
add esp, 0x20
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x10049135
push 0xf0
push 0xff
push str._c_c
sub ebx, esi
lea eax, [esp + 0x24]
add eax, esi
push ebx
push eax
call fcn.100279f0
add esp, 0x14
lea eax, [esp + 0x18]
add esi, 2
push 0
push esi
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x140]
jmp 0x1004926d
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049200
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0x10049239
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049223
push 0xf0
push 0xff
push edi
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [esp + 0x38]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.100279f0
add esp, 0x28
lea eax, [esp + 0x18]
push 0
push esi
push eax
push dword [ebx + 0x140]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1004928c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.10020190
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebp
call fcn.10048670
add esp, 0x10
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0x80c
ret
Function at 0x1004a100
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x398]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x1004a186
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.10067bf0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x1004a1c1
push str.Received_too_short_packet
push ebp
call fcn.10020190
add esp, 8
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0x8c
ret
mov ecx, dword [edi + 0x148]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [edi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x1004a1e6
jmp dword [edx*4 + 0x1004a2e0]
cmp esi, 4
jle case.0x1004a1e6.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [edi + 0x144]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x1004a1e6.4
lea eax, [esi - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push ebp
call fcn.10020b30
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x1004a1e6.4
push 5
push edi
call fcn.1004ab10
add esp, 8
jmp 0x1004a1a6
mov edx, ecx
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
push esi
push dword [esp + 0x18]
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
mov dword [edi + 8], ecx
call fcn.1004ac30
add esp, 8
cmp eax, esi
jae case.0x1004a1e6.4
push dword [esp + 0x14]
push str.TFTP_error:__s
push ebp
call fcn.10020260
jmp 0x1004a2b7
lea eax, [esi - 2]
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.10049e70
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x1004a1e6.4
jmp 0x1004a1a6
push str.Internal_error:_Unexpected_packet
push 0x1009f044
push ebp
call fcn.10020190
add esp, 0xc
push ebp
call fcn.10031d10
add esp, 4
test eax, eax
je 0x1004a1a6
push 5
push edi
call fcn.1004ab10
add esp, 8
mov eax, 0x2a
jmp 0x1004a1a8
Function at 0x10054df0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x100bb44c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x10054e41
push 3
push 2
push eax
push eax
push 6
call fcn.100571b0
add esp, 0x14
test al, al
je 0x10054e35
mov dword [0x100bb44c], 2
add esp, 0xc
ret
mov dword [0x100bb44c], 1
jmp 0x10054e46
cmp eax, 2
je 0x10054e8c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10054e71
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x10054e8c
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x10055830
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1005586e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [esp + 0x18]
call fcn.10055e90
add esp, 0xc
pop edi
pop ebx
ret
push dword [esp + 0x10]
push ebx
call fcn.10055c10
push dword [edi + 0xec]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x120]
lea eax, [edi + 0xf0]
mov ecx, 0x100aa454
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [esp + 0x38]
call fcn.100202f0
push 1
push dword [edi + 0x98]
call fcn.1005cc90
add esp, 0x34
xor eax, eax
pop edi
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x120]
mov eax, dword [ebx]
push 0
push dword [esp + 0x120]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10055aaf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10055a7c
mov dword [edi], 0x51
jmp 0x10055aac
push 0x100
lea eax, [esp + 0x10]
push eax
push esi
call fcn.100338e0
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.10020190
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x934], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [esp + 0x124]
push str.nw_in_read_len_zu______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.100202f0
mov ecx, dword [esp + 0x124]
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0x104
ret
Function at 0x10055c10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x200]
test dword [eax + 0x44], 0x800
jne 0x10055d3e
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call fcn.1006a960
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10055cca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.100338e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10020190
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100676f5
add esp, 0x188
ret
lea eax, [esi + 0x120]
push eax
lea eax, [esi + 0xf0]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.100218f0
add esp, 0x10
test al, al
jne 0x10055d3e
push edi
call fcn.100671b1
mov esi, eax
call fcn.100671b1
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.100338e0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10020190
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.100676f5
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0x188
ret

Function at 0x10055fc0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0x6d7], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10056020
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.10020260
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.100676f5
add esp, 0x18
ret
push dword [esi + 0x670]
mov dword [esp + 0x14], 1
call fcn.10022c60
push dword [esi + 0x674]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.10022c60
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10056097
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.10020260
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.100676f5
add esp, 0x18
ret
Function at 0x100560b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push 4
push eax
push 1
push 6
push dword [esp + 0x124]
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10056115
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.100338e0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.10020260
add esp, 0x18
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.100676f5
add esp, 0x108
ret
Function at 0x1005d4c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x100b9550]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
call fcn.10068f22
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1005d538
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100339d0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.10020190
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x1005d677
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x1005d58a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100339d0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.10020190
add esp, 0x1c
mov esi, 0x4d
jmp 0x1005d677
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1005d5ca
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100339d0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.10020190
add esp, 0x1c
mov esi, 0x4d
jmp 0x1005d66d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x1005d5f8
jg 0x1005d5de
cmp edi, 0x100000
jbe 0x1005d5f8
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.10020190
add esp, 0xc
mov esi, 0x4d
jmp 0x1005d66d
lea eax, [edi + 1]
push eax
call dword [0x100b9034]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1005d610
lea esi, [eax + 0x1b]
jmp 0x1005d66d
test edi, edi
je 0x1005d654
jmp 0x1005d620
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005d6b1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1005d6ad
add esi, eax
cmp esi, edi
jb 0x1005d620
push ebp
push dword [esp + 0x14]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.1005d2c0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x100b9038]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x1005d692
push eax
call fcn.100672c9
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100676f5
add esp, 0x120
ret
mov edi, esi
jmp 0x1005d654
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100339d0
push eax
push dword [esp + 0x20]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.10020190
add esp, 0x1c
mov esi, 0x4d
jmp 0x1005d66d