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

Disassembly:
push rbp
mov rbp, rsp
push r13
push r12
push rsi
mov rsi, rdx
mov edx, 8
push rbx
mov rbx, rcx
mov ecx, 1
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400d42f9
mov qword [rax], rsi
mov r12, rax
mov rbx, qword [rbx + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [0x1403e9d60]
cmp byte [rax], 0
je 0x1400d4214
mov eax, 0xffffffff
test rbx, rbx
je 0x1400d41e7
mov eax, dword [rbx]
mov dword [rsp + 0x38], eax
lea rax, str.Sent_ptr__p_to_esocket_queue__p___d_
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x30], rbx
lea r8, str.dap_events_socket
xor ecx, ecx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
mov edx, 0x10
mov ecx, 0x20
call qword [sym.imp.msvcrt.dll__aligned_malloc]
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov qword [rdx + 0x10], rax
mov rcx, qword [rbx + 0x2f8]
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
test rax, rax
je 0x1400d4250
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop r12
pop r13
pop rbp
ret
movzx eax, word [rbx + 0x1c]
mov edx, 2
mov r13, qword [rbx]
mov ecx, 0x7f000001
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov word [rsp + 0x50], dx
mov word [rsp + 0x52], ax
call qword [sym.imp.WS2_32.dll_htonl]
xor r9d, r9d
lea rdx, [rsp + 0x48]
mov rcx, r13
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x50]
mov r8d, 8
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x1400d4242
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1400d4242
lea rax, str.Cant_send__llu_uuid_in_queue
mov qword [rsp + 0x28], rsi
xor ecx, ecx
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, str.dap_events_socket
call fcn.14005a0c0
lea rsp, [rbp - 0x20]
mov rcx, r12
pop rbx
pop rsi
pop r12
pop r13
pop rbp
jmp sub.msvcrt.dll_free
lea rax, [0x1402c412e]
mov r9d, 8
lea r8, str.dap_events_socket
mov edx, 0x6b5
mov qword [rsp + 0x20], rax
lea rcx, str.dap_events_socket_remove_and_delete_mt
call fcn.14005a0c0
jmp 0x1400d4242

Function at 0x1400d56b0
Capabilities:
Read file on windows

Disassembly:
test rcx, rcx
je 0x1400d5710
push r12
mov r12, rdx
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400d5700
mov qword [rdx], 0
mov rbx, r8
test r8, r8
je 0x1400d56da
mov qword [r8], 0
lea rdx, [0x1403e7195]
call sub.msvcrt.dll_fopen
mov rcx, rax
test rax, rax
je 0x1400d5700
add rsp, 0x28
mov r8, rbx
mov rdx, r12
pop rbx
pop r12
jmp fcn.140126c50
add rsp, 0x28
xor eax, eax
pop rbx
pop r12
ret
xor eax, eax
ret

Function at 0x1400d5720
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rcx, rcx
je 0x1400d5740
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
xor eax, eax
ret

Function at 0x1400d5750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test rcx, rcx
je 0x1400d5780
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400d5770
shr al, 7
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
xor eax, eax
ret
Function at 0x1400d5b10
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
xor r14d, r14d
push r13
push r12
mov r12, rcx
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x160
call sub.msvcrt.dll_strlen
lea rdi, [rsp + 0x4c]
lea rcx, [rax + 2]
mov rbx, rax
call sub.msvcrt.dll_malloc
mov r8, rbx
mov rdx, r12
mov r13, rax
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov byte [r13 + rbx], 0x2a
mov rcx, r13
mov byte [r13 + rbx + 1], 0
lea rbx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov r12, rax
nop
mov rdx, rbx
mov rcx, r12
call rsi
test eax, eax
je 0x1400d5bd4
cmp dword [rsp + 0x20], 0x10
jne 0x1400d5b80
cmp word [rdi], 0x2e2e
je 0x1400d5c00
cmp word [rdi], 0x2e
je 0x1400d5b80
mov ecx, 0x10
call sub.msvcrt.dll_malloc
mov rcx, rdi
mov r15, rax
call fcn.140101e30
mov qword [r15 + 8], 0
mov qword [r15], rax
test r14, r14
jne 0x1400d5c10
mov r14, r15
mov rdx, rbx
mov rcx, r12
call rsi
test eax, eax
jne 0x1400d5b8c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r13
call sub.msvcrt.dll_free
lea rsp, [rbp - 0x38]
mov rax, r14
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp byte [rdi + 2], 0
je 0x1400d5b80
jmp 0x1400d5b9a
mov rax, r14
nop dword [rax + rax]
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400d5c18
mov qword [rdx + 8], r15
jmp 0x1400d5b80
Function at 0x1400dcb70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x58
test r8, r8
je 0x1400dcd39
lea rax, str.Checking_url_path__s
mov r12, r8
xor r9d, r9d
mov r15, rcx
mov qword [rsp + 0x28], r8
xor ecx, ecx
mov r14, rdx
lea r8, str.dap_http_folder
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.14005a0c0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400dccc0
test al, 0x10
je 0x1400dccc0
lea rax, str.File_service_for__s____s
mov qword [rsp + 0x30], r12
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.dap_http_folder
mov qword [rsp + 0x28], r14
call fcn.14005a0c0
mov edx, 0x1008
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x1400dcd7f
mov r8d, 0xfff
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_strncpy
mov ecx, 0x492
call fcn.1400019f8
mov qword [r13 + 0x1000], rax
mov rcx, rax
test rax, rax
je 0x1400dcd42
lea rdx, str.data.mag
call fcn.140001b7e
mov r12d, eax
test eax, eax
jne 0x1400dccf0
lea rax, [0x1400dcdd0]
xor r9d, r9d
mov r8, r13
mov rdx, r14
mov qword [rsp + 0x40], rax
lea rax, [0x1400dcdc0]
mov rcx, r15
mov qword [rsp + 0x38], rax
lea rax, [0x1400dcf20]
mov qword [rsp + 0x30], rax
lea rax, [0x1400dcec0]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
call fcn.1400da490
add rsp, 0x58
mov eax, r12d
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.Directory_Not_Found_
mov qword [rsp + 0x20], rax
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, str.dap_http_folder
mov r12d, 0xfffffff5
call fcn.14005a0c0
jmp 0x1400dccab
lea rax, str.Cant_load_MIME_magic_detection_database
mov r9d, 8
lea r8, str.dap_http_folder
mov edx, 0x8c
mov qword [rsp + 0x20], rax
lea rcx, str.dap_http_folder_add
mov r12d, 0xfffffffe
call fcn.14005a0c0
mov rcx, qword [r13 + 0x1000]
call fcn.140001b59
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x1400dccab
lea rax, str.Directory_Path_parameter_is_empty_
jmp 0x1400dccc7
lea rax, str.Cant_init_MIME_detection_library
mov r9d, 8
lea r8, str.dap_http_folder
mov edx, 0x81
mov qword [rsp + 0x20], rax
lea rcx, str.dap_http_folder_add
mov r12d, 0xffffffff
call fcn.14005a0c0
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x1400dccab
lea rax, [0x1402c0b68]
mov r9d, 8
or r12d, 0xffffffff
mov edx, 0x79
mov qword [rsp + 0x20], rax
lea r8, str.dap_http_folder
lea rcx, str.dap_http_folder_add
call fcn.14005a0c0
jmp 0x1400dccab
Function at 0x1400f9e40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400f9fa5
cmp byte [rcx], 0
mov r12, rcx
je 0x1400f9fa5
call sub.msvcrt.dll_strlen
mov rbx, rax
lea r8, [rax + 1]
lea rax, [rax + 0x10]
shr rax, 4
shl rax, 4
call fcn.1400358f0
xor edx, edx
sub rsp, rax
lea rsi, [rsp + 0x20]
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rdx, r12
mov rcx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcpy
movzx eax, byte [rsp + 0x20]
mov rdx, rsi
mov ecx, eax
and ecx, 0xffffffdf
sub ecx, 0x41
cmp cl, 0x19
jbe 0x1400f9f61
mov rdi, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop
xor ebx, ebx
test al, al
je 0x1400f9ee0
cmp al, 0x5c
je 0x1400f9f40
cmp al, 0x2f
je 0x1400f9f40
movzx eax, byte [rdx + 1]
xor ebx, ebx
add rdx, 1
test al, al
jne 0x1400f9ec6
nop dword [rax]
mov rcx, rsi
call rdi
cmp eax, 0xffffffff
je 0x1400f9eee
test al, 0x10
jne 0x1400f9f02
mov rcx, rsi
call sub.msvcrt.dll__mkdir
mov r12d, eax
cmp eax, 0xffffffff
je 0x1400f9f8b
test rbx, rbx
je 0x1400f9f50
movzx eax, byte [rbx + 1]
mov byte [rbx], 0x5c
lea rdx, [rbx + 1]
xor ebx, ebx
test al, al
jne 0x1400f9f2c
jmp 0x1400f9ee0
movzx eax, byte [rdx + 1]
add rdx, 1
test al, al
je 0x1400f9ec0
cmp al, 0x5c
je 0x1400f9f20
cmp al, 0x2f
je 0x1400f9f20
jmp 0x1400f9ec0
mov byte [rdx], 0
mov rbx, rdx
jmp 0x1400f9ee0
xor r12d, r12d
lea rsp, [rbp - 0x20]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
cmp byte [rsp + 0x21], 0x3a
jne 0x1400f9eb8
movzx ecx, byte [rsi + 2]
cmp cl, 0x5c
je 0x1400f9f7e
cmp cl, 0x2f
jne 0x1400f9eb8
movzx eax, byte [rsi + 3]
lea rdx, [rsi + 3]
jmp 0x1400f9eb8
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x14
lea rsp, [rbp - 0x20]
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x16
jmp 0x1400f9f53
Function at 0x1400fa960
Capabilities:
Resolve dns

Disassembly:
push rbp
mov eax, 2
mov rbp, rsp
push r12
push rsi
mov rsi, r8
push rbx
mov ebx, edx
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
cmp edx, 2
mov edx, 0x17
cmovne eax, edx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 2
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rcx, qword [rsp + 0x28]
mov r12d, eax
test eax, eax
jne 0x1400faa48
test rcx, rcx
je 0x1400faa66
mov rdx, rcx
jmp 0x1400fa9fe
mov rdx, qword [rdx + 0x28]
mov qword [rsp + 0x28], rdx
test rdx, rdx
je 0x1400faa60
cmp dword [rdx + 4], ebx
jne 0x1400fa9f0
cmp ebx, 2
je 0x1400faa38
cmp ebx, 0x17
jne 0x1400fa9f0
mov rax, qword [rdx + 0x20]
mov rdx, qword [rax + 0x10]
mov rax, qword [rax + 8]
mov qword [rsi + 8], rdx
mov qword [rsi], rax
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rsp, [rbp - 0x18]
mov eax, r12d
pop rbx
pop rsi
pop r12
pop rbp
ret
mov rax, qword [rdx + 0x20]
mov eax, dword [rax + 4]
mov dword [rsi], eax
jmp 0x1400faa20
test rcx, rcx
jne 0x1400faa20
lea rsp, [rbp - 0x18]
mov eax, r12d
pop rbx
pop rsi
pop r12
pop rbp
ret
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rsp, [rbp - 0x18]
mov r12d, 0xffffffff
pop rbx
mov eax, r12d
pop rsi
pop r12
pop rbp
ret

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

Disassembly:
cmp qword [0x1403f1830], 0
je 0x1400fac90
sub rsp, 0x28
call fcn.140101e30
mov rcx, qword [0x1403f1830]
add rsp, 0x28
mov rdx, rax
jmp fcn.1400d3ee0
xor eax, eax
ret
Function at 0x1400fe3e0
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
mov rbp, rcx
push rdi
mov rdi, r8
push rsi
mov rsi, rdx
push rbx
mov ebx, r9d
sub rsp, 0x50
cmp r9d, 3
jg 0x1400fe488
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400fe4c9
mov qword [rax], rsi
lea r8, str.dap_proc_queue
mov qword [rax + 8], rdi
mov dword [rax + 0x14], ebx
mov rax, qword [0x1403e9d60]
cmp byte [rax], 0
mov eax, 0
mov dword [rsp + 0x40], ebx
cmove r8, rax
lea rax, str.Requested_l_msg:_p__callback:__p__p__pri:__d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
mov rax, qword [rbp + 8]
mov rdx, r12
mov rcx, qword [rax + 8]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400d3ee0
lea rax, str.Priority_level__d_is_incorrect__should_be_is_in_range__d__d_
mov dword [rsp + 0x28], r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 5
mov ebx, 2
lea r8, str.dap_proc_queue
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 1
call fcn.14005a0c0
jmp 0x1400fe400
add rsp, 0x50
mov eax, 0xfffffff4
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
push r13
mov r13, rcx
push r12
push rdi
mov rdi, r8
push rsi
mov rsi, rdx
push rbx
mov ebx, r9d
sub rsp, 0x50
cmp r9d, 3
jg 0x1400fe588
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400fe5c9
mov qword [rax], rsi
lea r8, str.dap_proc_queue
mov qword [rax + 8], rdi
mov dword [rax + 0x14], ebx
mov rax, qword [0x1403e9d60]
cmp byte [rax], 0
mov eax, 0
mov dword [rsp + 0x40], ebx
cmove r8, rax
lea rax, str.Requested_inter_l_msg:_p__callback:__p__p__pri:__d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
add rsp, 0x50
mov rdx, r12
mov rcx, r13
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400d3ff0
lea rax, str.Priority_level__d_is_incorrect__should_be_is_in_range__d__d_
mov dword [rsp + 0x28], r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 5
mov ebx, 2
lea r8, str.dap_proc_queue
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 1
call fcn.14005a0c0
jmp 0x1400fe501
add rsp, 0x50
mov eax, 0xfffffff4
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x1400fe870
Capabilities:
Send data
Send data on socket

Disassembly:
push r12
push rbp
mov rbp, r8
push rdi
mov rdi, rcx
mov ecx, 1
push rsi
mov rsi, r9
push rbx
mov rbx, rdx
mov edx, 0x10
sub rsp, 0x40
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400fe8fd
mov qword [rax], rbp
mov r12, rax
lea r8, str.dap_proc_thread
mov r9d, 1
mov qword [rax + 8], rsi
mov rax, qword [0x1403e9d60]
cmp byte [rax], 0
mov eax, 0
mov qword [rsp + 0x30], rbx
cmove r8, rax
lea rax, str.Msg_with_arg__p____worker__zu
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.14005a0c0
mov rax, qword [rdi + 0x28]
mov rdx, r12
mov rcx, qword [rax + rbx*8]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1400d3ff0
lea rax, [0x1402c4b88]
mov r9d, 8
lea r8, str.dap_proc_thread
mov edx, 0x1a5
mov qword [rsp + 0x20], rax
lea rcx, str.dap_proc_thread_worker_exec_callback_inter
call fcn.14005a0c0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400ffbc0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
sub rsp, 0x48
xor r8d, r8d
xor edx, edx
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400ffbf0
movzx eax, word [rsp + 0x36]
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x36]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400ffbe6
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, word [rsp + 0x36]
add rsp, 0x48
ret

Function at 0x1400ffc20
Capabilities:
Delete directory
Delete file

Disassembly:
jmp qword [sym.imp.msvcrt.dll__rmdir]
push r14
mov r14, rcx
push r13
push r12
sub rsp, 0x20
call fcn.140035f50
mov r12, rax
test rax, rax
je 0x1400ffcbe
nop
mov rcx, r12
call fcn.140036160
test rax, rax
je 0x1400ffc8d
cmp byte [rax + 8], 0x2e
lea rdx, [rax + 8]
jne 0x1400ffc5d
cmp byte [rdx + 1], 0
je 0x1400ffc40
cmp byte [rdx], 0x2e
je 0x1400ffcb0
xor r8d, r8d
mov rcx, r14
call fcn.140075570
mov r13, rax
mov rcx, rax
call fcn.1400ffc20
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.140036160
test rax, rax
jne 0x1400ffc4d
mov rcx, r12
call fcn.1400363b0
add rsp, 0x20
mov rcx, r14
pop r12
pop r13
pop r14
jmp 0x1400448b0
cmp byte [rdx + 1], 0x2e
jne 0x1400ffc62
cmp byte [rdx + 2], 0
je 0x1400ffc40
jmp 0x1400ffc62
add rsp, 0x20
mov rcx, r14
pop r12
pop r13
pop r14
jmp fcn.1400447a0
Function at 0x140107e20
Capabilities:
Send data
Send data on socket

Disassembly:
test rcx, rcx
je 0x140107e30
test rdx, rdx
je 0x140107e30
jmp fcn.1400d4190
ret

Function at 0x14010a880
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
test r8, r8
je 0x14010a94b
test r9d, r9d
je 0x14010a94b
movsxd r9, r9d
mov rbx, r8
shl r9, 4
lea rdi, [r8 + r9]
cmp r8, rdi
jae 0x14010a947
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, rcx
xor esi, esi
lea r13, [rsp + 0x3c]
jmp 0x14010a8dd
add rbx, 0x10
add esi, dword [rsp + 0x3c]
cmp rdi, rbx
jbe 0x14010a938
mov qword [rsp + 0x20], 0
mov r9, r13
mov r8d, dword [rbx + 8]
mov rcx, rbp
mov dword [rsp + 0x3c], 0
mov rdx, qword [rbx]
call r12
test eax, eax
jne 0x14010a8d0
cmp qword [rsp + 0xa0], 0
je 0x14010a91d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0xa0]
mov dword [rdx], eax
mov rax, 0xffffffffffffffff
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
add rsp, 0x48
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
jmp 0x14010a924
lea rax, str.Bad_input_data
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, [0x1403e5890]
call fcn.14005a0c0
mov rax, 0xffffffffffffffff
jmp 0x14010a924

Function at 0x14010b9d0
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14010b9f0
test r8, r8
je 0x14010b9f0
test rcx, rcx
je 0x14010b9f0
test r9, r9
je 0x14010b9f0
cmp qword [rcx + 0x20], 0
je 0x14010b9f0
jmp fcn.140072170
mov eax, 0xffffffff
ret
Function at 0x140117430
Capabilities:
Generate random numbers via winapi

Disassembly:
push r12
mov r12d, 1
push rsi
push rbx
sub rsp, 0x40
test rdx, rdx
jne 0x140117450
add rsp, 0x40
mov eax, r12d
pop rbx
pop rsi
pop r12
ret
mov rsi, rcx
mov rbx, rdx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [rsp + 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140117490
add rsp, 0x40
xor r12d, r12d
mov eax, r12d
pop rbx
pop rsi
pop r12
ret
mov edx, ebx
mov rcx, qword [rsp + 0x38]
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x140117478
jmp 0x140117443
Function at 0x14011ff40
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov eax, 1
mov ecx, edx
push rbp
shl rax, cl
mov rdx, rax
shr rdx, 1
mov rbp, rsp
and rsp, 0xfffffffffffffff0
cmp rax, rdx
jbe 0x14011ffc0
mov rcx, rax
sub rcx, rdx
cmp rcx, 1
je 0x14011ffac
mov r9, rcx
lea rax, [r8 + rdx*8]
movapd xmm1, xmmword [0x1403d0730]
shr r9, 1
shl r9, 4
add r9, rax
nop dword [rax]
movupd xmm0, xmmword [rax]
add rax, 0x10
xorpd xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp r9, rax
jne 0x14011ff88
mov rax, rcx
and rax, 0xfffffffffffffffe
add rdx, rax
cmp rcx, rax
je 0x14011ffc0
lea rax, [r8 + rdx*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403d0720]
movsd qword [rax], xmm0
leave
ret

Function at 0x140120760
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
mov eax, 1
mov ecx, r8d
shl rax, cl
mov r11, rax
shr r11, 1
je 0x140120910
push rbp
lea r8, [r11*8]
mov r10, rdx
lea rdx, [r11*8 + 0x10]
lea rcx, [r9 + r8]
mov rbp, rsp
push rbx
lea rbx, [r9 + 0x10]
sub rsp, 0x10
and rsp, 0xfffffffffffffff0
cmp rcx, rbx
setae bl
test rdx, rdx
movaps xmmword [rsp], xmm6
setle dl
or bl, dl
je 0x1401208a0
cmp r11, 1
je 0x1401208a0
shr rax, 2
movapd xmm5, xmmword [0x1403d0730]
add r8, r10
mov rbx, rax
mov rdx, rax
xor eax, eax
shl rbx, 4
nop
movupd xmm0, xmmword [rcx + rax]
movupd xmm2, xmmword [r8 + rax]
movupd xmm1, xmmword [r9 + rax]
movupd xmm3, xmmword [r10 + rax]
movupd xmm6, xmmword [r10 + rax]
xorpd xmm2, xmm5
movapd xmm4, xmm0
mulpd xmm3, xmm1
mulpd xmm4, xmm2
mulpd xmm0, xmm6
mulpd xmm1, xmm2
subpd xmm3, xmm4
addpd xmm0, xmm1
movups xmmword [r9 + rax], xmm3
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, rbx
jne 0x1401207e0
lea rcx, [rdx + rdx]
cmp r11, rcx
je 0x140120891
mov rax, rdx
lea rdx, [r11 + rcx]
shl rax, 4
lea rcx, [r9 + rdx*8]
movsd xmm2, qword [r10 + rdx*8]
xorpd xmm2, xmmword [0x1403d0720]
lea r8, [r9 + rax]
movsd xmm0, qword [rcx]
movsd xmm4, qword [r10 + rax]
movsd xmm1, qword [r8]
movapd xmm5, xmm0
mulsd xmm5, xmm2
movapd xmm3, xmm1
mulsd xmm3, xmm4
mulsd xmm0, xmm4
mulsd xmm1, xmm2
subsd xmm3, xmm5
addsd xmm0, xmm1
movsd qword [r8], xmm3
movsd qword [rcx], xmm0
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
movq xmm6, qword [0x1403d0720]
add r8, r10
xor eax, eax
nop dword [rax]
movsd xmm1, qword [r8 + rax*8]
movsd xmm2, qword [r10 + rax*8]
movsd xmm4, qword [r9 + rax*8]
movsd xmm3, qword [rcx + rax*8]
xorpd xmm1, xmm6
movapd xmm0, xmm1
movapd xmm1, xmm2
mulsd xmm1, xmm4
movapd xmm5, xmm0
mulsd xmm5, xmm3
mulsd xmm0, xmm4
mulsd xmm2, xmm3
subsd xmm1, xmm5
addsd xmm0, xmm2
movsd qword [r9 + rax*8], xmm1
movsd qword [rcx + rax*8], xmm0
add rax, 1
cmp rax, r11
jne 0x1401208b0
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
ret
Function at 0x140120aa0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov r8, rcx
mov r9d, 1
mov ecx, edx
shl r9, cl
mov rbp, rsp
and rsp, 0xfffffffffffffff0
test edx, edx
je 0x140120b10
mov rdx, r9
movapd xmm1, xmmword [0x1403d0730]
mov rax, r8
shr rdx, 1
shl rdx, 4
add rdx, r8
nop word [rax + rax]
movupd xmm0, xmmword [rax]
add rax, 0x10
xorpd xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rdx, rax
jne 0x140120ad8
mov rax, r9
and rax, 0xfffffffffffffffe
and r9d, 1
je 0x140120b0e
lea rax, [r8 + rax*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403d0720]
movsd qword [rax], xmm0
leave
ret
xor eax, eax
jmp 0x140120afa
Function at 0x140120eb0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r12
mov r12, rcx
mov r8d, 0x38
mov rcx, rdx
lea rdx, [r12 + 0x208]
sub rsp, 0x20
call fcn.140117e10
add rsp, 0x20
mov rcx, r12
pop r12
jmp fcn.140120ee0
Function at 0x140126c50
Capabilities:
Read file on windows

Disassembly:
push rbp
mov eax, 0x1030
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
call fcn.1400358f0
xor r13d, r13d
xor r15d, r15d
mov esi, 0x80000000
sub rsp, rax
mov qword [rbp + 0x18], rdx
mov r12, rcx
mov qword [rbp + 0x20], r8
mov qword [rsp + 0x28], 0
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140126d81
lea r14, [rsp + 0x30]
mov r9, r12
mov r8d, 0x1000
mov edx, 1
mov rcx, r14
call sub.msvcrt.dll_fread
mov rdi, rax
mov eax, 0xffffffff
sub rax, rdi
cmp rax, qword [rsp + 0x28]
jb 0x140126d2f
mov rax, qword [rsp + 0x28]
lea rbx, [rdi + rax]
jmp 0x140126d00
cmp r13, rsi
jae 0x140126d2f
add r13, r13
test r13, r13
je 0x140126d1f
mov rdx, r13
mov rcx, r15
call sub.msvcrt.dll_realloc
test rax, rax
je 0x140126d2f
mov r15, rax
cmp r13, rbx
ja 0x140126d58
test r15, r15
jne 0x140126ce0
lea r13, [rdi + 1]
mov eax, 0x1000
cmp r13, rax
cmova r13, rax
test r13, r13
jne 0x140126ced
test r15, r15
je 0x140126d2f
mov rcx, r15
xor r15d, r15d
call sub.msvcrt.dll_free
mov rcx, r15
call sub.msvcrt.dll_free
mov rcx, r12
call sub.msvcrt.dll_fclose
xor eax, eax
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140126d2f
mov rcx, qword [rsp + 0x28]
mov r8, rdi
mov rdx, r14
add rcx, r15
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x28], rbx
jmp 0x140126c8f
mov rcx, r12
call sub.msvcrt.dll_fclose
test r13, r13
je 0x140126dba
mov rax, qword [rsp + 0x28]
add rax, r15
cmp qword [rbp + 0x20], 0
mov byte [rax], 0
je 0x140126dac
mov rax, qword [rbp + 0x20]
mov rdi, qword [rsp + 0x28]
mov qword [rax], rdi
mov rax, qword [rbp + 0x18]
mov qword [rax], r15
mov eax, 1
jmp 0x140126d41
mov ecx, 1
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], 0
mov r15, rax
jmp 0x140126d96