joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180112a20
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1801d5600]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x5d0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x180112ab7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x180112b1d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1800fa080
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18013fa70
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x180112b53.1
movsxd rax, ecx
lea r9, [0x180000000]
mov ecx, dword [r9 + rax*4 + 0x112c6c]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x180112b53.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x180112b53.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1800fa210
mov ebx, eax
test eax, eax
je 0x180112bb2
mov edx, 5
mov rcx, rdi
call fcn.180113680
mov eax, ebx
jmp 0x180112aec
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.180109590
jmp case.0x180112b53.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1801136f0
cmp rax, rbx
jae case.0x180112b53.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.1800fa170
jmp case.0x180112b53.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.180112770
test eax, eax
je case.0x180112b53.4
jmp 0x180112aec
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1801ae620]
call fcn.1800fa080
mov rcx, rsi
call fcn.180109a00
test eax, eax
je 0x180112aea
mov edx, 5
mov rcx, rdi
call fcn.180113680
mov eax, Ordinal_46
jmp 0x180112aec
Function at 0x18011aef0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1801d5600]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x1b0]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18011af6c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x18011af71
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x18011af90
lea rdx, str.Error_accept__ing_server_connect
call fcn.1800fa080
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x18011b01c
lea rdx, str.Connection_accepted_from_server
call fcn.1800fa170
mov byte [rsi + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1801316f0
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.180127bc0
test eax, eax
jne 0x18011b01c
cmp qword [rdi + 0x260], 0
je 0x18011b01a
mov dl, 1
mov rcx, rdi
call fcn.1800e88d0
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x268]
call qword [rdi + 0x260]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1800e88d0
test ebx, ebx
je 0x18011b01a
mov rdx, rsi
mov rcx, rdi
call fcn.18011b500
mov eax, Ordinal_46
jmp 0x18011b01c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18013fa70
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x18011cae0
mov byte [rdx + 0x6b6], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.18011cbd0
cmp byte [rcx + 0xa86], 0
je 0x18011caf5
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.18011d5f0
cmp byte [rcx + 0xa89], 0
je 0x18011cb73
mov r9, qword [rdx + 0x660]
test r9, r9
jne 0x18011cb38
mov r9, qword [rcx + 0x740]
test r9, r9
jne 0x18011cb2f
cmp byte [rbx + 0x12ff], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x18011cb4f
cmp byte [rcx + 0xa96], 0
lea r8, str.PRET_STOR__s
jne 0x18011cb4f
lea r8, str.PRET_RETR__s
add rdx, 0x5d0
mov rcx, rbx
call fcn.180136760
test eax, eax
jne 0x18011cb7d
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6b6], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.18011d540
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
add rdx, 0x5d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x18011ceab
cmp qword [rdx + 0x90], 0
je 0x18011ceab
xor r9d, r9d
lea r8, str.REST__d
call fcn.180136760
test eax, eax
jne 0x18011ceb5
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6b6], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.18011cab0
add rsp, 0x20
pop rbx
ret
Function at 0x18011d170
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x18011d1b0
lea rdx, str.Couldnt_set_desired_mode
call fcn.1800fa080
lea eax, [rdi + 0x11]
jmp 0x18011d315
cmp edx, 0xc8
je 0x18011d1c7
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1800fa170
cmp sil, 0x13
jne 0x18011d1dd
mov rdx, rbp
mov rcx, rbx
call fcn.18011d070
jmp 0x18011d311
cmp sil, 0x14
jne 0x18011d2f3
cmp byte [rbx + 0x6e0], 2
mov rbp, qword [rbx + 0x18]
jne 0x18011d25b
mov rax, qword [rbx + 0x1a0]
mov rcx, qword [rax]
test rcx, rcx
je 0x18011d25b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.1800e34a0
test eax, eax
jne 0x18011d311
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x18011d250
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x18011d25b
mov rcx, qword [rsp + 0x40]
call qword [case.0x1800f941f.0]
mov rdx, qword [rbx + 0x740]
test rdx, rdx
jne 0x18011d280
cmp byte [rbx + 0x12ff], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x18017ab70]
test rdi, rdi
mov r9, r8
lea rax, [0x1801a7158]
cmovne r9, rdi
lea rcx, [0x18015298c]
cmovne r8, rax
call fcn.1800fe280
mov rcx, rdi
mov rsi, rax
call qword [case.0x1800f941f.0]
test rsi, rsi
jne 0x18011d2be
lea edi, [rsi + 0x1b]
jmp 0x18011d313
lea rdx, [rbp + 0x5d0]
mov r9, rsi
lea r8, [0x1801ae620]
mov rcx, rbx
call fcn.180136760
mov rcx, rsi
mov edi, eax
call qword [case.0x1800f941f.0]
test edi, edi
jne 0x18011d313
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6b6], 0x1f
jmp 0x18011d313
cmp sil, 0x15
jne 0x18011d2fe
mov r8b, reloc.WS2_32.dll_listen
jmp 0x18011d307
cmp sil, 0x16
jne 0x18011d313
mov r8b, recv
mov dl, 1
mov rcx, rbx
call fcn.18011cbd0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180127e00
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1801dde78]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x180127e64
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.18012d5c0
test al, al
je 0x180127e58
mov dword [0x1801dde78], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1801dde78], 1
jmp 0x180127e69
cmp eax, 2
je 0x180127ebb
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x180127e9a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x180127ebb
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x180128a70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1801d5600]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rsi, rdx
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180128b26
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1800e43c0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800fa080
mov eax, 2
jmp 0x180128b98
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x104]
lea r8, [rbx + 0xd4]
lea rcx, [rsp + 0x30]
call fcn.1800fae50
test al, al
jne 0x180128b96
mov qword [rsp + 0x1e0], rdi
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov ebx, dword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1800e43c0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800fa080
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x180128b98
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.18013fa70
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x18012a820
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov dword [rsp + 0x58], 0
mov rsi, rdx
lea rbx, [rdx + 0x148]
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rdi, r9
call fcn.1800ff9a0
test eax, eax
je 0x18012a86d
mov ebp, dword [rbx]
cmp ebp, 0x191
je 0x18012a890
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.1800ff9a0
test eax, eax
je 0x18012a8d6
mov ebp, dword [rbx]
cmp ebp, 0x197
jne 0x18012a8d6
mov rcx, rdi
call fcn.1801056f0
mov rbx, rax
test rax, rax
jne 0x18012a8a8
lea eax, [rbx + 0x1b]
jmp 0x18012aa39
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.180107350
mov rcx, rbx
mov edi, eax
call qword [case.0x1800f941f.0]
test edi, edi
je 0x18012aa37
mov eax, edi
jmp 0x18012aa39
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.1800ff9a0
test eax, eax
je 0x18012a92d
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18012a912
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.1800fa170
jmp 0x18012aa37
xor edx, edx
lea r9, [r14 + 0x298]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.18010ad70
jmp 0x18012aa37
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rdi
call fcn.180105620
test al, al
jne 0x18012aa2f
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.1800ff9a0
test eax, eax
je 0x18012a9e0
mov r8d, dword [rbx]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x18012a996
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rsi
call fcn.1800fa170
jmp 0x18012aa37
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.180105620
test al, al
je 0x18012aa37
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.1800fa170
mov rcx, rsi
mov byte [r14 + 0x2a4], 1
call fcn.18012db20
jmp 0x18012aa37
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.180105620
test al, al
jne 0x18012aa2f
mov r9, rbx
lea r8, [rsp + 0x58]
lea rdx, str.HTTP_1._d__d
mov rcx, rdi
call fcn.180043bf0
cmp eax, 2
jne 0x18012aa37
mov eax, dword [rbx]
mov dword [rsi + 0x135c], eax
jmp 0x18012aa37
mov byte [r14 + 0x2a5], 1
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18013a1b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x18013a1f5
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x18013a240
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x18013a2a2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x18013a260
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x18013a2e3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x18015d5d1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x18015d5d2]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18013a2b0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x18013a300
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1800e80b0
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
je 0x18013a4a6
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x18013a390
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x18013a3f2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x18013a3b0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x18013a433
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x18015d5d1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x18015d5d2]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18013a400
mov rcx, qword [rsp + 0x70]
call fcn.1800e80b0
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x18013a462
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [case.0x1800f941f.0]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, reloc.WLDAP32.dll_Ordinal_27
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x18013bcb0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x18013bd15
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x18013bcc0
ret
Function at 0x18013bfa0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18013c1c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18013c0a7
mov rax, qword [0x1801d55a8]
cmp qword [rsp + 0x20], rax
jb 0x18013c004
mov rax, qword [0x1801d55b0]
cmp qword [rsp + 0x20], rax
ja 0x18013c004
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18013bfc6
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18013c033
jmp 0x18013c0a7
cmp dword [rsp + 0x50], 0x10000
jne 0x18013c08a
cmp qword [rsp + 0x48], 0x10000
jb 0x18013c08a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013c078
mov rax, qword [rsp + 0x28]
jmp 0x18013c0a9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18013c0a2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18013c1c0
mov qword [rsp + 0x20], rax
jmp 0x18013bfc6
xor eax, eax
add rsp, 0x68
ret

Function at 0x18013c0b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18013c200
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18013c1b3
mov rax, qword [0x1801d55a8]
cmp qword [rsp + 0x20], rax
jb 0x18013c10b
mov rax, qword [0x1801d55b0]
cmp qword [rsp + 0x20], rax
ja 0x18013c10b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18013c0cd
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18013c13a
jmp 0x18013c1b3
cmp dword [rsp + 0x50], 0x10000
jne 0x18013c191
cmp qword [rsp + 0x48], 0x10000
jb 0x18013c191
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013c17f
mov rax, qword [rsp + 0x28]
jmp 0x18013c1b5
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18013c1ae
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18013c200
mov qword [rsp + 0x20], rax
jmp 0x18013c0cd
xor eax, eax
add rsp, 0x68
ret
Function at 0x18013c250
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18013c7e0
mov qword [rsp + 0x28], 0
cmp qword [0x1801ddea0], 0
jne 0x18013c298
cmp qword [0x1801dde98], 0
je 0x18013c298
mov rax, qword [0x1801dde98]
mov qword [0x1801ddea0], rax
cmp qword [0x1801ddea0], 0
je 0x18013c33e
mov rax, qword [0x1801ddea0]
cmp qword [rax + 0x10], 0
je 0x18013c33e
mov rax, qword [0x1801ddea0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18013c33e
mov rax, qword [0x1801ddea0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18013c33e
mov rax, qword [0x1801ddea0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18013c304
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18013c30b
xor eax, eax
jmp 0x18013c4b9
mov rax, qword [0x1801ddea0]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18013c4b9
mov rax, qword [0x1801dde98]
mov qword [0x1801ddea0], rax
jmp 0x18013c360
mov rax, qword [0x1801ddea0]
mov rax, qword [rax + 8]
mov qword [0x1801ddea0], rax
cmp qword [0x1801ddea0], 0
je 0x18013c3ad
cmp qword [0x1801ddea0], 0
je 0x18013c3ab
mov rax, qword [0x1801ddea0]
cmp qword [rax + 0x10], 0
je 0x18013c3ab
mov rax, qword [0x1801ddea0]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18013c3ab
mov rax, qword [0x1801ddea0]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18013c3ab
jmp 0x18013c2dc
jmp 0x18013c34e
mov rcx, qword [rsp + 0x60]
call fcn.18013e660
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18013c4c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18013c4b7
mov rax, qword [rsp + 0x48]
mov qword [0x1801ddea0], rax
mov rax, qword [0x1801ddea0]
mov dword [rax], 0x52727464
mov rax, qword [0x1801ddea0]
mov qword [rax + 0x10], 0
mov rax, qword [0x1801ddea0]
mov rcx, qword [0x1801dde98]
mov qword [rax + 8], rcx
mov rax, qword [0x1801ddea0]
mov qword [0x1801dde98], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801ddea0]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18013c468
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18013c4a2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18013c45e
mov rax, qword [0x1801ddea0]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18013c2dc
xor eax, eax
add rsp, 0x58
ret