joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007dcd0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], 4
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1008
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14007dd1d
cmp dword [rsp + 0x50], 1
jne 0x14007dd1d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x30
pop rbx
ret

Function at 0x14007fd60
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x14007f9bb
movzx ecx, byte [rbx]
call fcn.140090530
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14007f9a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14007fd96
call fcn.140091680
test al, al
jne 0x14007fd96
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140080030
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14007f980
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14008e150
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.14008e1a0
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.1402190c8
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x14008e690
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14008e6f6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14008e6d9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14008e6d3
shr ax, 8
cmp al, 2
je 0x14008e6f6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401f6e90
add rsp, 0x1e8
ret
lea rcx, str.iphlpapi.dll
call fcn.14008e4a0
mov qword [0x1402e0f38], rax
test rax, rax
je 0x14008e733
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402e0f30]
test rax, rax
cmovne rcx, rax
mov qword [0x1402e0f30], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1400c47f0
test al, al
lea rcx, [0x1402e6b20]
setne byte [0x1402e6b18]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401f6e90
add rsp, 0x1e8
ret

Function at 0x1400906a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebp, byte [rcx]
mov rsi, rdx
mov rbx, rcx
test bpl, bpl
je 0x1400906ee
movzx ecx, byte [rsi]
test cl, cl
je 0x1400906ee
call fcn.140090530
movzx ecx, bpl
movzx edi, al
call fcn.140090530
cmp al, dil
jne 0x140090713
movzx ebp, byte [rbx + 1]
inc rbx
inc rsi
test bpl, bpl
jne 0x1400906c2
xor ecx, ecx
mov eax, ecx
cmp byte [rbx], al
sete al
cmp byte [rsi], cl
setne cl
xor eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x1400906fe
test rcx, rcx
je 0x14009072f
test rdx, rdx
je 0x14009073a
jmp 0x1400906a0
test rdx, rdx
jne 0x14009073a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x14009c070
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14009c09a
cmp dword [rdx], 0
jne 0x14009c0b0
test rbx, rbx
je 0x14009c0a5
cmp dword [r8], 0
jne 0x14009c0b0
test rdi, rdi
je 0x14009c0fc
cmp dword [r9], 0
je 0x14009c0fc
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400c9440
test rdi, rdi
je 0x14009c0c9
cmp dword [rdi], 0
jne 0x14009c0cb
xor edi, edi
test rbx, rbx
je 0x14009c0d5
cmp dword [rbx], 0
jne 0x14009c0d7
xor ebx, ebx
test rsi, rsi
je 0x14009c0e1
cmp dword [rsi], 0
jne 0x14009c0e3
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x14009c106
mov rcx, qword [rsp + 0x60]
call fcn.14009c020
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14009f1a0
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.140080420
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14009d720
mov rcx, rdi
mov rsi, rax
call fcn.14009d720
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14009f250
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140080420
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400804b0
cmp rax, 0x3e8
ja 0x14009f281
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_MoveFileExW]
test eax, eax
je 0x14009f200
test rsi, rsi
je 0x14009f25d
mov rcx, rsi
call fcn.1401fd8d4
test rbx, rbx
je 0x14009f26a
mov rcx, rbx
call fcn.1401fd8d4
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 0x14009f28e
mov rcx, rsi
call fcn.1401fd8d4
test rbx, rbx
je 0x14009f29b
mov rcx, rbx
call fcn.1401fd8d4
mov eax, 1
jmp 0x14009f26c
Function at 0x14009f730
Capabilities:
Resolve dns

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov r13, r9
xor r14d, r14d
mov qword [r9], r14
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14009f8bb
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14009f8a0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14009f79e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009f790
inc rbx
jmp 0x14009f7a0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14009f7ad
lea ebp, [rax + 0xe]
jmp 0x14009f7b9
cmp eax, 0x17
jne 0x14009f855
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14009f855
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14009f855
cmp rax, rbp
jb 0x14009f855
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14009f864
mov ecx, dword [rdi]
mov r8, rbp
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], ebp
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.1401f8c80
test rbx, rbx
je 0x14009f842
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.1401f8c80
test r14, r14
cmove r14, rsi
test r15, r15
je 0x14009f852
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14009f780
jmp 0x14009f86a
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009f889
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14009f89b
mov rcx, r14
call fcn.14009f700
xor r14d, r14d
jmp 0x14009f8af
test r14, r14
jne 0x14009f8af
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x20]
mov eax, r12d
mov qword [r13], r14
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x14009fd70
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call fcn.14020eeb0
test rax, rax
je 0x14009fda6
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret

Function at 0x14009ff50
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call fcn.1401f9330
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x1400a53e0
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 [case.0x140088280.0]
mov rdi, rax
test rax, rax
je 0x1400a545d
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 0x1400a5488
cmp ebx, esi
je 0x1400a5488
cmp ebx, 0x8000
ja 0x1400a5488
cmp ebx, esi
jb 0x1400a5483
mov edx, ebx
mov rcx, rdi
call qword [case.0x140088280.0]
mov rdi, rax
test rax, rax
jne 0x1400a5420
mov rcx, rbp
call qword [fcn.1401fd8d4]
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 0x1400a5468
mov rcx, rdi
jmp 0x1400a5460
jmp 0x1400a53e0

Function at 0x1400a5490
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 [case.0x140088280.0]
mov rdi, rax
test rax, rax
je 0x1400a545d
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 0x1400a5488
cmp ebx, esi
je 0x1400a5488
cmp ebx, 0x8000
ja 0x1400a5488
cmp ebx, esi
jb 0x1400a5483
mov edx, ebx
mov rcx, rdi
call qword [case.0x140088280.0]
mov rdi, rax
test rax, rax
jne 0x1400a5420
mov rcx, rbp
call qword [fcn.1401fd8d4]
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 0x1400a5468
mov rcx, rdi
jmp 0x1400a5460
jmp 0x1400a53e0
Function at 0x1400a6d40
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1a0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1400a6dc1
sub r8d, 1
je 0x1400a6d98
cmp r8d, 1
jne 0x1400a6dd5
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400a6db9
cmp ecx, r8d
jne 0x1400a6dd5
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.1400a6f60
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400a6db9
cmp ecx, 1
jne 0x1400a6dd5
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.1400a6f60
ret

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

Disassembly:
mov r9, qword [rcx + 0x1a0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1400a6e84
sub r8d, 2
je 0x1400a6e3d
cmp r8d, 1
jne 0x1400a6e76
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400a6e30
cmp ecx, r8d
jne 0x1400a6e76
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 0x1400a6e77
cmp ecx, 1
jne 0x1400a6e76
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.1400a6f60
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1400a6e69
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1400a6f60

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

Disassembly:
mov r9, qword [rcx + 0x1a0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1400a6f3d
sub r8d, 1
je 0x1400a6f0e
cmp r8d, 1
jne 0x1400a6f54
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400a6f32
cmp ecx, r8d
jne 0x1400a6f54
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.1400a6f60
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400a6f32
cmp ecx, 1
jne 0x1400a6f54
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.1400a6f60
ret
Function at 0x1400a6f60
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 + 0x20]
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 + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400a6fbf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14008bef0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1400a6750
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a7310
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1a0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x1400a7363
test r9d, r9d
je 0x1400a734d
sub r9d, 2
je 0x1400a7375
cmp r9d, r8d
jne 0x1400a73a3
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x1400a73a3
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.1400a6f60
sub r9d, 1
je 0x1400a738d
sub r9d, 1
je 0x1400a7335
cmp r9d, 1
jne 0x1400a73a3
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x1400a73a3
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.1400a6f60
ret

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

Disassembly:
mov r10, qword [rcx + 0x1a0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x1400a7409
test r9d, r9d
je 0x1400a73f0
sub r9d, 2
je 0x1400a741b
cmp r9d, r8d
jne 0x1400a744c
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x1400a744c
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.1400a6f60
sub r9d, 1
je 0x1400a7433
sub r9d, 1
je 0x1400a73d8
cmp r9d, 1
jne 0x1400a744c
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x1400a744c
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.1400a6f60
ret
Function at 0x1400a85d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x3a0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
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 0x1400a8669
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1401f8c80
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x1400a86ca
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.14008bef0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401f6e90
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.1400a8110
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x1400a86fb.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0xa8814]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x1400a86fb.4
mov rcx, r14
call fcn.1400a80f0
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x1400a86fb.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.14008c180
mov ebx, eax
test eax, eax
je 0x1400a8756
mov edx, 5
mov rcx, rdi
call fcn.1400a9060
mov eax, ebx
jmp 0x1400a869e
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x100], rax
mov rdx, qword [rsi + 0x100]
call fcn.14009ae90
jmp case.0x1400a86fb.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.1400a80f0
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1400a9170
cmp rax, rbx
jae case.0x1400a86fb.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s
call fcn.14008bfe0
jmp case.0x1400a86fb.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.1400a8330
test eax, eax
je case.0x1400a86fb.4
jmp 0x1400a869e
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14022c934]
call fcn.14008bef0
mov rcx, rsi
call fcn.14009b150
test eax, eax
je 0x1400a869c
mov edx, 5
mov rcx, rdi
call fcn.1400a9060
mov eax, Ordinal_46
jmp 0x1400a869e
Function at 0x1400b0c00
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 [0x1402dfc98]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
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], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400b0c7c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400b0c81
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400b0ca0
lea rdx, str.Error_accept__ing_server_connect
call fcn.14008bef0
mov eax, 0x1e
jmp 0x1400b0d2c
lea rdx, str.Connection_accepted_from_server
call fcn.14008bfe0
mov byte [rsi + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400c94b0
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400bd930
test eax, eax
jne 0x1400b0d2c
cmp qword [rdi + 0x270], 0
je 0x1400b0d2a
mov dl, 1
mov rcx, rdi
call fcn.14007b050
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x278]
call qword [rdi + 0x270]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14007b050
test ebx, ebx
je 0x1400b0d2a
mov rdx, rsi
mov rcx, rdi
call fcn.1400b1210
mov eax, Ordinal_46
jmp 0x1400b0d2c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401f6e90
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x3a0
cmp byte [rdx + 0xfd], 0
jne 0x1400b1f29
xor r8d, r8d
mov dword [rdx + 0xec], r8d
cmp byte [rax + 0x2cf], r8b
je 0x1400b1ee3
mov r9, qword [rdx + 0x98]
test r9, r9
je 0x1400b1ee3
cmp dword [rdx + 0xe0], r8d
je 0x1400b1ed7
mov rax, qword [rdx + 0xa8]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x1400b1ee3
mov dword [rdx + 0xe4], r8d
mov rcx, rbx
jmp 0x1400b1f03
mov rcx, rbx
cmp dword [rdx + 0xe0], r8d
je 0x1400b1f29
mov r9, qword [rdx + 0xa8]
mov dword [rdx + 0xe4], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.1400f07c0
mov r8d, eax
test eax, eax
jne 0x1400b1f33
mov dl, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1400b1200
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b2310
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
add rdx, 0x3a0
cmp byte [rcx + 0xa9a], 0
jne 0x1400b2336
cmp byte [rcx + 0x528], 0
je 0x1400b2368
mov r9, qword [rdx + 0xa0]
test r9, r9
je 0x1400b2368
lea r8, str.MDTM__s
call fcn.1400f07c0
mov r8d, eax
test eax, eax
jne 0x1400b2372
mov dl, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.1400b1200
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400b3400
add rsp, 0x20
pop rbx
ret
Function at 0x1400b2aa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
cmp eax, 0x64
jb 0x1400b2b1f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x20]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x488]
lea edi, [rax + 1]
test eax, eax
jne 0x1400b2afb
lea rdx, str.disabling_EPRT_usage
call fcn.14008bfe0
mov byte [rsi + 0x2da], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x1400b37d0
cmp edi, 2
jne 0x1400b2ae2
lea rdx, str.Failed_to_do_PORT
call fcn.14008bef0
mov rsi, qword [rsp + 0x30]
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively
call fcn.14008bfe0
xor edx, edx
mov rcx, rbx
call fcn.1400b1200
add rsp, 0x20
pop rbx
jmp fcn.1400b1450