joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d644c
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x1e8
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov eax, dword [rsp + 0x1f0]
and eax, 2
test eax, eax
je 0x1400d6501
mov eax, 0x202
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400d64aa
mov eax, 2
jmp 0x1400d6555
movzx eax, word [rsp + 0x30]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1400d64f4
movzx eax, word [rsp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x20]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1400d6501
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400d6555
call fcn.1400f833c
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400d6517
mov eax, dword [rsp + 0x24]
jmp 0x1400d6555
mov r9d, 3
mov r8d, 2
xor edx, edx
mov ecx, 6
call fcn.1400d624c
movzx eax, al
test eax, eax
je 0x1400d654c
mov byte [0x1401c0228], 1
lea rcx, [0x1401c0220]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x1400d6553
mov byte [0x1401c0228], 0
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x1e8
ret

Function at 0x1400dc72c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x728], 0
je 0x1400dc7a7
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.1400d6598
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x680]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x728]
mov dword [rsp + 0x34], eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400d6598
jmp 0x1400dc815
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400dc815
cmp dword [rsp + 0x30], 2
jle 0x1400dc7bf
jmp 0x1400dc815
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x14019b888]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x678]
mov r8d, 1
mov edx, 2
mov rcx, rax
call fcn.14007c1ec
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x678]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.14007c1ec
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x1400dc824
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor r9d, r9d
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x1400dc8a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x2733
jne 0x1400dc881
mov dword [rsp + 0x20], 1
jmp 0x1400dc889
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400dc89f
mov eax, 0x51
jmp 0x1400dc8b5
mov eax, gethostname
jmp 0x1400dc8b5
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movsxd rax, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rcx + rax*8 + 0x240]
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call fcn.1400dd3c4
xor r9d, r9d
mov r8d, dword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x100]
mov dword [rax], 0
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400dd0e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x2733
jne 0x1400dd091
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x100]
mov dword [rax], 0x51
jmp 0x1400dd0e2
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
call fcn.14010c9c8
mov r8, rax
lea rdx, str.Send_failure:__s
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax]
call fcn.1400ddbc8
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x10e8], ecx
mov rax, qword [rsp + 0x100]
mov dword [rax], gethostname
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0xd8
ret
Function at 0x1400dd3c4
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx + rax*8 + 0x240]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x68]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x288]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rax + 8]
sub rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x3e8]
mov eax, dword [rax + 0x7c]
and eax, 3
test eax, eax
je 0x1400dd578
movsxd rax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea rdx, [0x1400dcdcc]
cmp qword [rcx + rax*8 + 0x268], rdx
jne 0x1400dd578
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400dd46d
cmp qword [rsp + 0x30], 0
je 0x1400dd578
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
call fcn.1400e0898
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400dd578
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x1400dd578
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
jne 0x1400dd50b
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov eax, dword [rax + 0xb60]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 8]
call qword [fcn.14008ac9c]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400dd56b
xor eax, eax
test eax, eax
jne 0x1400dd516
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x10]
xor r9d, r9d
mov r8d, dword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jle 0x1400dd569
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
add rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
jmp 0x1400dd578
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
add rsp, 0x58
ret

Function at 0x1400dde38
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov rcx, qword [rsp + 0x40]
call fcn.1400ddf14
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call fcn.1400b1f9c
cdqe
add rsp, 0x28
ret
Function at 0x1400de604
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, Ordinal_26
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x2d8]
and eax, 1
test eax, eax
je 0x1400de63d
mov rcx, qword [rsp + 0x40]
call fcn.1400f202c
test eax, eax
jne 0x1400de63b
xor al, al
jmp 0x1400de693
jmp 0x1400de691
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
cmp qword [rcx + rax + 0x240], 0xffffffffffffffff
jne 0x1400de65c
xor al, al
jmp 0x1400de693
mov eax, 8
imul rax, rax, 0
mov r9d, 2
mov r8d, 1
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x240]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400de691
xor al, al
jmp 0x1400de693
mov al, 1
add rsp, 0x38
ret
Function at 0x1400dedc4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
cmp dword [0x1401bfe8c], 0
jne 0x1400dee23
mov r9d, 3
mov r8d, 2
xor edx, edx
mov ecx, 6
call fcn.1400d624c
movzx eax, al
test eax, eax
je 0x1400dee19
mov dword [0x1401bfe8c], 2
jmp 0x1400dee23
mov dword [0x1401bfe8c], 1
cmp dword [0x1401bfe8c], 2
jne 0x1400dee2e
jmp 0x1400dee86
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400dee63
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x1400dee63
jmp 0x1400dee86
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret

Function at 0x1400dee94
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400def2e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x80
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.14010c9c8
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, qword [rsp + 0x38]
call fcn.1400dd610
jmp 0x1400def3f
lea rdx, str.TCP_NODELAY_set_n
mov rcx, qword [rsp + 0x38]
call fcn.1400dd610
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0xd8
ret
Function at 0x1400def60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1e8
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x1f0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1f0]
cmp dword [rax + 0xbc], 2
jne 0x1400defa9
jmp 0x1400df1e5
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax + 0x3c4]
shr eax, 1
and eax, 1
test eax, eax
jne 0x1400df1d8
mov rax, qword [rsp + 0x1f0]
mov eax, dword [rax + 0x3c4]
shr eax, 0x1b
and eax, 1
test eax, eax
jne 0x1400df1d8
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1400df046
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x24], eax
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rsp + 0x24]
call fcn.14010c9c8
mov r9, rax
mov r8d, dword [rsp + 0x24]
lea rdx, str.getpeername___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400ddbc8
jmp 0x1400df1e5
mov dword [rsp + 0x20], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14006df60
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400df0bb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rsp + 0x28]
call fcn.14010c9c8
mov r9, rax
mov r8d, dword [rsp + 0x28]
lea rdx, [0x1401b0fb8]
mov rcx, qword [rsp + 0x30]
call fcn.1400ddbc8
jmp 0x1400df1e5
mov rax, qword [rsp + 0x1f0]
add rax, 0x1bc
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x18e
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0xd0]
call fcn.1400df204
movzx eax, al
test eax, eax
jne 0x1400df137
call fcn.1400895ac
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rax]
call fcn.14010c9c8
mov qword [rsp + 0x38], rax
call fcn.1400895ac
mov rcx, qword [rsp + 0x38]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400ddbc8
jmp 0x1400df1e5
mov rax, qword [rsp + 0x1f0]
add rax, 0x18e
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x88
mov r8d, reloc.WLDAP32.dll_Ordinal_46
mov rdx, rax
call fcn.14006dad0
mov rax, qword [rsp + 0x1f0]
add rax, 0x1f0
mov rcx, qword [rsp + 0x1f0]
add rcx, 0x1c0
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.1400df204
movzx eax, al
test eax, eax
jne 0x1400df1d8
call fcn.1400895ac
mov r8d, 0x80
lea rdx, [rsp + 0x150]
mov ecx, dword [rax]
call fcn.14010c9c8
mov qword [rsp + 0x40], rax
call fcn.1400895ac
mov rcx, qword [rsp + 0x40]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x30]
call fcn.1400ddbc8
jmp 0x1400df1e5
mov rcx, qword [rsp + 0x1f0]
call fcn.1400df2c4
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x1e8
ret
Function at 0x1400dfbd8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xe74]
shr eax, 0xd
and eax, 1
test eax, eax
je 0x1400dfc1a
mov dword [rsp + 0x54], 1
jmp 0x1400dfc22
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1400dfc75
mov r8, qword [rsp + 0x98]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400dd610
jmp 0x1400dfd47
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xdfc]
call fcn.1400de018
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0xe00]
call fcn.1400de018
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, ntohl
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400dfd47
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0x98]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov rcx, qword [rsp + 0x90]
call fcn.1400dd610
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x88
ret
Function at 0x1400e4124
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x50], rax
jae 0x1400e41ac
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov al, byte [rax]
mov byte [rsp + 0x20], al
mov cl, byte [rsp + 0x20]
call fcn.1400f51e0
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
jmp 0x1400e4150
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x100
div rcx
mov rax, rdx
add rsp, 0x48
ret
Function at 0x1400f33d4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x24], 2
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x1160]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xb8]
mov dword [rax], 0
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0xa8]
mov ecx, 2
call fcn.14010ccd8
test eax, eax
jle 0x1400f3477
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x20]
mov ecx, 2
call fcn.14010fe0c
jmp 0x1400f3525
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14006df60
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + 0xbc]
mov dword [rsp + 0x40], eax
mov r9d, dword [rsp + 0xb0]
lea r8, [0x1401b12f4]
mov edx, ntohl
lea rcx, [rsp + 0x78]
call fcn.1400f7eec
lea rcx, [rsp + 0x68]
call fcn.14010ae3c
mov rcx, qword [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rcx], xmm0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.1400f36cc
movzx eax, al
test eax, eax
je 0x1400f3512
mov rax, qword [rsp + 0xb8]
mov dword [rax], 1
xor eax, eax
jmp 0x1400f3525
lea rdx, str.getaddrinfo___thread_failed_to_start_n
mov rcx, qword [rsp + 0x28]
call fcn.1400ddbc8
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x98
ret
Function at 0x1400f8ac0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400f8b3b
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x68
ret
Function at 0x14010cee4
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 0
je 0x14010cf02
mov dword [rsp + 0x20], 1
jmp 0x14010cf0a
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret
Function at 0x140110e58
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x170]
call fcn.1400a5654
mov qword [rsp + 0x28], rax
mov eax, 1
imul rax, rax, 0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x104
jae 0x140110ea3
jmp 0x140110ea8
call fcn.14006bb5c
mov rax, qword [rsp + 0x20]
mov byte [rsp + rax + 0x40], 0
cmp qword [rsp + 0x28], 0
je 0x140110ed0
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov eax, 1
imul rax, rax, 0
movsx eax, byte [rsp + rax + 0x40]
test eax, eax
je 0x140110ef4
lea rcx, [rsp + 0x40]
call qword [0x1401afc08]
mov qword [rsp + 0x30], rax
jmp 0x140110efd
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x168
ret
Function at 0x140128ad0
Capabilities:
Check http status code

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x140128b20
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x28]
call fcn.1400ddbc8
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x140128b9e
cmp dword [rsp + 0x48], 0xc8
je 0x140128b40
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov rcx, qword [rsp + 0x28]
call fcn.1400dd610
cmp dword [rsp + 0x50], 0x13
jne 0x140128b57
mov rcx, qword [rsp + 0x40]
call fcn.14012a6f0
mov dword [rsp + 0x20], eax
jmp 0x140128b9a
cmp dword [rsp + 0x50], 0x14
jne 0x140128b6e
mov rcx, qword [rsp + 0x40]
call fcn.14012a464
mov dword [rsp + 0x20], eax
jmp 0x140128b9a
cmp dword [rsp + 0x50], 0x15
jne 0x140128b85
mov rcx, qword [rsp + 0x40]
call fcn.14012a42c
mov dword [rsp + 0x20], eax
jmp 0x140128b9a
cmp dword [rsp + 0x50], 0x16
jne 0x140128b9a
mov rcx, qword [rsp + 0x40]
call fcn.14012a3f4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14012c618
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1401af0e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 0x240]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14012c6a4
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call fcn.1400de508
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x14012c6d6
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x28]
call fcn.1400ddbc8
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x14012c7b0
lea rdx, str.Connection_accepted_from_server_n
mov rcx, qword [rsp + 0x28]
call fcn.1400dd610
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x3c4]
btr eax, 0xb
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x3c4], eax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x38]
mov qword [rcx + rax + 0x240], rdx
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.14010cee4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x70]
mov byte [rcx + rax + 0x260], 1
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x738], 0
je 0x14012c7ae
mov dword [rsp + 0x30], 0
mov dl, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400d6598
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x740]
mov rax, qword [rsp + 0x28]
call qword [rax + 0x738]
mov dword [rsp + 0x30], eax
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1400d6598
cmp dword [rsp + 0x30], 0
je 0x14012c7ae
mov rcx, qword [rsp + 0x70]
call fcn.14012c928
mov eax, Ordinal_46
jmp 0x14012c7b0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006ba30
add rsp, 0x68
ret