joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400421d0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d7060]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140042225
jmp 0x1400423d4
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400423ab
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400423ab
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400423ab
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400423ab
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400423ab
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400423ab
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400423ab
mov r9, rsi
lea r8, [0x1400caedc]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140046130
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140042345
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400423ab
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400423ab
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140070000
test eax, eax
jne 0x1400423ab
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400423cc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140025840
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140048180
Capabilities:
Resolve dns

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14004831e
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140048303
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1400481dd
lea ebp, [rax + 0xe]
jmp 0x1400481e9
cmp eax, 0x17
jne 0x140048291
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], r13
je 0x140048291
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140048291
cmp rax, rbp
jb 0x140048291
mov ecx, 0x30
call qword [str.__a_]
mov rbx, rax
test rax, rax
je 0x1400482cc
mov eax, dword [rdi]
mov rcx, rbp
mov dword [rbx], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 4], eax
mov eax, dword [rdi + 8]
mov dword [rbx + 8], eax
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
call qword [str.__a_]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1400482bb
mov rdx, qword [rdi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14006f710
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14004827e
call qword [case.0x14002e319.0]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1400482a0
test rsi, rsi
cmove rsi, rbx
test r15, r15
je 0x14004828e
mov qword [r15 + 0x28], rbx
mov r15, rbx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400481d0
jmp 0x1400482d2
mov rcx, qword [rbx + 0x20]
mov r14d, 8
call qword [fcn.140075410]
mov rcx, rbx
call qword [fcn.140075410]
jmp 0x1400482d2
mov rcx, rbx
mov r14d, 8
call qword [fcn.140075410]
jmp 0x1400482d2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400482ec
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400482fe
mov rcx, rsi
call fcn.140048130
mov rsi, r13
jmp 0x140048312
test rsi, rsi
jne 0x140048312
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14004bb20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.1400263e0
sub rsp, rax
mov rax, qword [0x1400d7060]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.140086f5c
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14004bb8c
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14004bb8c
lea rcx, [rsp + 0x20]
call qword [case.0x14002e319.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140025840
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140025840
add rsp, 0x1038
ret
jmp 0x14004bb20
Function at 0x14004bbb0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.1400263e0
sub rsp, rax
mov rax, qword [0x1400d7060]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.140086f5c
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14004bb8c
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14004bb8c
lea rcx, [rsp + 0x20]
call qword [case.0x14002e319.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140025840
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140025840
add rsp, 0x1038
ret
jmp 0x14004bb20

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400d7060]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], Ordinal_133
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140051e1a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400389b0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140051e3f
lea rdx, str.Error_accept__ing_server_connect
call fcn.140037de0
lea eax, [rbx + 0x1f]
jmp 0x140051eb8
lea rdx, str.Connection_accepted_from_server_n
call fcn.140037ef0
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.140044250
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x140051eb6
mov dl, 1
mov rcx, rsi
call fcn.140029ea0
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140029ea0
test ebx, ebx
je 0x140051eb6
mov rcx, rdi
call fcn.1400523c0
mov eax, Ordinal_46
jmp 0x140051eb8
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140025840
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140052f00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x82a], 0
mov rbx, rcx
jne 0x140052fb3
xor r10d, r10d
mov dword [rcx + 0x848], r10d
mov rax, qword [rcx]
mov ecx, r10d
cmp dword [rax + 0xba4], 2
sete cl
mov dword [rbx + 0x84c], ecx
cmp byte [rbx + 0x3ed], r10b
je 0x140052f6c
mov r8, qword [rbx + 0x808]
test r8, r8
je 0x140052f6c
cmp dword [rbx + 0x818], r10d
je 0x140052f63
mov rax, qword [rbx + 0x810]
mov rdx, qword [rax]
cmp byte [rdx], 0x2f
je 0x140052f6c
mov dword [rbx + 0x82c], r10d
jmp 0x140052f89
cmp dword [rbx + 0x818], r10d
je 0x140052fb0
mov r8, qword [rbx + 0x810]
mov dword [rbx + 0x82c], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
lea rcx, [rbx + 0x798]
call fcn.140069460
test eax, eax
jne 0x140052fbd
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400523b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140053370
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x140053395
cmp dword [rax + 0x9f0], 0
je 0x1400533c1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400533c1
lea rdx, str.MDTM__s
call fcn.140069460
test eax, eax
jne 0x1400533ce
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400523b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140054460
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x140053b91
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x844]
test ebx, ebx
jne 0x140053b4f
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.140037ef0
mov byte [rdi + 0x3ff], bl
inc ebx
cmp ebx, 2
jne 0x140053b78
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.140037de0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140054810
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.140037ef0
xor edx, edx
mov rcx, rdi
call fcn.1400523b0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140052530
Function at 0x140053ed0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x140053f1d
cmp qword [rcx + 0x820], 0
je 0x140053f1d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140069460
test eax, eax
jne 0x140053f27
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400523b0
add rsp, 0x20
pop rbx
jmp fcn.140053bc0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x14005420c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14005420c
lea rdx, str.SIZE__s
call fcn.140069460
test eax, eax
jne 0x140054219
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400523b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140053ed0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp byte [r10 + 0xeac], 0
je 0x1400544b7
cmp qword [rcx + 0x820], 0
je 0x1400544b7
movzx edx, byte [r10 + 0xe9b]
call fcn.140052780
test eax, eax
je 0x1400544b7
mov rax, qword [r10 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x20], 1
movzx edx, byte [r10 + 0xe9b]
add rsp, 0x28
jmp fcn.1400526f0
mov rcx, r9
add rsp, 0x28
jmp fcn.1400541c0
Function at 0x140059930
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1400d7060]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140059976
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.140037de0
jmp 0x1400599a0
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140059991
shr ax, 8
test al, al
jne 0x140059991
xor eax, eax
jmp 0x1400599a5
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.140037de0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140025840
add rsp, 0x1d0
pop rbx
ret
Function at 0x14005a0d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1e0]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x14005a154
sub r8d, 1
je 0x14005a12b
cmp r8d, 1
jne 0x14005a168
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14005a14c
cmp ecx, r8d
jne 0x14005a168
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.14005a2f0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14005a14c
cmp ecx, 1
jne 0x14005a168
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.14005a2f0
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1e0]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x14005a217
sub r8d, 2
je 0x14005a1d0
cmp r8d, 1
jne 0x14005a209
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14005a1c3
cmp ecx, r8d
jne 0x14005a209
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 0x14005a20a
cmp ecx, 1
jne 0x14005a209
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.14005a2f0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14005a1fc
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14005a2f0

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1e0]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14005a2d0
sub r8d, 1
je 0x14005a2a1
cmp r8d, 1
jne 0x14005a2e7
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14005a2c5
cmp ecx, r8d
jne 0x14005a2e7
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.14005a2f0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14005a2c5
cmp ecx, 1
jne 0x14005a2e7
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.14005a2f0
ret
Function at 0x14005a2f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x258]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005a34f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037de0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140059ad0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005a6e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x1e0]
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x14005a736
test r9d, r9d
je 0x14005a720
sub r9d, 2
je 0x14005a748
cmp r9d, r8d
jne 0x14005a776
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x14005a776
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.14005a2f0
sub r9d, 1
je 0x14005a760
sub r9d, 1
je 0x14005a708
cmp r9d, 1
jne 0x14005a776
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x14005a776
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.14005a2f0
ret

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

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x1e0]
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x14005a7dc
test r9d, r9d
je 0x14005a7c3
sub r9d, 2
je 0x14005a7ee
cmp r9d, r8d
jne 0x14005a81f
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14005a81f
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14005a2f0
sub r9d, 1
je 0x14005a806
sub r9d, 1
je 0x14005a7ab
cmp r9d, 1
jne 0x14005a81f
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14005a81f
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.14005a2f0
ret
Function at 0x14005ba10
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1400d7060]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x798]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], Ordinal_133
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
lea r14, [rdi + 0x168]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x14005baad
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.14006f710
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r9d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x14005bb17
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140037de0
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.140025840
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.14005b530
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x14005bbc9
sub r8d, 1
je 0x14005bc38
sub r8d, 1
je 0x14005bb82
cmp r8d, 1
je 0x14005bb62
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1400a42f0]
call fcn.140037de0
jmp 0x14005bc38
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14005b750
test eax, eax
je 0x14005bc38
jmp 0x14005bae2
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.14005b510
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14005b4d0
cmp rax, rbx
jae 0x14005bc38
lfence
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.140037ef0
jmp 0x14005bc38
cmp r9d, 4
jle 0x14005bc38
mov rcx, r14
call fcn.14005b510
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne 0x14005bc38
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.140037d00
mov ebx, eax
test eax, eax
je 0x14005bc17
mov edx, 5
mov rcx, rdi
call fcn.14005c550
mov eax, ebx
jmp 0x14005bae2
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.1400443b0
mov rcx, r15
call fcn.140044600
test eax, eax
je 0x14005bae0
mov edx, 5
mov rcx, rdi
call fcn.14005c550
mov eax, Ordinal_46
jmp 0x14005bae2
Function at 0x14006b7b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d7060]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14006b87c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.14006b8f0
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.14006e470
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x14006b880
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14006b8ca
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140025840
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x14006e550
Capabilities:
Create new key via cryptacquirecontext
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov dword [rsp + 0x20], 0xf0000000
lea rdi, [rcx + 8]
mov qword [rcx], rax
xor r8d, r8d
mov qword [rdi], rax
xor edx, edx
mov rbx, rcx
lea r9d, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14006e59d
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret