joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801e7520
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 r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.1802100d0]
mov rdi, rax
test rax, rax
je 0x1801e759d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1801e75c8
cmp ebx, esi
je 0x1801e75c8
cmp ebx, 0x8000
ja 0x1801e75c8
cmp ebx, esi
jb 0x1801e75c3
mov edx, ebx
mov rcx, rdi
call qword [fcn.1802100d0]
mov rdi, rax
test rax, rax
jne 0x1801e7560
mov rcx, rbp
call qword [fcn.18020f174]
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 r14
ret
mov rax, rdi
jmp 0x1801e75a8
mov rcx, rdi
jmp 0x1801e75a0
jmp 0x1801e7520

Function at 0x1801e75d0
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 r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.1802100d0]
mov rdi, rax
test rax, rax
je 0x1801e759d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1801e75c8
cmp ebx, esi
je 0x1801e75c8
cmp ebx, 0x8000
ja 0x1801e75c8
cmp ebx, esi
jb 0x1801e75c3
mov edx, ebx
mov rcx, rdi
call qword [fcn.1802100d0]
mov rdi, rax
test rax, rax
jne 0x1801e7560
mov rcx, rbp
call qword [fcn.18020f174]
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 r14
ret
mov rax, rdi
jmp 0x1801e75a8
mov rcx, rdi
jmp 0x1801e75a0
jmp 0x1801e7520

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1801e8e71
sub r8d, 1
je 0x1801e8e48
cmp r8d, 1
jne 0x1801e8e85
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1801e8e69
cmp ecx, r8d
jne 0x1801e8e85
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.1801e9010
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1801e8e69
cmp ecx, 1
jne 0x1801e8e85
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.1801e9010
ret
Function at 0x1801e8e90
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1801e8f34
sub r8d, 2
je 0x1801e8eed
cmp r8d, 1
jne 0x1801e8f26
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801e8ee0
cmp ecx, r8d
jne 0x1801e8f26
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801e8f27
cmp ecx, 1
jne 0x1801e8f26
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.1801e9010
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1801e8f19
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1801e9010

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1801e8fed
sub r8d, 1
je 0x1801e8fbe
cmp r8d, 1
jne 0x1801e9004
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801e8fe2
cmp ecx, r8d
jne 0x1801e9004
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.1801e9010
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801e8fe2
cmp ecx, 1
jne 0x1801e9004
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.1801e9010
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1b8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1801e906f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1801cdb70
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1801e8830
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801e9210
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1801e93bf
push rsi
push rdi
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x20], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x1801e925b
mov byte [r14], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e9269
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e9277
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1801e92b0
mov byte [rcx], bpl
inc qword [rbx]
mov rdx, qword [rbx]
mov rbp, qword [rsp + 0x28]
cmp rdx, rbx
jae 0x1801e92c7
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e92d5
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1801e92e7
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e92f5
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e9303
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.1801e8970
mov rcx, qword [r15 + 0x1b8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1801e936b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1801cdb70
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.1801e90a0
mov rcx, qword [r15 + 0x1b8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1801e93b7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1801cdb70
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1801ea650
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rdi, rcx
xor r9d, r9d
mov rbx, qword [rax + 0x428]
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 [rbx + 0x144]
mov rdx, qword [rbx + 0x150]
add r8d, 4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x138], 0
mov dword [rbx + 0x13c], eax
jne 0x1801ea6e7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.18020cf10
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x138], eax
mov edx, dword [rbx + 0x13c]
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xf0], rsi
cmp edx, 4
jge 0x1801ea74b
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1801cdb70
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800b80c0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rax, qword [rbx + 0x150]
movzx ecx, byte [rax]
movzx eax, byte [rax + 1]
shl ecx, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1801ea81d
sub ecx, 1
je 0x1801ea89f
sub ecx, 1
je 0x1801ea7bc
cmp ecx, 1
je 0x1801ea798
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18046c008]
call fcn.1801cdb70
jmp 0x1801ea89f
lea r8d, [rdx - 2]
mov rcx, rbx
mov rdx, qword [rbx + 0x150]
add rdx, 2
call fcn.1801ea2c0
test eax, eax
je 0x1801ea89f
jmp 0x1801ea71a
mov rsi, qword [rbx + 0x150]
lea eax, [rdx - 4]
movsxd rbp, eax
add rsi, 4
mov rax, qword [rbx + 0x150]
mov r8, rbp
xor edx, edx
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call fcn.18020d5b0
test rax, rax
je 0x1801ea89f
sub rax, rsi
cmp rax, rbp
jae 0x1801ea89f
mov r8, rsi
lea rdx, str.TFTP_error:__s
mov rcx, rdi
call fcn.1801cdd00
jmp 0x1801ea89f
cmp edx, 4
jle 0x1801ea89f
mov rax, qword [rbx + 0x150]
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1801ea89f
mov r8, qword [rbx + 0x150]
lea eax, [rdx - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rdi
call fcn.1801cda80
mov esi, eax
test eax, eax
je 0x1801ea87e
mov edx, 5
mov rcx, rbx
call fcn.1801eb2b0
mov eax, esi
jmp 0x1801ea71a
mov eax, dword [rbx + 0x13c]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1801deff0
mov rcx, rdi
call fcn.1801df290
test eax, eax
je 0x1801ea718
mov edx, 5
mov rcx, rbx
call fcn.1801eb2b0
mov eax, Ordinal_46
jmp 0x1801ea71a
Function at 0x1801eb2b0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x1801eb317
sub r8d, 1
je 0x1801eb30e
sub r8d, 1
je 0x1801eb305
lea rdx, [0x18046c008]
mov rcx, r9
cmp r8d, 1
je 0x1801eb2f2
lea r8, str.Internal_state_machine_error
call fcn.1801cdb70
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.1801cdd00
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1801eb420
add rsp, 0x28
jmp fcn.1801ea8d0
add rsp, 0x28
jmp fcn.1801eac10
Function at 0x1801f2900
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 [0x18049d0e0]
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 + 0x1c0]
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 0x1801f297c
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 0x1801f2981
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1801f29a0
lea rdx, str.Error_accept__ing_server_connect
call fcn.1801cdb70
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1801f2a2c
lea rdx, str.Connection_accepted_from_server
call fcn.1801cdd00
mov byte [rsi + 0x33d], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1801fee40
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1801ceaf0
test eax, eax
jne 0x1801f2a2c
cmp qword [rdi + 0x278], 0
je 0x1801f2a2a
mov dl, 1
mov rcx, rdi
call fcn.1801bb9a0
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x280]
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1801bb9a0
test ebx, ebx
je 0x1801f2a2a
mov rdx, rsi
mov rcx, rdi
call fcn.1801f2f10
mov eax, Ordinal_46
jmp 0x1801f2a2c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800b80c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1801f48f0
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 + 0x18]
lea eax, [rdx - 0xc8]
mov rbx, rcx
mov edi, dword [rsi + 0x4ec]
cmp eax, 0x64
jb 0x1801f496d
test edi, edi
jne 0x1801f492e
lea rdx, str.disabling_EPRT_usage
call fcn.1801cdd00
mov byte [rsi + 0x342], dil
inc edi
mov rcx, rbx
cmp edi, 2
jne 0x1801f4957
lea rdx, str.Failed_to_do_PORT
call fcn.1801cdb70
lea eax, [rdi + 0x1c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp 0x1801f5710
lea rdx, str.Connect_data_stream_actively
call fcn.1801cdd00
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x4f8], 0
mov rax, qword [rbx + 0x1b0]
mov rdi, qword [rbx + 0x18]
cmp dword [rax + 0x10], 0
je 0x1801f49b4
or r8, 0xffffffffffffffff
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
xor r9d, r9d
mov rcx, rbx
call fcn.1801dd9a0
jmp 0x1801f49bb
mov byte [rdi + 0x33d], 1
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov byte [rdi + 0x4cd], 1
add rsp, 0x30
pop rdi
ret
Function at 0x1801f4d20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x428
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1801f4d6e
cmp qword [rdx + 0x90], 0
je 0x1801f4d6e
xor r9d, r9d
lea r8, str.REST__d
call fcn.180207a80
test eax, eax
jne 0x1801f4d78
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x4f8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1801f49e0
add rsp, 0x20
pop rbx
ret

Function at 0x1801f53a0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x1801f53dc
lea rdx, str.Couldnt_set_desired_mode
call fcn.1801cdb70
lea eax, [rdi + 0x11]
jmp 0x1801f5436
cmp edx, 0xc8
je 0x1801f53f3
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1801cdd00
cmp esi, 0x13
jne 0x1801f5405
mov rdx, rbp
mov rcx, rbx
call fcn.1801f5060
jmp 0x1801f5432
cmp esi, 0x14
jne 0x1801f5414
mov rcx, rbx
call fcn.1801f3de0
jmp 0x1801f5432
cmp esi, 0x15
jne 0x1801f541f
lea r8d, [rsi - 8]
jmp 0x1801f5428
cmp esi, 0x16
jne 0x1801f5434
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1801f4b00
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801fc320
Capabilities:
Convert ip address from string

Disassembly:
push rsi
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rdx]
mov r14, r8
mov rsi, rdx
mov r13, rcx
test al, al
jne 0x1801fc356
mov eax, recvfrom
jmp 0x1801fc505
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
cmp al, 0x5b
jne 0x1801fc51f
cmp r14, 4
jb 0x1801fc476
inc rsi
sub r14, 2
cmp byte [r14 + rsi], 0x5d
lea rdi, [r14 + rsi]
jne 0x1801fc476
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
call fcn.180227220
cmp r14, rax
je 0x1801fc45b
cmp byte [rsi + rax], 0x25
lea rdi, [rsi + rax]
mov r14, rax
jne 0x1801fc476
xor ebp, ebp
lea rdx, [0x18040742c]
lea rcx, [rdi + 1]
lea rbx, [rdi + 1]
lea r8d, [rbp + 2]
call fcn.180210460
test eax, eax
jne 0x1801fc3f1
movzx eax, byte [rdi + 3]
lea rcx, [rdi + 3]
test al, al
je 0x1801fc3f1
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x1801fc47d
mov rcx, rbp
nop
cmp al, 0x5d
je 0x1801fc41d
cmp rcx, 0xf
jge 0x1801fc41d
inc rbx
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x1801fc400
test ebp, ebp
je 0x1801fc47d
cmp byte [rbx], 0x5d
jne 0x1801fc47d
movsxd rax, ebp
cmp rax, 0x10
jae 0x1801fc53a
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x1801c19f5.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1801fc456
mov eax, 7
jmp 0x1801fc4eb
mov word [rdi], 0x5d
lea r8, [rsp + 0x20]
mov byte [rdi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x1801fc484
mov eax, reloc.WLDAP32.dll_Ordinal_22
jmp 0x1801fc4eb
mov eax, 3
jmp 0x1801fc4eb
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [r9 - 0x17]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1801fc4e6
lea rax, [rsp + 0x30]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x1801fc4b0
cmp rdx, r14
jae 0x1801fc4e6
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1801fc4d0
lea rdi, [rdx + rsi]
mov byte [rdi + 1], al
mov byte [rdi], 0x5d
xor eax, eax
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x90
pop r14
pop r13
pop rsi
ret
lea rdx, str.__r_n_t_:______________
mov rcx, rsi
call fcn.180213ff8
cmp r14, rax
je 0x1801fc4e9
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x1801fc4eb
call fcn.1800b84fc
int3
Function at 0x1801fdd70
Capabilities:
Convert ip address from string

Disassembly:
mov r11, rsp
push rbx
push r14
sub rsp, 0x158
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rdx
mov r14, rcx
test rcx, rcx
je 0x1801fe00e
movzx ecx, byte [rcx]
test cl, cl
je 0x1801fe00e
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r15
test rdx, rdx
je 0x1801fdfc5
cmp byte [rdx], 0
je 0x1801fdfc5
movzx eax, byte [0x18032b358]
xor r15d, r15d
cmp al, byte [rdx]
jne 0x1801fdded
movzx eax, byte [0x18032b359]
cmp al, byte [rdx + 1]
je 0x1801fe00a
cmp cl, 0x5b
jne 0x1801fde49
mov edx, 0x5d
mov rcx, r14
call fcn.18020d5cc
mov rsi, rax
test rax, rax
je 0x1801fdfc5
inc r14
sub rsi, r14
cmp rsi, 0x80
jae 0x1801fdfc5
mov r8, rsi
lea rcx, [rsp + 0xb0]
mov rdx, r14
call fcn.18020cf10
mov byte [rsp + rsi + 0xb0], r15b
lea r14, [rsp + 0xb0]
mov r15d, 2
jmp 0x1801fde81
or rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [r14 + rsi], r15b
jne 0x1801fde50
lea r8, [rsp + 0x20]
mov rdx, r14
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fde76
mov r15d, eax
jmp 0x1801fde81
cmp byte [r14 + rsi - 1], 0x2e
jne 0x1801fde81
dec rsi
cmp byte [rbx], 0
je 0x1801fdfc5
movabs r12, 0x100100000200
movzx eax, byte [rbx]
xor edi, edi
test al, al
je 0x1801fdeb3
nop dword [rax]
cmp al, 0x20
je 0x1801fdea8
cmp al, 9
jne 0x1801fdeb3
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x1801fdea0
movzx eax, byte [rbx]
mov rcx, rbx
test al, al
je 0x1801fdfaf
cmp al, 0x2c
ja 0x1801fdecf
movsx rax, al
bt r12, rax
jb 0x1801fdedd
movzx eax, byte [rbx + 1]
inc rbx
inc rdi
test al, al
jne 0x1801fdec1
test rdi, rdi
je 0x1801fdfaf
test r15d, r15d
je 0x1801fdf51
xor ebp, ebp
cmp rdi, 0x80
jae 0x1801fdfaf
mov rdx, rcx
mov r8, rdi
lea rcx, [rsp + 0x30]
call fcn.18020cf10
lea edx, [rbp + 0x2f]
mov byte [rsp + rdi + 0x30], bpl
lea rcx, [rsp + 0x30]
call fcn.18020d5cc
mov rdi, rax
test rax, rax
je 0x1801fdf32
lea rcx, [rax + 1]
call fcn.1802156bc
mov ebp, eax
mov byte [rdi], 0
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, r14
cmp r15d, 2
jne 0x1801fdf4a
call fcn.1801fe0f0
jmp 0x1801fdfab
call fcn.1801fe020
jmp 0x1801fdfab
cmp byte [rcx + rdi - 1], 0x2e
lea rax, [rdi - 1]
cmovne rax, rdi
mov r8, rax
test rax, rax
je 0x1801fdf72
cmp byte [rcx], 0x2e
jne 0x1801fdf72
inc rcx
lea r8, [rax - 1]
cmp r8, rsi
jne 0x1801fdf89
mov r8, rsi
mov rdx, r14
call sym.gcm64.dll_curl_strnequal
test eax, eax
setne al
jmp 0x1801fdfab
jae 0x1801fdfaf
mov rax, r14
sub rax, r8
cmp byte [rax + rsi - 1], 0x2e
lea rdx, [rax + rsi]
jne 0x1801fdfa9
call sym.gcm64.dll_curl_strnequal
test eax, eax
je 0x1801fdfa9
mov al, 1
jmp 0x1801fdfab
xor al, al
test al, al
jne 0x1801fe00a
cmp byte [rbx], 0x2c
jne 0x1801fdfbc
inc rbx
cmp byte [rbx], 0x2c
je 0x1801fdfb4
cmp byte [rbx], 0
jne 0x1801fde94
xor al, al
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
mov r15, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800b80c0
add rsp, 0x158
pop r14
pop rbx
ret
mov al, 1
jmp 0x1801fdfc7
xor al, al
jmp 0x1801fdfef
Function at 0x1801fe020
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
mov dword [rsp + 0x40], ebx
cmp r8d, 0x20
jbe 0x1801fe057
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rcx
lea r8, [rsp + 0x48]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fe045
lea r8, [rsp + 0x40]
mov rdx, rsi
lea ecx, [rax + 1]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fe045
test edi, 0xffffffdf
je 0x1801fe0c6
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_htonl]
or edx, 0xffffffff
mov ecx, reloc.WLDAP32.dll_Ordinal_32
sub ecx, edi
xor eax, ebx
shl edx, cl
test edx, eax
sete al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rsp + 0x40]
cmp dword [rsp + 0x48], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
sete al
add rsp, 0x20
pop rdi
ret

Function at 0x1801fe0f0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r8d, r8d
mov rsi, rdx
mov rdx, rcx
mov edi, 0x80
cmovne edi, r8d
mov ecx, reloc.WS2_32.dll_socket
mov ebx, edi
lea r8, [rsp + 0x30]
shr ebx, 3
and edi, 7
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fe15e
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rax + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fe15e
cmp ebx, 0x10
ja 0x1801fe15e
jne 0x1801fe17d
test edi, edi
je 0x1801fe181
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b80c0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
test ebx, ebx
je 0x1801fe197
mov r8d, ebx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.18020ce30
test eax, eax
jne 0x1801fe15e
test edi, edi
je 0x1801fe1bf
movzx eax, byte [rsp + rbx + 0x30]
mov edx, 0xff
movzx r8d, byte [rsp + rbx + 0x20]
xor r8d, eax
mov eax, 8
sub eax, edi
movzx ecx, al
shl edx, cl
test edx, r8d
je 0x1801fe15e
mov al, 1
jmp 0x1801fe160