joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001f370
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 [0x180086048]
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 0x18001f3c5
jmp 0x18001f574
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 0x18001f54b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x18001f54b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x18001f54b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x18001f54b
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 0x18001f54b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18001f54b
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 0x18001f54b
mov r9, rsi
lea r8, [0x18006dffc]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.180024950
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x18001f4e5
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 0x18001f54b
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 0x18001f54b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.1800490a0
test eax, eax
jne 0x18001f54b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x18001f56c
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.180046490
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800225d0
Capabilities:
Get socket status

Disassembly:
push rdi
sub rsp, 0x30
mov r11, qword [rsp + 0x60]
mov r10, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800225eb
cmp dword [rdx], 0
jne 0x180022609
test r8, r8
je 0x1800225f6
cmp dword [r8], 0
jne 0x180022609
test r9, r9
je 0x1800226b1
cmp dword [r9], 0
je 0x1800226b1
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x48]
test r11, r11
jns 0x18002261c
xor ebx, ebx
jmp 0x18002266b
jle 0x180022662
mov rcx, r11
movabs rax, 0x624dd2f1a9fbe77
mul r11
sub rcx, rdx
shr rcx, 1
add rcx, rdx
mov edx, 0x7fffffff
shr rcx, 9
imul rax, rcx, 0x3e8
sub r11, rax
imul rax, r11, 0x3e8
cmp rcx, rdx
mov dword [rsp + 0x4c], eax
cmovg rcx, rdx
mov dword [rsp + 0x48], ecx
jmp 0x18002266b
mov qword [rsp + 0x48], 0
test r9, r9
je 0x180022676
cmp dword [r9], 0
jne 0x180022679
xor r9d, r9d
test r8, r8
je 0x180022684
cmp dword [r8], 0
jne 0x180022687
xor r8d, r8d
test r10, r10
je 0x180022692
cmp dword [r10], 0
jne 0x180022695
xor r10d, r10d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rbx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, r11
call fcn.180022820
add rsp, 0x30
pop rdi
ret
Function at 0x180026ea0
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.180019150
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.180025d70
mov rcx, rdi
mov rsi, rax
call fcn.180025d70
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x180026f50
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.180019150
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1800191e0
cmp rax, 0x3e8
ja 0x180026f81
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 0x180026f00
test rsi, rsi
je 0x180026f5d
mov rcx, rsi
call fcn.18004f49c
test rbx, rbx
je 0x180026f6a
mov rcx, rbx
call fcn.18004f49c
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 0x180026f8e
mov rcx, rsi
call fcn.18004f49c
test rbx, rbx
je 0x180026f9b
mov rcx, rbx
call fcn.18004f49c
mov eax, 1
jmp 0x180026f6c
Function at 0x180026fe0
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 0x18002716b
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x180027150
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x18002704e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180027040
inc rbx
jmp 0x180027050
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x18002705d
lea ebp, [rax + 0xe]
jmp 0x180027069
cmp eax, 0x17
jne 0x180027105
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x180027105
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180027105
cmp rax, rbp
jb 0x180027105
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x180027114
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.180048490
test rbx, rbx
je 0x1800270f2
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.180048490
test r14, r14
cmove r14, rsi
test r15, r15
je 0x180027102
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x180027030
jmp 0x18002711a
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 0x180027139
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x18002714b
mov rcx, r14
call fcn.180026fb0
xor r14d, r14d
jmp 0x18002715f
test r14, r14
jne 0x18002715f
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 0x180027620
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.180058358
test rax, rax
je 0x180027656
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x18002d3f0
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 [0x180086048]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
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 0x18002d46a
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.1800158a0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x18002d48f
lea rdx, str.Error_accept__ing_server_connect
call fcn.180014e30
lea eax, [rbx + 0x1f]
jmp 0x18002d508
lea rdx, str.Connection_accepted_from_server_n
call fcn.180014f20
mov edx, 1
mov byte [rdi + 0x64a], 0
mov rcx, rbx
mov qword [rdi + 0x4c8], rbx
call fcn.180021430
mov byte [rdi + 0x65d], 1
cmp qword [rsi + 0x710], 0
je 0x18002d506
mov dl, 1
mov rcx, rsi
call fcn.180007390
mov rcx, qword [rsi + 0x718]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x710]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.180007390
test ebx, ebx
je 0x18002d506
mov rcx, rdi
call fcn.18002d9d0
mov eax, Ordinal_46
jmp 0x18002d508
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180046490
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 0x18002e560
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x842], 0
lea r9, [rcx + 0x790]
mov rbx, rcx
jne 0x18002e618
xor r10d, r10d
mov dword [r9 + 0xd0], r10d
mov rax, qword [rcx]
mov ecx, r10d
cmp dword [rax + 0xbc4], 2
sete cl
mov dword [r9 + 0xd4], ecx
cmp byte [rbx + 0x642], r10b
je 0x18002e5d4
mov r8, qword [r9 + 0x90]
test r8, r8
je 0x18002e5d4
cmp dword [r9 + 0xa0], r10d
je 0x18002e5cb
mov rax, qword [r9 + 0x98]
mov rdx, qword [rax]
cmp byte [rdx], 0x2f
je 0x18002e5d4
mov dword [r9 + 0xb4], r10d
jmp 0x18002e5f2
cmp dword [r9 + 0xa0], r10d
je 0x18002e615
mov r8, qword [r9 + 0x98]
mov dword [r9 + 0xb4], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
mov rcx, r9
call fcn.1800424b0
test eax, eax
jne 0x18002e622
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002d9c0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002e9f0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x790
cmp byte [rax + 0xf61], 0
jne 0x18002ea15
cmp dword [rax + 0x9e0], 0
je 0x18002ea41
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x18002ea41
lea rdx, str.MDTM__s
call fcn.1800424b0
test eax, eax
jne 0x18002ea4e
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002d9c0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002fb50
add rsp, 0x20
pop rbx
ret
Function at 0x18002f220
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
mov rcx, qword [rcx]
cmp eax, 0x64
jb 0x18002f28f
mov eax, dword [rbx + 0x85c]
mov qword [rsp + 0x30], rdi
lea edi, [rax + 1]
test eax, eax
jne 0x18002f270
lea rdx, str.disabling_EPRT_usage_n
call fcn.180014f20
mov byte [rbx + 0x650], 0
mov edx, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp 0x18002ff10
cmp edi, 2
jne 0x18002f25c
lea rdx, str.Failed_to_do_PORT
call fcn.180014e30
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively_n
call fcn.180014f20
xor edx, edx
mov rcx, rbx
call fcn.18002d9c0
add rsp, 0x20
pop rbx
jmp fcn.18002db60
Function at 0x18002f5b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 0
je 0x18002f5fd
cmp qword [rcx + 0xa8], 0
je 0x18002f5fd
xor r8d, r8d
lea rdx, str.REST__d
call fcn.1800424b0
test eax, eax
jne 0x18002f60a
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002d9c0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002f2b0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 1
jne 0x18002f8ec
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x18002f8ec
lea rdx, str.SIZE__s
call fcn.1800424b0
test eax, eax
jne 0x18002f8f9
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002d9c0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18002f5b0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp byte [r10 + 0xf74], 0
je 0x18002fba7
cmp qword [rcx + 0x838], 0
je 0x18002fba7
movzx edx, byte [r10 + 0xf63]
call fcn.18002ddb0
test eax, eax
je 0x18002fba7
mov rax, qword [r10 + 0x1a8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x10], 1
movzx edx, byte [r10 + 0xf63]
add rsp, 0x28
jmp fcn.18002dd20
mov rcx, r9
add rsp, 0x28
jmp fcn.18002f8a0
Function at 0x1800363b0
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 + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x18003640f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180014e30
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.180035b90
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180037a70
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 [0x180086048]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x790]
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 0x180037b0d
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.180048490
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 0x180037b77
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.180014e30
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.180046490
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.1800375a0
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x180037ba8.1
lea rdx, [0x180000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x37cbc]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x180037ba8.4
mov rcx, r14
call fcn.180037580
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne case.0x180037ba8.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.180014d40
mov ebx, eax
test eax, eax
je 0x180037c00
mov edx, 5
mov rcx, rdi
call fcn.1800385c0
mov eax, ebx
jmp 0x180037b42
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.180021590
jmp case.0x180037ba8.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.180037580
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.180037540
cmp rax, rbx
jae case.0x180037ba8.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.180014f20
jmp case.0x180037ba8.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.1800377c0
test eax, eax
je case.0x180037ba8.4
jmp 0x180037b42
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x18007e258]
call fcn.180014e30
mov rcx, r15
call fcn.180021840
test eax, eax
je 0x180037b40
mov edx, 5
mov rcx, rdi
call fcn.1800385c0
mov eax, Ordinal_46
jmp 0x180037b42
Function at 0x180039b70
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 [0x180086010]
mov rdi, rax
test rax, rax
je 0x180039bed
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 0x180039c18
cmp ebx, esi
je 0x180039c18
cmp ebx, 0x8000
ja 0x180039c18
cmp ebx, esi
jb 0x180039c13
mov edx, ebx
mov rcx, rdi
call qword [0x180086010]
mov rdi, rax
test rax, rax
jne 0x180039bb0
mov rcx, rbp
call qword [fcn.18004f49c]
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 0x180039bf8
mov rcx, rdi
jmp 0x180039bf0
jmp 0x180039b70

Function at 0x180039c20
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 [0x180086010]
mov rdi, rax
test rax, rax
je 0x180039bed
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 0x180039c18
cmp ebx, esi
je 0x180039c18
cmp ebx, 0x8000
ja 0x180039c18
cmp ebx, esi
jb 0x180039c13
mov edx, ebx
mov rcx, rdi
call qword [0x180086010]
mov rdi, rax
test rax, rax
jne 0x180039bb0
mov rcx, rbp
call qword [fcn.18004f49c]
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 0x180039bf8
mov rcx, rdi
jmp 0x180039bf0
jmp 0x180039b70
Function at 0x180044b00
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 [0x180086048]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
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 0x180044bcc
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.180044c40
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.180046240
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 0x180044bd0
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x180044c1a
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.180046490
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x180046070
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1800460b5
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x180046100
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x180046162
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x180046120
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1800461a3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x180074f1a]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x180074f1b]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x180046170
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret

Function at 0x180046240
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1800462a5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x180046250
ret

Function at 0x18006016c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180060149
call fcn.180055838
mov dword [rax], socket
call fcn.18004f280
or eax, 0xffffffff
jmp 0x180060166
sub dword [rcx + 0x10], 1
jns 0x180060158
add rsp, 0x28
jmp fcn.18005f9f0
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180060128
Function at 0x18006438c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800643ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800557c8
or eax, 0xffffffff
jmp 0x1800643ae
xor eax, eax
add rsp, 0x28
ret