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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x18049d0e0]
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 0x1801d7260
add rcx, 0x4d
mov edx, 1
call qword [fcn.180213ef0]
mov rdi, rax
test rax, rax
je 0x1801d733c
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, [0x180400508]
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 0x1801d72c7
xor eax, eax
jmp 0x1801d7334
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_33
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 0x1801d7320
mov rax, rdi
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800b7d20
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x1801e0c30
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.1801d5590
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x1801c1865.0
mov rcx, rdi
mov rsi, rax
call case.0x1801c1865.0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1801e0ce0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1801d5590
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1801d5610
cmp rax, 0x3e8
ja 0x1801e0d11
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 0x1801e0c90
test rsi, rsi
je 0x1801e0ced
mov rcx, rsi
call fcn.18020f070
test rbx, rbx
je 0x1801e0cfa
mov rcx, rbx
call fcn.18020f070
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 0x1801e0d1e
mov rcx, rsi
call fcn.18020f070
test rbx, rbx
je 0x1801e0d2b
mov rcx, rbx
call fcn.18020f070
mov eax, 1
jmp 0x1801e0cfc
Function at 0x1801e10e0
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 0x1801e127e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1801e125e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1801e114e
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1801e1140
inc rbx
jmp 0x1801e1150
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1801e115e
lea r14d, [rax + 0xe]
jmp 0x1801e116b
cmp eax, 0x17
jne 0x1801e1204
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1801e1204
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1801e1204
cmp rax, r14
jb 0x1801e1204
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [fcn.18020ffc8]
mov rsi, rax
test rax, rax
je 0x1801e1213
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.18020cd80
test rbx, rbx
je 0x1801e11f1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.18020cd80
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1801e1201
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1801e1130
jmp 0x1801e1219
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x1801e1233
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1801e1259
test rbp, rbp
je 0x1801e1255
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.18020f070]
mov rbp, rbx
test rbx, rbx
jne 0x1801e1240
xor ebp, ebp
jmp 0x1801e126d
test rbp, rbp
jne 0x1801e126d
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 0x1801e1500
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 [0x18049d0e0]
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 0x1801e15c8
mov ecx, 0x40
call qword [fcn.18020ffc8]
mov rdi, rax
test rax, rax
je 0x1801e156e
mov rcx, rbx
call qword [case.0x1801c1865.0]
mov rsi, rax
test rax, rax
jne 0x1801e1577
mov rcx, rdi
call qword [fcn.18020f070]
xor ebx, ebx
mov eax, ebx
jmp 0x1801e1625
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.1801e1290
mov rcx, rsi
mov rbx, rax
call qword [fcn.18020f070]
mov rcx, rdi
call qword [fcn.18020f070]
mov rax, rbx
jmp 0x1801e1625
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 0x1801e1623
mov ecx, 0x40
call qword [fcn.18020ffc8]
mov rdi, rax
test rax, rax
je 0x1801e156e
mov rcx, rbx
call qword [case.0x1801c1865.0]
mov rsi, rax
test rax, rax
je 0x1801e1565
movups xmm0, xmmword [rsp + 0x28]
lea rcx, [rdi + 0x20]
movups xmmword [rcx], xmm0
mov dword [rdi + 0x10], 0x100017
jmp 0x1801e1588
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800b7d20
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1801e1870
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 0x1801e193b
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.1801c7c00
cmp eax, 4
jne 0x1801e18ee
cmp byte [0x180518b84], 0
jne 0x1801e18fa
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 0x1801e193d
mov eax, dword [rsp + 0x40]
jmp 0x1801e1918
imul eax, dword [0x180518b80], 0x41c64e6d
add eax, 0x3039
mov dword [0x180518b80], eax
rol eax, 0x10
mov dword [rsp + 0x40], eax
xor edx, edx
test rbx, rbx
je 0x1801e1932
sub rsi, rbx
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x1801e1920
mov dword [rsp + 0x40], eax
test rsi, rsi
jne 0x1801e18a0
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 0x1801e7340
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.18020ffd0]
mov rdi, rax
test rax, rax
je 0x1801e73bd
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 0x1801e73e8
cmp ebx, esi
je 0x1801e73e8
cmp ebx, 0x8000
ja 0x1801e73e8
cmp ebx, esi
jb 0x1801e73e3
mov edx, ebx
mov rcx, rdi
call qword [fcn.18020ffd0]
mov rdi, rax
test rax, rax
jne 0x1801e7380
mov rcx, rbp
call qword [fcn.18020f070]
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 0x1801e73c8
mov rcx, rdi
jmp 0x1801e73c0
jmp 0x1801e7340

Function at 0x1801e73f0
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.18020ffd0]
mov rdi, rax
test rax, rax
je 0x1801e73bd
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 0x1801e73e8
cmp ebx, esi
je 0x1801e73e8
cmp ebx, 0x8000
ja 0x1801e73e8
cmp ebx, esi
jb 0x1801e73e3
mov edx, ebx
mov rcx, rdi
call qword [fcn.18020ffd0]
mov rdi, rax
test rax, rax
jne 0x1801e7380
mov rcx, rbp
call qword [fcn.18020f070]
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 0x1801e73c8
mov rcx, rdi
jmp 0x1801e73c0
jmp 0x1801e7340

Function at 0x1801e8c10
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 0x1801e8c91
sub r8d, 1
je 0x1801e8c68
cmp r8d, 1
jne 0x1801e8ca5
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1801e8c89
cmp ecx, r8d
jne 0x1801e8ca5
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.1801e8e30
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1801e8c89
cmp ecx, 1
jne 0x1801e8ca5
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.1801e8e30
ret
Function at 0x1801e8cb0
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 0x1801e8d54
sub r8d, 2
je 0x1801e8d0d
cmp r8d, 1
jne 0x1801e8d46
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801e8d00
cmp ecx, r8d
jne 0x1801e8d46
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 0x1801e8d47
cmp ecx, 1
jne 0x1801e8d46
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.1801e8e30
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1801e8d39
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1801e8e30

Function at 0x1801e8d80
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 0x1801e8e0d
sub r8d, 1
je 0x1801e8dde
cmp r8d, 1
jne 0x1801e8e24
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801e8e02
cmp ecx, r8d
jne 0x1801e8e24
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.1801e8e30
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1801e8e02
cmp ecx, 1
jne 0x1801e8e24
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.1801e8e30
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1801e91df
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 0x1801e907b
mov byte [r14], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e9089
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e9097
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 0x1801e90d0
mov byte [rcx], bpl
inc qword [rbx]
mov rdx, qword [rbx]
mov rbp, qword [rsp + 0x28]
cmp rdx, rbx
jae 0x1801e90e7
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e90f5
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1801e9107
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e9115
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1801e9123
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.1801e8790
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 0x1801e918b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1801cd9c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.1801e8ec0
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 0x1801e91d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1801cd9c0
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1801ea480
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 0x1801ea517
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.18020cd80
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 0x1801ea57b
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1801cd9c0
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.1800b7d20
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 0x1801ea64d
sub ecx, 1
je 0x1801ea6cf
sub ecx, 1
je 0x1801ea5ec
cmp ecx, 1
je 0x1801ea5c8
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18046c200]
call fcn.1801cd9c0
jmp 0x1801ea6cf
lea r8d, [rdx - 2]
mov rcx, rbx
mov rdx, qword [rbx + 0x150]
add rdx, 2
call fcn.1801ea0f0
test eax, eax
je 0x1801ea6cf
jmp 0x1801ea54a
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.18020d420
test rax, rax
je 0x1801ea6cf
sub rax, rsi
cmp rax, rbp
jae 0x1801ea6cf
mov r8, rsi
lea rdx, str.TFTP_error:__s
mov rcx, rdi
call fcn.1801cdb50
jmp 0x1801ea6cf
cmp edx, 4
jle 0x1801ea6cf
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 0x1801ea6cf
mov r8, qword [rbx + 0x150]
lea eax, [rdx - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rdi
call fcn.1801cd8d0
mov esi, eax
test eax, eax
je 0x1801ea6ae
mov edx, 5
mov rcx, rbx
call fcn.1801eb0e0
mov eax, esi
jmp 0x1801ea54a
mov eax, dword [rbx + 0x13c]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1801dee20
mov rcx, rdi
call fcn.1801df0c0
test eax, eax
je 0x1801ea548
mov edx, 5
mov rcx, rbx
call fcn.1801eb0e0
mov eax, Ordinal_46
jmp 0x1801ea54a
Function at 0x1801eb0e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x1801eb147
sub r8d, 1
je 0x1801eb13e
sub r8d, 1
je 0x1801eb135
lea rdx, [0x18046c200]
mov rcx, r9
cmp r8d, 1
je 0x1801eb122
lea r8, str.Internal_state_machine_error
call fcn.1801cd9c0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.1801cdb50
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1801eb250
add rsp, 0x28
jmp fcn.1801ea700
add rsp, 0x28
jmp fcn.1801eaa40
Function at 0x1801f2730
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 0x1801f27ac
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 0x1801f27b1
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1801f27d0
lea rdx, str.Error_accept__ing_server_connect
call fcn.1801cd9c0
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1801f285c
lea rdx, str.Connection_accepted_from_server
call fcn.1801cdb50
mov byte [rsi + 0x33d], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1801fec80
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1801ce940
test eax, eax
jne 0x1801f285c
cmp qword [rdi + 0x278], 0
je 0x1801f285a
mov dl, 1
mov rcx, rdi
call fcn.1801bb800
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.1801bb800
test ebx, ebx
je 0x1801f285a
mov rdx, rsi
mov rcx, rdi
call fcn.1801f2d40
mov eax, Ordinal_46
jmp 0x1801f285c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800b7d20
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1801f4720
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 0x1801f479d
test edi, edi
jne 0x1801f475e
lea rdx, str.disabling_EPRT_usage
call fcn.1801cdb50
mov byte [rsi + 0x342], dil
inc edi
mov rcx, rbx
cmp edi, 2
jne 0x1801f4787
lea rdx, str.Failed_to_do_PORT
call fcn.1801cd9c0
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 0x1801f5540
lea rdx, str.Connect_data_stream_actively
call fcn.1801cdb50
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 0x1801f47e4
or r8, 0xffffffffffffffff
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
xor r9d, r9d
mov rcx, rbx
call fcn.1801dd7d0
jmp 0x1801f47eb
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 0x1801f4b50
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 0x1801f4b9e
cmp qword [rdx + 0x90], 0
je 0x1801f4b9e
xor r9d, r9d
lea r8, str.REST__d
call fcn.1802078d0
test eax, eax
jne 0x1801f4ba8
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x4f8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1801f4810
add rsp, 0x20
pop rbx
ret

Function at 0x1801f51d0
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 0x1801f520c
lea rdx, str.Couldnt_set_desired_mode
call fcn.1801cd9c0
lea eax, [rdi + 0x11]
jmp 0x1801f5266
cmp edx, 0xc8
je 0x1801f5223
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1801cdb50
cmp esi, 0x13
jne 0x1801f5235
mov rdx, rbp
mov rcx, rbx
call fcn.1801f4e90
jmp 0x1801f5262
cmp esi, 0x14
jne 0x1801f5244
mov rcx, rbx
call fcn.1801f3c10
jmp 0x1801f5262
cmp esi, 0x15
jne 0x1801f524f
lea r8d, [rsi - 8]
jmp 0x1801f5258
cmp esi, 0x16
jne 0x1801f5264
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.1801f4930
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