joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801d9e80
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov esi, ecx
mov rbx, rdx
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1801d9ea0
add rcx, 0x4d
mov edx, 1
call qword [fcn.180216a70]
mov rdi, rax
test rax, rax
je 0x1801d9f7c
mov qword [rsp + 0x90], rbp
movzx ecx, si
mov ebp, reloc.WS2_32.dll_socket
mov word [rsp + 0x20], bp
call qword [sym.imp.WS2_32.dll_htons]
xor esi, esi
lea r8, [rsp + 0x40]
lea rdx, [0x180404d78]
mov word [rsp + 0x22], ax
mov ecx, ebp
mov dword [rsp + 0x24], esi
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x1801d9f07
xor eax, eax
jmp 0x1801d9f74
movups xmm1, xmmword [rsp + 0x40]
lea rax, [rdi + 0x30]
mov dword [rdi], esi
mov qword [rdi + 0x20], rax
mov dword [rdi + 4], ebp
mov dword [rdi + 8], 1
mov dword [rdi + 0xc], 6
mov dword [rdi + 0x10], Ordinal_32
mov qword [rdi + 0x28], rsi
movups xmmword [rsp + 0x28], xmm1
movups xmm0, xmmword [rsp + 0x20]
unpckhpd xmm1, xmm1
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
mov dword [rax + 0x18], esi
mov rcx, qword [rdi + 0x20]
add rcx, 0x1c
mov qword [rdi + 0x18], rcx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1801d9f60
mov rax, rdi
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801e3870
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1801d81c0
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x1801c4485.0
mov rcx, rdi
mov rsi, rax
call case.0x1801c4485.0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1801e3920
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1801d81c0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1801d8240
cmp rax, 0x3e8
ja 0x1801e3951
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1801e38d0
test rsi, rsi
je 0x1801e392d
mov rcx, rsi
call fcn.180211bf4
test rbx, rbx
je 0x1801e393a
mov rcx, rbx
call fcn.180211bf4
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1801e395e
mov rcx, rsi
call fcn.180211bf4
test rbx, rbx
je 0x1801e396b
mov rcx, rbx
call fcn.180211bf4
mov eax, 1
jmp 0x1801e393c
Function at 0x1801e3d20
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1801e3ebe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1801e3e9e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1801e3d8e
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1801e3d80
inc rbx
jmp 0x1801e3d90
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1801e3d9e
lea r14d, [rax + 0xe]
jmp 0x1801e3dab
cmp eax, 0x17
jne 0x1801e3e44
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1801e3e44
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1801e3e44
cmp rax, r14
jb 0x1801e3e44
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [fcn.180212b48]
mov rsi, rax
test rax, rax
je 0x1801e3e53
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.18020f990
test rbx, rbx
je 0x1801e3e31
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.18020f990
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1801e3e41
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1801e3d70
jmp 0x1801e3e59
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x1801e3e73
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1801e3e99
test rbp, rbp
je 0x1801e3e95
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.180211bf4]
mov rbp, rbx
test rbx, rbx
jne 0x1801e3e80
xor ebp, ebp
jmp 0x1801e3ead
test rbp, rbp
jne 0x1801e3ead
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x1801e4140
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, edx
lea r8, [rsp + 0x20]
mov rdx, rcx
mov rbx, rcx
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1801e4208
mov ecx, 0x40
call qword [fcn.180212b48]
mov rdi, rax
test rax, rax
je 0x1801e41ae
mov rcx, rbx
call qword [case.0x1801c4485.0]
mov rsi, rax
test rax, rax
jne 0x1801e41b7
mov rcx, rdi
call qword [fcn.180211bf4]
xor ebx, ebx
mov eax, ebx
jmp 0x1801e4265
mov eax, dword [rsp + 0x20]
lea rcx, [rdi + 0x20]
mov dword [rcx], eax
mov dword [rdi + 0x10], 0x40002
lea rax, [rdi + 0x30]
xor ebx, ebx
mov qword [rdi + 8], rbx
mov edx, ebp
mov qword [rdi], rsi
mov qword [rdi + 0x18], rax
mov qword [rax], rcx
mov rcx, rdi
mov rax, qword [rdi + 0x18]
mov qword [rax + 8], rbx
call fcn.1801e3ed0
mov rcx, rsi
mov rbx, rax
call qword [fcn.180211bf4]
mov rcx, rdi
call qword [fcn.180211bf4]
mov rax, rbx
jmp 0x1801e4265
lea r8, [rsp + 0x28]
mov rdx, rbx
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1801e4263
mov ecx, 0x40
call qword [fcn.180212b48]
mov rdi, rax
test rax, rax
je 0x1801e41ae
mov rcx, rbx
call qword [case.0x1801c4485.0]
mov rsi, rax
test rax, rax
je 0x1801e41a5
movups xmm0, xmmword [rsp + 0x28]
lea rcx, [rdi + 0x20]
movups xmmword [rcx], xmm0
mov dword [rdi + 0x10], 0x100017
jmp 0x1801e41c8
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800b8140
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1801e44b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1801e457b
nop dword [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x40]
cmp rsi, rbx
mov r8d, 4
mov rcx, rbp
cmovb rbx, rsi
call fcn.1801ca830
cmp eax, 4
jne 0x1801e452e
cmp byte [0x18059bf24], 0
jne 0x1801e453a
xor eax, eax
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov dword [rsp + 0x40], eax
lea r9d, [rax + 2]
lea r8d, [rax + 4]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x1801e457d
mov eax, dword [rsp + 0x40]
jmp 0x1801e4558
imul eax, dword [0x18059bf20], 0x41c64e6d
add eax, 0x3039
mov dword [0x18059bf20], eax
rol eax, 0x10
mov dword [rsp + 0x40], eax
xor edx, edx
test rbx, rbx
je 0x1801e4572
sub rsi, rbx
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x1801e4560
mov dword [rsp + 0x40], eax
test rsi, rsi
jne 0x1801e44e0
mov eax, edx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1801e9f90
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.180212b50]
mov rdi, rax
test rax, rax
je 0x1801ea00d
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 0x1801ea038
cmp ebx, esi
je 0x1801ea038
cmp ebx, 0x8000
ja 0x1801ea038
cmp ebx, esi
jb 0x1801ea033
mov edx, ebx
mov rcx, rdi
call qword [fcn.180212b50]
mov rdi, rax
test rax, rax
jne 0x1801e9fd0
mov rcx, rbp
call qword [fcn.180211bf4]
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 0x1801ea018
mov rcx, rdi
jmp 0x1801ea010
jmp 0x1801e9f90

Function at 0x1801ea040
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.180212b50]
mov rdi, rax
test rax, rax
je 0x1801ea00d
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 0x1801ea038
cmp ebx, esi
je 0x1801ea038
cmp ebx, 0x8000
ja 0x1801ea038
cmp ebx, esi
jb 0x1801ea033
mov edx, ebx
mov rcx, rdi
call qword [fcn.180212b50]
mov rdi, rax
test rax, rax
jne 0x1801e9fd0
mov rcx, rbp
call qword [fcn.180211bf4]
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 0x1801ea018
mov rcx, rdi
jmp 0x1801ea010
jmp 0x1801e9f90

Function at 0x1801eb860
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 0x1801eb8e1
sub r8d, 1
je 0x1801eb8b8
cmp r8d, 1
jne 0x1801eb8f5
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1801eb8d9
cmp ecx, r8d
jne 0x1801eb8f5
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.1801eba80
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1801eb8d9
cmp ecx, 1
jne 0x1801eb8f5
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.1801eba80
ret
Function at 0x1801eb900
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 0x1801eb9a4
sub r8d, 2
je 0x1801eb95d
cmp r8d, 1
jne 0x1801eb996
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801eb950
cmp ecx, r8d
jne 0x1801eb996
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 0x1801eb997
cmp ecx, 1
jne 0x1801eb996
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.1801eba80
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1801eb989
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1801eba80

Function at 0x1801eb9d0
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 0x1801eba5d
sub r8d, 1
je 0x1801eba2e
cmp r8d, 1
jne 0x1801eba74
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801eba52
cmp ecx, r8d
jne 0x1801eba74
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.1801eba80
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801eba52
cmp ecx, 1
jne 0x1801eba74
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.1801eba80
ret

Function at 0x1801eba80
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 0x1801ebadf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1801d05f0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1801eb2a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1801ebc80
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1801ebe2f
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 0x1801ebccb
mov byte [r14], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801ebcd9
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801ebce7
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 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 0x1801ebd20
mov byte [rcx], bpl
inc qword [rbx]
mov rdx, qword [rbx]
mov rbp, qword [rsp + 0x28]
cmp rdx, rbx
jae 0x1801ebd37
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801ebd45
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1801ebd57
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801ebd65
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801ebd73
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.1801eb3e0
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 0x1801ebddb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1801d05f0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.1801ebb10
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 0x1801ebe27
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1801d05f0
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1801ed0d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1804a20e0]
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 0x1801ed167
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.18020f990
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 0x1801ed1cb
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1801d05f0
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.1800b8140
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 0x1801ed29d
sub ecx, 1
je 0x1801ed31f
sub ecx, 1
je 0x1801ed23c
cmp ecx, 1
je 0x1801ed218
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x180470708]
call fcn.1801d05f0
jmp 0x1801ed31f
lea r8d, [rdx - 2]
mov rcx, rbx
mov rdx, qword [rbx + 0x150]
add rdx, 2
call fcn.1801ecd40
test eax, eax
je 0x1801ed31f
jmp 0x1801ed19a
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.180210030
test rax, rax
je 0x1801ed31f
sub rax, rsi
cmp rax, rbp
jae 0x1801ed31f
mov r8, rsi
lea rdx, str.TFTP_error:__s
mov rcx, rdi
call fcn.1801d0780
jmp 0x1801ed31f
cmp edx, 4
jle 0x1801ed31f
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 0x1801ed31f
mov r8, qword [rbx + 0x150]
lea eax, [rdx - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rdi
call fcn.1801d0500
mov esi, eax
test eax, eax
je 0x1801ed2fe
mov edx, 5
mov rcx, rbx
call fcn.1801edd30
mov eax, esi
jmp 0x1801ed19a
mov eax, dword [rbx + 0x13c]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1801e1a60
mov rcx, rdi
call fcn.1801e1d00
test eax, eax
je 0x1801ed198
mov edx, 5
mov rcx, rbx
call fcn.1801edd30
mov eax, Ordinal_46
jmp 0x1801ed19a
Function at 0x1801edd30
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x1801edd97
sub r8d, 1
je 0x1801edd8e
sub r8d, 1
je 0x1801edd85
lea rdx, [0x180470708]
mov rcx, r9
cmp r8d, 1
je 0x1801edd72
lea r8, str.Internal_state_machine_error
call fcn.1801d05f0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.1801d0780
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1801edea0
add rsp, 0x28
jmp fcn.1801ed350
add rsp, 0x28
jmp fcn.1801ed690
Function at 0x1801f5380
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 [0x1804a20e0]
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 0x1801f53fc
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 0x1801f5401
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1801f5420
lea rdx, str.Error_accept__ing_server_connect
call fcn.1801d05f0
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1801f54ac
lea rdx, str.Connection_accepted_from_server
call fcn.1801d0780
mov byte [rsi + 0x33d], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1802018c0
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1801d1570
test eax, eax
jne 0x1801f54ac
cmp qword [rdi + 0x278], 0
je 0x1801f54aa
mov dl, 1
mov rcx, rdi
call fcn.1801be420
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.1801be420
test ebx, ebx
je 0x1801f54aa
mov rdx, rsi
mov rcx, rdi
call fcn.1801f5990
mov eax, Ordinal_46
jmp 0x1801f54ac
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800b8140
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1801f7370
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 0x1801f73ed
test edi, edi
jne 0x1801f73ae
lea rdx, str.disabling_EPRT_usage
call fcn.1801d0780
mov byte [rsi + 0x342], dil
inc edi
mov rcx, rbx
cmp edi, 2
jne 0x1801f73d7
lea rdx, str.Failed_to_do_PORT
call fcn.1801d05f0
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 0x1801f8190
lea rdx, str.Connect_data_stream_actively
call fcn.1801d0780
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 0x1801f7434
or r8, 0xffffffffffffffff
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
xor r9d, r9d
mov rcx, rbx
call fcn.1801e0410
jmp 0x1801f743b
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 0x1801f77a0
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 0x1801f77ee
cmp qword [rdx + 0x90], 0
je 0x1801f77ee
xor r9d, r9d
lea r8, str.REST__d
call fcn.18020a500
test eax, eax
jne 0x1801f77f8
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x4f8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1801f7460
add rsp, 0x20
pop rbx
ret

Function at 0x1801f7e20
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 0x1801f7e5c
lea rdx, str.Couldnt_set_desired_mode
call fcn.1801d05f0
lea eax, [rdi + 0x11]
jmp 0x1801f7eb6
cmp edx, 0xc8
je 0x1801f7e73
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1801d0780
cmp esi, 0x13
jne 0x1801f7e85
mov rdx, rbp
mov rcx, rbx
call fcn.1801f7ae0
jmp 0x1801f7eb2
cmp esi, 0x14
jne 0x1801f7e94
mov rcx, rbx
call fcn.1801f6860
jmp 0x1801f7eb2
cmp esi, 0x15
jne 0x1801f7e9f
lea r8d, [rsi - 8]
jmp 0x1801f7ea8
cmp esi, 0x16
jne 0x1801f7eb4
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1801f7580
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