joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400842f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x140084328
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140084440
cmp byte [rcx + 0xe9e], 0
je 0x140084340
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140085160
cmp byte [rcx + 0xea1], 0
je 0x1400843e1
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x14008439b
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x14008437e
cmp byte [rcx + 0xe9d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.14009fc80
test eax, eax
je 0x1400843d1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x1400843c1
lea rdx, str.PRET_STOR__s
call fcn.14009fc80
test eax, eax
je 0x1400843d1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.14009fc80
test eax, eax
jne 0x1400843ee
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400850d0
add rsp, 0x20
pop rbx
ret

Function at 0x140084720
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 0x14008476d
cmp qword [rcx + 0x820], 0
je 0x14008476d
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.14009fc80
test eax, eax
jne 0x140084777
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400842f0
add rsp, 0x20
pop rbx
ret

Function at 0x140084a10
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 0x140084a5c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140084a5c
lea rdx, str.SIZE__s
call fcn.14009fc80
test eax, eax
jne 0x140084a69
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140084720
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x140084d08
cmp qword [rcx + 0x820], 0
je 0x140084d08
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x140084d08
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.140082a80
jmp fcn.140084a10
Function at 0x140084d10
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x140084d45
lea rdx, str.Couldnt_set_desired_mode
call fcn.140072470
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x140084d5c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400725f0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x140084d78
mov rcx, rdi
call fcn.140084a10
jmp 0x140084eb0
cmp esi, 0x14
jne 0x140084e92
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x140084dfa
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x140084dfa
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.14008fca0
test eax, eax
jne 0x140084eb0
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.140100d60
test rax, rax
je 0x140084def
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x140084dfa
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400ad178]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x140084e1e
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14011a180]
test rbp, rbp
mov r9, r8
lea rax, [0x140125110]
cmovne r9, rbp
lea rcx, [0x14012c528]
cmovne r8, rax
call fcn.14008a280
mov rcx, rbp
mov r14, rax
call qword [fcn.1400ad178]
test r14, r14
jne 0x140084e5d
lea ebx, [r14 + 0x1b]
jmp 0x140084eb2
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x140128164]
call fcn.14009fc80
mov rcx, r14
mov esi, eax
call qword [fcn.1400ad178]
test esi, esi
je 0x140084e86
mov ebx, esi
jmp 0x140084eb2
mov dword [rdi + 0x850], 0x1f
jmp 0x140084eb2
cmp esi, 0x15
jne 0x140084e9d
lea r8d, [rsi - 8]
jmp 0x140084ea6
cmp esi, 0x16
jne 0x140084eb2
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.140084440
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400903c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.1400acf10
sub rsp, rax
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.1400d4360
mov byte [rsp + 0x20], 0
test rax, rax
je 0x14009042c
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x14009042c
lea rcx, [rsp + 0x20]
call qword [case.0x14006e549.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x1038
ret

Function at 0x140090ae0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x140090ca4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x140090c84
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140090b3d
lea ebp, [rax + 0xe]
jmp 0x140090b49
cmp eax, 0x17
jne 0x140090bf1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x140090bf1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140090bf1
cmp rax, rbp
jb 0x140090bf1
mov ecx, gethostbyname
call qword [fcn.1400ad170]
mov rdi, rax
test rax, rax
je 0x140090c2c
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.1400ad170]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140090c1b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140022be0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140090bde
call qword [case.0x14006e549.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140090c00
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x140090bee
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140090b30
jmp 0x140090c32
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400ad178]
mov rcx, rdi
call qword [fcn.1400ad178]
jmp 0x140090c32
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400ad178]
jmp 0x140090c32
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x140090c47
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x140090c7f
test rbx, rbx
je 0x140090c7a
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400ad178]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400ad178]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400ad178]
mov rbx, rdi
test rdi, rdi
jne 0x140090c51
mov rbx, r13
jmp 0x140090c93
test rbx, rbx
jne 0x140090c93
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x14009b340
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 [0x140163ee8]
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 0x14009b395
jmp 0x14009b544
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 0x14009b51b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14009b51b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14009b51b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14009b51b
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 0x14009b51b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14009b51b
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 0x14009b51b
mov r9, rsi
lea r8, [0x140133fa0]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14008a3a0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14009b4b5
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 0x14009b51b
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 0x14009b51b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140021c60
test eax, eax
jne 0x14009b51b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14009b53c
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.1400acab0
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400abc00
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 [fcn.1400ad170]
mov rbx, rax
test rax, rax
jne 0x1400abc45
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 0x1400abc90
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 0x1400abcf2
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 0x1400abcb0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400abd33
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140136a81]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140136a82]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400abd00
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 0x1400ad080
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400ad0a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400ad0a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400e56ac
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400e56f6
call fcn.14000cad0
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14000caf0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000a740
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400acab0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400e5701
lea eax, [rbx + 1]
jmp 0x1400e56e3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400e56e1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400e56e3
Function at 0x1400eca54
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14013bb30]
mov rbp, rcx
call fcn.140014338
xor edi, edi
test rax, rax
je 0x1400ecb3a
mov ebx, edi
call fcn.14000caf0
mov r14d, dword [rax]
call fcn.14000caf0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400f7c3c
mov rsi, rax
test rax, rax
je 0x1400ecacb
call fcn.14000caf0
mov dword [rax], r14d
jmp 0x1400ecaf5
call fcn.14000caf0
cmp dword [rax], 0x22
jne 0x1400ecb32
call fcn.14000caf0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400f7c3c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400ecb32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400ecaf9
cmp rax, 3
je 0x1400ecb14
mov rcx, rsi
call fcn.1400ec99c
test al, al
je 0x1400ecb25
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400ecb25
mov dil, 1
mov rcx, rbx
call fcn.1400ad178
mov al, dil
jmp 0x1400ecb3c
mov rcx, rbx
call fcn.1400ad178
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400acab0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ee120
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400acf10
sub rsp, rax
mov rax, qword [0x140163ee8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ce18
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400ee16f
mov rax, rbp
jmp 0x1400ee277
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x169290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400207e4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x169290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400ee273
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ee273
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400207e4
test rax, rax
js 0x1400ee273
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400ee273
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400ee265
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400ee265
cmp byte [rcx], 0xd
jne 0x1400ee24b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400ee25a
cmp byte [rcx + 1], 0xa
jne 0x1400ee25a
inc rcx
jmp 0x1400ee25a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1647e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400ee22d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400ee277
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400acab0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400f593c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400f5952
mov al, 1
jmp 0x1400f59b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400f5963
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400f59b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d390
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f59b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f59b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400f59b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400f59b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401001e8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400207ec
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400207ec
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140100338
cmp rax, 0xffffffffffffffff
je 0x140100338
xor edi, edi
test rbp, rbp
jle 0x1401002e3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140008d60
mov rbx, rax
test rax, rax
jne 0x140100270
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401002d9
mov edx, 0x8000
mov ecx, r14d
call fcn.140003afc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001dcd4
cmp eax, 0xffffffff
je 0x1401002b9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140100280
mov edx, r15d
mov ecx, r14d
call fcn.140003afc
jmp 0x1401002d9
cmp byte [rsi + 0x38], dil
je 0x1401002d0
cmp dword [rsi + 0x34], 5
jne 0x1401002d0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1401002d9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140008528
jmp 0x14010034c
jns 0x14010034c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400207ec
cmp rax, 0xffffffffffffffff
jne 0x140100304
cmp byte [rsi + 0x30], dil
je 0x14010034c
mov edi, dword [rsi + 0x2c]
jmp 0x14010034c
mov ecx, r14d
call fcn.14000d390
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14010034c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14010034c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140100345
mov eax, dword [rsi + 0x2c]
jmp 0x14010034a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400207ec
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140104330
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140104580
mov r11d, eax
lea edx, [rax*4]
movsxd r9, edx
test edx, edx
jle 0x1401043ad
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rcx, [rbx + 8]
nop
mov edx, dword [rcx - 8]
add r10, 4
mov eax, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rcx - 8], eax
lea rcx, [rcx + 0x10]
mov eax, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rcx - 0x14]
mov dword [rcx - 0x14], eax
mov eax, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rcx - 0x10]
mov dword [rcx - 0x10], eax
mov eax, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rcx - 0xc]
mov dword [rcx - 0xc], eax
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x140104360
cmp r11d, 1
jle 0x140104569
mov qword [rsp + 0x30], rdi
lea r10d, [r11 - 1]
lea rdi, [0x140000000]
add rbx, 4
nop dword [rax + rax]
mov r9d, dword [rbx + 0x10]
lea rbx, [rbx + 0x10]
mov edx, dword [rbx - 4]
movzx eax, byte [rbx - 3]
movzx ecx, byte [rdi + rax*4 + 0x140d90]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x141990]
movzx eax, byte [rdi + rax*4 + 0x140d90]
xor r8d, dword [rdi + rax*4 + 0x141190]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x140d90]
movzx eax, byte [rbx - 2]
xor r8d, dword [rdi + rcx*4 + 0x141d90]
movzx ecx, byte [rdi + rax*4 + 0x140d90]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x141590]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x140d90]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x141590]
movzx eax, byte [rdi + rcx*4 + 0x140d90]
xor r8d, dword [rdi + rax*4 + 0x141990]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x140d90]
movzx eax, r9b
mov r9d, dword [rbx + 4]
xor r8d, dword [rdi + rcx*4 + 0x141190]
movzx ecx, byte [rdi + rax*4 + 0x140d90]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x141d90]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx], r8d
movzx edx, byte [rdi + rcx*4 + 0x140d90]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x141590]
movzx eax, byte [rdi + rcx*4 + 0x140d90]
xor r8d, dword [rdi + rax*4 + 0x141990]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x140d90]
movzx eax, r9b
mov r9d, dword [rbx + 8]
xor r8d, dword [rdi + rcx*4 + 0x141190]
movzx ecx, byte [rdi + rax*4 + 0x140d90]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x141d90]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [rbx + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x140d90]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x141590]
movzx eax, byte [rdi + rcx*4 + 0x140d90]
xor r8d, dword [rdi + rax*4 + 0x141990]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x140d90]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x141190]
movzx ecx, byte [rdi + rax*4 + 0x140d90]
xor r8d, dword [rdi + rcx*4 + 0x141d90]
mov dword [rbx + 8], r8d
sub r10, 1
jne 0x1401043d0
mov rdi, qword [rsp + 0x30]
mov eax, r11d
add rsp, 0x20
pop rbx
ret