joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab510
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 [0x1401a85a8]
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], pe_nt_image_headers64
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400ab58a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
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.1400a0870
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400ab5af
lea rdx, str.Error_accept__ing_server_connect
call fcn.14009b9b0
lea eax, [rbx + 0x1f]
jmp 0x1400ab628
lea rdx, str.Connection_accepted_from_server_n
call fcn.14009bb30
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.1400c4bf0
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x1400ab626
mov dl, 1
mov rcx, rsi
call fcn.14009d280
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.14009d280
test ebx, ebx
je 0x1400ab626
mov rcx, rdi
call fcn.1400abc80
mov eax, 0x2a
jmp 0x1400ab628
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400d5fe0
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 0x1400acf60
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 0x1400acf85
cmp dword [rax + 0x9f0], 0
je 0x1400acfb1
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400acfb1
lea rdx, str.MDTM__s
call fcn.1400c9300
test eax, eax
jne 0x1400acfbe
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ae1f0
add rsp, 0x20
pop rbx
ret
Function at 0x1400ad830
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 0x1400ad868
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.1400ad980
cmp byte [rcx + 0xe9e], 0
je 0x1400ad880
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ae6a0
cmp byte [rcx + 0xea1], 0
je 0x1400ad921
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400ad8db
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400ad8be
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.1400c9300
test eax, eax
je 0x1400ad911
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x1400ad901
lea rdx, str.PRET_STOR__s
call fcn.1400c9300
test eax, eax
je 0x1400ad911
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400c9300
test eax, eax
jne 0x1400ad92e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ae610
add rsp, 0x20
pop rbx
ret

Function at 0x1400adc60
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 0x1400adcad
cmp qword [rcx + 0x820], 0
je 0x1400adcad
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400c9300
test eax, eax
jne 0x1400adcb7
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400ad830
add rsp, 0x20
pop rbx
ret

Function at 0x1400adf50
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 0x1400adf9c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400adf9c
lea rdx, str.SIZE__s
call fcn.1400c9300
test eax, eax
jne 0x1400adfa9
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400adc60
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x1400ae248
cmp qword [rcx + 0x820], 0
je 0x1400ae248
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x1400ae248
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.1400abfc0
jmp fcn.1400adf50
Function at 0x1400ae250
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 0x1400ae285
lea rdx, str.Couldnt_set_desired_mode
call fcn.14009b9b0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400ae29c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14009bb30
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400ae2b8
mov rcx, rdi
call fcn.1400adf50
jmp 0x1400ae3f0
cmp esi, 0x14
jne 0x1400ae3d2
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x1400ae33a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x1400ae33a
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.1400b9320
test eax, eax
jne 0x1400ae3f0
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.140122258
test rax, rax
je 0x1400ae32f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400ae33a
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400d66a8]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x1400ae35e
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14013a40c]
test rbp, rbp
mov r9, r8
lea rax, [0x14014a588]
cmovne r9, rbp
lea rcx, [0x140147ce8]
cmovne r8, rax
call fcn.1400b38a0
mov rcx, rbp
mov r14, rax
call qword [fcn.1400d66a8]
test r14, r14
jne 0x1400ae39d
lea ebx, [r14 + 0x1b]
jmp 0x1400ae3f2
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x14014a3bc]
call fcn.1400c9300
mov rcx, r14
mov esi, eax
call qword [fcn.1400d66a8]
test esi, esi
je 0x1400ae3c6
mov ebx, esi
jmp 0x1400ae3f2
mov dword [rdi + 0x850], 0x1f
jmp 0x1400ae3f2
cmp esi, 0x15
jne 0x1400ae3dd
lea r8d, [rsi - 8]
jmp 0x1400ae3e6
cmp esi, 0x16
jne 0x1400ae3f2
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400ad980
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 0x1400b9a40
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.1400d6440
sub rsp, rax
mov rax, qword [0x1401a85a8]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.140112d48
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400b9aac
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400b9aac
lea rcx, [rsp + 0x20]
call qword [case.0x1400977c9.0]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400d5fe0
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400d5fe0
add rsp, 0x1038
ret

Function at 0x1400ba160
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 0x1400ba324
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400ba304
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400ba1bd
lea ebp, [rax + 0xe]
jmp 0x1400ba1c9
cmp eax, 0x17
jne 0x1400ba271
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400ba271
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400ba271
cmp rax, rbp
jb 0x1400ba271
mov ecx, 0x30
call qword [fcn.1400d66a0]
mov rdi, rax
test rax, rax
je 0x1400ba2ac
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.1400d66a0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400ba29b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140024830
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400ba25e
call qword [case.0x1400977c9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400ba280
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400ba26e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400ba1b0
jmp 0x1400ba2b2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1400d66a8]
mov rcx, rdi
call qword [fcn.1400d66a8]
jmp 0x1400ba2b2
mov rcx, rdi
mov r14d, 8
call qword [fcn.1400d66a8]
jmp 0x1400ba2b2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400ba2c7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400ba2ff
test rbx, rbx
je 0x1400ba2fa
mov rcx, qword [rbx + 0x20]
call qword [fcn.1400d66a8]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1400d66a8]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1400d66a8]
mov rbx, rdi
test rdi, rdi
jne 0x1400ba2d1
mov rbx, r13
jmp 0x1400ba313
test rbx, rbx
jne 0x1400ba313
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 0x1400c49c0
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 [0x1401a85a8]
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 0x1400c4a15
jmp 0x1400c4bc4
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 0x1400c4b9b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400c4b9b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400c4b9b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400c4b9b
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 0x1400c4b9b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400c4b9b
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 0x1400c4b9b
mov r9, rsi
lea r8, [0x14014f708]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.1400b39c0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400c4b35
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 0x1400c4b9b
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 0x1400c4b9b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.1400238b0
test eax, eax
jne 0x1400c4b9b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400c4bbc
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.1400d5fe0
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400d5280
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.1400d66a0]
mov rbx, rax
test rax, rax
jne 0x1400d52c5
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 0x1400d5310
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 0x1400d5372
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 0x1400d5330
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x1400d53b3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1401521e1]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1401521e2]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d5380
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 0x1400ff200
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 [0x1401a85a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140154090]
mov rbp, rcx
call fcn.140015f5c
xor edi, edi
test rax, rax
je 0x1400ff2e6
mov ebx, edi
call fcn.14000e714
mov r14d, dword [rax]
call fcn.14000e714
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14011a7c4
mov rsi, rax
test rax, rax
je 0x1400ff277
call fcn.14000e714
mov dword [rax], r14d
jmp 0x1400ff2a1
call fcn.14000e714
cmp dword [rax], 0x22
jne 0x1400ff2de
call fcn.14000e714
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14011a7c4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400ff2de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400ff2a5
cmp rax, 3
je 0x1400ff2c0
mov rcx, rsi
call fcn.1400ff148
test al, al
je 0x1400ff2d1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400ff2d1
mov dil, 1
mov rcx, rbx
call fcn.1400d66a8
mov al, dil
jmp 0x1400ff2e8
mov rcx, rbx
call fcn.1400d66a8
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400d5fe0
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 0x1401113c0
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.1400d6440
sub rsp, rax
mov rax, qword [0x1401a85a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ea58
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14011140f
mov rax, rbp
jmp 0x140111517
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 + 0x1ac960]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140022424
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1ac960]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140111513
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 0x140111513
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140022424
test rax, rax
js 0x140111513
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140111513
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140111505
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140111505
cmp byte [rcx], 0xd
jne 0x1401114eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401114fa
cmp byte [rcx + 1], 0xa
jne 0x1401114fa
inc rcx
jmp 0x1401114fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1a8ea0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401114cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140111517
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400d5fe0
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 0x140118eb8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140118ece
mov al, 1
jmp 0x140118f2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140118edf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140118f2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000efb4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140118f2c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140118f2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140118f2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140118f2e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401208a8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401a85a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401208f2
call fcn.14000e6f4
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14000e714
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000c364
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d5fe0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401208fd
lea eax, [rbx + 1]
jmp 0x1401208df
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 0x1401208dd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401208df

Function at 0x140121c30
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.14002242c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002242c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140121d80
cmp rax, 0xffffffffffffffff
je 0x140121d80
xor edi, edi
test rbp, rbp
jle 0x140121d2b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000a984
mov rbx, rax
test rax, rax
jne 0x140121cb8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140121d21
mov edx, 0x8000
mov ecx, r14d
call fcn.140005720
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.14001f914
cmp eax, 0xffffffff
je 0x140121d01
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140121cc8
mov edx, r15d
mov ecx, r14d
call fcn.140005720
jmp 0x140121d21
cmp byte [rsi + 0x38], dil
je 0x140121d18
cmp dword [rsi + 0x34], 5
jne 0x140121d18
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140121d21
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000a14c
jmp 0x140121d94
jns 0x140121d94
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002242c
cmp rax, 0xffffffffffffffff
jne 0x140121d4c
cmp byte [rsi + 0x30], dil
je 0x140121d94
mov edi, dword [rsi + 0x2c]
jmp 0x140121d94
mov ecx, r14d
call fcn.14000efb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140121d94
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 0x140121d94
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140121d8d
mov eax, dword [rsi + 0x2c]
jmp 0x140121d92
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002242c
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 0x140131591
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov rdx, qword [rsi]
mov qword [rsp], 0x6014fdbe
add rsi, 8
push 0xffffffff912bd106
sub r11, 1
mov r9d, dword [rsp + 7]
lea r9, [r9 + r9*8 - 0x4c42a64d]
neg r9d
movzx r9d, byte [r11]
inc qword [rsp + 0xa]
dec byte [rsp + 0x12]
xor r9b, bl
mov qword [rsp + 2], 0x2c226f97
call fcn.140145fb4
mov edx, dword [rsp + 1]
rdtsc
sub rbp, 8
mov dword [rbp + 4], eax
push 0x2a4bb18
mov dword [rbp + riz], edx
push 0x65024b3f
lea rsp, [rsp + 0x18]
jmp fcn.14015a131

Function at 0x14013bcf6
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov rax, qword [r9 + rax*2 - 0x9818f2]
jbe 0x140141502
xchg edx, ebx
jmp fcn.14015417c
ror r9w, 1
xor r10w, r9w
ror al, 0x86
pop rax
mov eax, 0x9818f334
adc r9, rsp
sar rax, 0x89
jne 0x14012933b
mov edx, 0x5b95348a
sub dx, dx
rdtsc
call fcn.14015782c
push 0xffffffff98b3bb3c
push 0xfffffffff121da94
sub rbp, 8
mov qword [rbp + riz], rax
push 0xffffffffbdb36e9b
jmp 0x140154bb0
lea rsp, [rsp + 0x18]
jmp fcn.14015a131

Function at 0x14015c6c6
Capabilities:
Encode data using xor

Disassembly:
add rbp, 0xc
xor edi, edi
mov qword [rsp], 0x713b2d8f
test rcx, rcx
lea rsp, [rsp + 8]
je 0x14015c74a
push r11
lea r11, [0x14013ff28]
movzx esi, byte [rbx]
xor esi, edi
push 0xfffffffff2145f80
and esi, 0xff
push 0xffffffff902ce5bb
mov esi, dword [r11 + rsi*4]
push 0xffffffff86aa9d12
shr edi, 8
xor word [rsp + 0xa], 0x761f
xor edi, esi
shr dword [rsp + 7], 0x1c
push 0x1686bd3b
inc rbx
rol dword [rsp + 0xd], 0xa1
neg byte [rsp + 2]
xor edi, 0xd308479d
dec rcx
lea rsp, [rsp + 0x20]
jne 0x14015c6ee
mov r11d, 0x5d057931
pop r11
push 0x60185a3f
not edi
mov dword [rbp + riz], edi
call fcn.14014c3f9

Function at 0x140163d30
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
mov qword [rsp], 0x6ea8ce30
sub rbp, 8
mov dword [rbp + 4], eax
jmp 0x14013c374

Function at 0x1401679ab
Capabilities:
Execute anti-debugging instructions

Disassembly:
add rsi, 2
xor cx, r11w
mov qword [rsp], 0xffffffffa0223fbf
inc cx
neg cx
add cx, 0x7d2c
neg cx
call fcn.140169687
mov eax, 0xcb30c315
movzx edx, al
rdtsc
sub rsi, 8
push 0x240806b6
mov dword [rsi + 4], eax
mov dword [rsi], edx
lea rsp, [rsp + 8]
jmp fcn.14016803e