joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800855f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [rcx + 0x32c], 3
mov rdi, rdx
mov rbx, rcx
jne 0x180085823
cmp dword [rcx + 0x688], 0
jne 0x180085823
cmp dword [rcx + 0x6d4], 0
jne 0x180085823
mov rsi, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rdi
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x18008569d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov ebx, eax
call fcn.180070a50
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180083310
jmp 0x18008582b
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x24], 0x80
call fcn.1800cc600
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180085705
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov ebx, eax
call fcn.180070a50
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180083310
jmp 0x18008582b
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x42c]
lea r8, [rbx + 0x3fe]
lea rcx, [rsp + 0xb0]
call fcn.180085560
test eax, eax
jne 0x180085767
call fcn.1800cca74
mov rbx, rax
call fcn.1800cca74
mov ecx, dword [rbx]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.180070a50
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180083310
jmp 0x18008582b
mov rax, qword [rbx + 0x3fe]
mov edx, dword [rsp + 0x24]
lea r9, [rbx + 0x460]
mov qword [rbx + 0x2f8], rax
mov rax, qword [rbx + 0x406]
lea r8, [rbx + 0x430]
mov qword [rbx + 0x300], rax
mov rax, qword [rbx + 0x40e]
lea rcx, [rsp + 0x30]
mov qword [rbx + 0x308], rax
mov rax, qword [rbx + 0x416]
mov qword [rbx + 0x310], rax
mov rax, qword [rbx + 0x41e]
mov qword [rbx + 0x318], rax
mov eax, dword [rbx + 0x426]
mov dword [rbx + 0x320], eax
movzx eax, word [rbx + 0x42a]
mov word [rbx + 0x324], ax
call fcn.180085560
test eax, eax
jne 0x180085823
call fcn.1800cca74
mov rbx, rax
call fcn.1800cca74
mov ecx, dword [rbx]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.180070a50
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180083310
jmp 0x18008582b
mov rcx, rbx
call fcn.180085440
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800c9b90
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800859d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
lea r9, [rsp + 0x30]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180085a46
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.1800831b0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x150
pop rbx
ret

Function at 0x180085a60
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x180161310]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x180085abd
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.18007e700
test eax, eax
je 0x180085ab1
mov dword [0x180161310], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x180161310], 1
jmp 0x180085ac2
cmp eax, 2
je 0x180085b14
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x180085af3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x180085b14
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x558], 0
je 0x180085c1d
call fcn.180079f90
test eax, eax
jne 0x180085c48
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x180085c16
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x180085c48
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x18008ee00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0xd0
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa58]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r12, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x18008ee97
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1800cbb10
mov r11d, dword [rsp + 0x30]
mov dword [rbx + 0x150], r11d
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x18008eef8
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.180083310
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0xd0
pop r12
pop rdi
pop rbx
ret
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 1]
or edx, eax
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x18008efd0
sub edx, 1
je 0x18008f04e
sub edx, 1
je 0x18008ef6d
cmp edx, 1
je 0x18008ef49
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x180131e10]
mov rcx, rdi
call fcn.180083310
jmp 0x18008f04e
mov rdx, qword [rbx + 0x168]
add r8d, 0xfffffffe
mov rcx, rbx
add rdx, 2
call fcn.18008d870
test eax, eax
je 0x18008f04e
jmp 0x18008eecc
mov rdx, qword [rbx + 0x168]
mov rsi, qword [rbx + 0x168]
lea eax, [r8 - 4]
movsxd rbp, eax
movzx eax, byte [rdx + 2]
add rsi, 4
shl ax, 8
mov r8, rbp
movzx ecx, ax
movzx eax, byte [rdx + 3]
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call fcn.1800cab08
test rax, rax
je 0x18008f04e
sub rax, rsi
cmp rax, rbp
jae 0x18008f04e
lea rdx, str.TFTP_error:__s_n
mov r8, rsi
mov rcx, rdi
call fcn.1800831b0
jmp 0x18008f04e
cmp r8d, 4
jle 0x18008f04e
mov rcx, qword [rbx + 0x168]
movzx eax, byte [rcx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [rcx + 3]
or edx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, edx
jne 0x18008f04e
lea eax, [r8 - 4]
lea r8, [rcx + 4]
mov edx, 1
movsxd r9, eax
mov rcx, r12
call fcn.180083890
mov esi, eax
test eax, eax
je 0x18008f02d
mov edx, 5
mov rcx, rbx
call fcn.18008ed80
mov eax, esi
jmp 0x18008eecc
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800a6f40
mov rcx, r12
call fcn.1800a7700
test eax, eax
je 0x18008eeca
mov edx, 5
mov rcx, rbx
call fcn.18008ed80
mov eax, Ordinal_45
jmp 0x18008eecc
Function at 0x18008f350
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18008f396
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.180083310
jmp 0x18008f3c5
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx r11d, word [rsp + 0x20]
cmp r11b, 2
jne 0x18008f3b6
shr r11w, 8
test r11b, r11b
jne 0x18008f3b6
xor eax, eax
jmp 0x18008f3ca
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.180083310
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x1d0
pop rbx
ret

Function at 0x18008f490
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp dword [rcx + 0x1018], 0
movsxd r10, r9d
mov r11, rcx
je 0x18008f5bd
cmp r8d, 0xff
jne 0x18008f4f4
lea eax, [r10 - 0xec]
mov r8, rdx
cmp eax, 0x13
ja 0x18008f4e1
lea rcx, [0x180000000]
lea rdx, str._s_IAC__s_n
mov r9, qword [rcx + r10*8 + 0x113050]
mov rcx, r11
add rsp, 0x38
jmp fcn.1800831b0
lea rdx, str._s_IAC__d_n
mov r9d, r10d
add rsp, 0x38
jmp fcn.1800831b0
cmp r8d, 0xfb
jne 0x18008f506
lea r9, str.WILL
jmp 0x18008f544
cmp r8d, 0xfc
jne 0x18008f518
lea r9, str.WONT
jmp 0x18008f544
cmp r8d, 0xfd
jne 0x18008f52a
lea r9, [0x180113444]
jmp 0x18008f544
xor r9d, r9d
cmp r8d, 0xfe
lea rax, str.DONT
cmove r9, rax
test r9, r9
je 0x18008f5a6
cmp r10d, 0x27
jg 0x18008f57a
lea rcx, [0x180000000]
mov rcx, qword [rcx + r10*8 + 0x113670]
test rcx, rcx
jne 0x18008f58a
mov r8, rdx
lea rdx, str._s__s__d_n
mov rcx, r11
mov dword [rsp + 0x20], r10d
call fcn.1800831b0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x18008f55e
lea rcx, str.EXOPL
mov r8, rdx
mov qword [rsp + 0x20], rcx
lea rdx, str._s__s__s_n
mov rcx, r11
call fcn.1800831b0
add rsp, 0x38
ret
mov r9d, r8d
mov r8, rdx
lea rdx, str._s__d__d_n
mov dword [rsp + 0x20], r10d
call fcn.1800831b0
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x4c0]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x11], dl
mov byte [rax + 0x12], r8b
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18008f62e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180083310
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.18008f490
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18008f730
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
test r10d, r10d
je 0x18008f7eb
sub r10d, 2
je 0x18008f79c
cmp r10d, 1
jne 0x18008f7d5
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x18008f78b
cmp ecx, r10d
jne 0x18008f7d5
mov dword [r8 + r9*4 + 0xc08], r10d
mov dword [r8 + r9*4 + 0x1008], 0
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 0
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x18008f7da
cmp ecx, 1
jne 0x18008f7d5
mov dword [r8 + r9*4 + 0xc08], 3
mov dword [r8 + r9*4 + 0x1008], 0
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
call fcn.18008f5d0
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 1
add rsp, 0x28
ret
cmp dword [r8 + r9*4 + 0x1408], 1
jne 0x18008f7c8
mov dword [r8 + r9*4 + 0xc08], 1
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.18008f5d0

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
sub r10d, 1
je 0x18008f8c8
sub r10d, 1
je 0x18008f8a0
cmp r10d, 1
jne 0x18008f8df
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x18008f891
cmp ecx, r10d
jne 0x18008f8df
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x1008], eax
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.18008f5d0
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x18008f891
cmp ecx, 1
jne 0x18008f8df
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov dword [r8 + r9*4 + 0x1008], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov r8d, edx
mov edx, 0xfe
call fcn.18008f5d0
add rsp, 0x28
ret

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 8]
sub r10d, 1
je 0x18008fa44
sub r10d, 1
je 0x18008fa1f
cmp r10d, 1
jne 0x18008fa58
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x18008fa13
cmp ecx, r10d
jne 0x18008fa58
xor eax, eax
mov dword [r8 + r9*4 + 8], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x408], eax
mov r8d, edx
mov edx, 0xfb
add rsp, 0x28
jmp fcn.18008f5d0
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x18008fa13
cmp ecx, 1
jne 0x18008fa58
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov dword [r8 + r9*4 + 0x408], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov r8d, edx
mov edx, 0xfc
call fcn.18008f5d0
add rsp, 0x28
ret
Function at 0x180090780
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x18009092e
push rbp
push rdi
push r13
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x1a8]
mov r13, rcx
mov qword [rsp + 0x20], r12
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1800907c9
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800907d7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800907e5
mov byte [rax], Ordinal_32
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r12d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r11d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x18009081f
mov byte [rcx], r12b
inc qword [rbx]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x180090836
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180090844
mov byte [rax], r11b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x180090856
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180090864
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180090872
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.18008fa60
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1800908da
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180083310
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r13
call fcn.180090480
mov rcx, qword [r13 + 0x4c0]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180090926
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180083310
add rsp, 0x30
pop r13
pop rdi
pop rbp
repz ret
Function at 0x1800977e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
mov rsi, qword [rcx]
mov rdi, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180097857
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.180085c60
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x18009787f
lea rdx, str.Error_accept__ing_server_connect
call fcn.180083310
lea eax, [rbx + 0x1f]
jmp 0x180097901
lea rdx, str.Connection_accepted_from_server_n
call fcn.1800831b0
mov edx, 1
mov rcx, rbx
mov dword [rdi + 0x6a8], 0
mov qword [rdi + 0x4c8], rbx
call fcn.1800b4110
mov dword [rdi + 0x6f0], 1
cmp qword [rsi + 0x728], 0
je 0x1800978ff
mov edx, 1
mov rcx, rsi
call fcn.180080580
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.180080580
test ebx, ebx
je 0x1800978ff
mov rcx, rdi
call fcn.1800976e0
mov eax, Ordinal_45
jmp 0x180097901
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800c9b90
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18009b940
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x51eb851f
mov edi, r8d
mov r8d, edx
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [rcx]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x18009b992
lea rdx, str.Couldnt_set_desired_mode
call fcn.180083310
lea eax, [rbx + 0x11]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r8d, 0xc8
je 0x18009b9a7
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1800831b0
cmp edi, 0x13
jne 0x18009b9b6
mov rcx, rsi
call fcn.18009b890
jmp 0x18009b9e6
cmp edi, 0x14
jne 0x18009b9c5
mov rcx, rsi
call fcn.180098540
jmp 0x18009b9e6
cmp edi, 0x15
jne 0x18009b9d0
lea r8d, [rdi - 8]
jmp 0x18009b9d9
cmp edi, 0x16
jne 0x18009b9e8
lea r8d, [rdi - 8]
mov edx, 1
mov rcx, rsi
call fcn.18009aa70
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18009c1b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [rcx]
mov ebx, dword [rcx + 0xb0c]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov rdi, rcx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 2
je 0x18009c23c
test ebx, ebx
jne 0x18009c1fa
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.1800831b0
mov dword [rdi + 0x6c0], ebx
inc ebx
cmp ebx, 2
jne 0x18009c223
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.180083310
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp 0x180097c10
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.1800831b0
mov dword [rdi + 0xb18], 0
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x1a8]
cmp dword [rax + 0x10], 0
je 0x18009c27e
or r8, 0xffffffffffffffff
xor r9d, r9d
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
call fcn.1800aa1f0
jmp 0x18009c288
mov dword [rdi + 0x6a8], 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov dword [rdi + 0xaec], 1
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1800a4a80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov r12, rcx
mov ebx, 1
xor ecx, ecx
mov rdx, rbx
xor ebp, ebp
call qword [fcn.1800cc408]
mov rdi, rax
test rax, rax
je 0x1800a4afe
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r12
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1800a4b29
cmp ebx, esi
je 0x1800a4b29
cmp ebx, 0x8000
ja 0x1800a4b29
cmp ebx, esi
jb 0x1800a4b24
mov rdx, rbx
mov rcx, rdi
call qword [fcn.1800cc408]
mov rdi, rax
test rax, rax
jne 0x1800a4ac0
mov rcx, rbp
call qword [fcn.1800cb340]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov rax, rdi
jmp 0x1800a4b09
mov rcx, rdi
jmp 0x1800a4b01
jmp 0x1800a4a80

Function at 0x1800a4b30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov r12, rcx
mov ebx, 1
xor ecx, ecx
mov rdx, rbx
xor ebp, ebp
call qword [fcn.1800cc408]
mov rdi, rax
test rax, rax
je 0x1800a4afe
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r12
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1800a4b29
cmp ebx, esi
je 0x1800a4b29
cmp ebx, 0x8000
ja 0x1800a4b29
cmp ebx, esi
jb 0x1800a4b24
mov rdx, rbx
mov rcx, rdi
call qword [fcn.1800cc408]
mov rdi, rax
test rax, rax
jne 0x1800a4ac0
mov rcx, rbp
call qword [fcn.1800cb340]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov rax, rdi
jmp 0x1800a4b09
mov rcx, rdi
jmp 0x1800a4b01
jmp 0x1800a4a80
Function at 0x1800a6330
Capabilities:
Resolve dns

Disassembly:
push rbx
push r13
push r14
push r15
sub rsp, 0x28
mov r15, r9
xor ebx, ebx
xor r13d, r13d
mov qword [r9], rbx
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1800a64c0
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1800a64a1
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], r12
nop
mov rdi, qword [rsi + 0x18]
test rdi, rdi
je 0x1800a6399
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
mov r12, rcx
jmp 0x1800a639c
xor r12d, r12d
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1800a63a9
lea ebp, [rax + 0xe]
jmp 0x1800a63b5
cmp eax, 0x17
jne 0x1800a6447
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1800a6447
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1800a6447
cmp rax, rbp
jb 0x1800a6447
lea rcx, [r12 + rbp + 0x30]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1800a6456
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
xor eax, eax
lea rcx, [rdi + 0x30]
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rax
mov rdx, qword [rsi + 0x20]
call fcn.1800cbb10
test r12, r12
je 0x1800a6434
mov rcx, qword [rdi + 0x20]
mov r8, r12
add rcx, rbp
mov qword [rdi + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1800cbb10
test rbx, rbx
cmove rbx, rdi
test r13, r13
je 0x1800a6444
mov qword [r13 + 0x28], rdi
mov r13, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1800a6380
jmp 0x1800a645c
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1800a6476
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1800a649c
test rbx, rbx
je 0x1800a6495
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1800cb340]
mov rbx, rdi
test rdi, rdi
jne 0x1800a6480
xor eax, eax
mov rbx, rax
jmp 0x1800a64b0
test rbx, rbx
jne 0x1800a64b0
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r15], rbx
mov eax, r14d
add rsp, 0x28
pop r15
pop r14
pop r13
pop rbx
ret