joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f4e60
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 r12d, eax
test eax, eax
jne 0x1400f4f26
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x1400f4efe
jmp 0x1400f4f48
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x1400f4f48
cmp dword [rcx + 4], ebx
jne 0x1400f4ef0
cmp ebx, 2
je 0x1400f4f38
cmp ebx, 0x17
jne 0x1400f4ef0
mov rax, qword [rcx + 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 [rcx + 0x20]
mov eax, dword [rax + 4]
mov dword [rsi], eax
jmp 0x1400f4f20
lea rsp, [rbp - 0x18]
mov r12d, 0xffffffff
pop rbx
mov eax, r12d
pop rsi
pop r12
pop rbp
ret

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

Disassembly:
cmp qword [0x1403eb7f0], 0
je 0x1400f5170
sub rsp, 0x28
call fcn.1400fc420
mov rcx, qword [0x1403eb7f0]
add rsp, 0x28
mov rdx, rax
jmp fcn.1400cff70
xor eax, eax
ret
Function at 0x1400f89d0
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 0x1400f8a78
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400f8ab9
mov qword [rax], rsi
lea r8, str.dap_proc_queue
mov qword [rax + 8], rdi
mov dword [rax + 0x14], ebx
mov rax, qword [0x1403e4460]
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.14005a150
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.1400cff70
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.14005a150
jmp 0x1400f89f0
add rsp, 0x50
mov eax, 0xfffffff4
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400f8ad0
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 0x1400f8b78
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400f8bb9
mov qword [rax], rsi
lea r8, str.dap_proc_queue
mov qword [rax + 8], rdi
mov dword [rax + 0x14], ebx
mov rax, qword [0x1403e4460]
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.14005a150
add rsp, 0x50
mov rdx, r12
mov rcx, r13
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.1400d0080
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.14005a150
jmp 0x1400f8af1
add rsp, 0x50
mov eax, 0xfffffff4
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x1400f8e60
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 0x1400f8eed
mov qword [rax], rbp
mov r12, rax
lea r8, str.dap_proc_thread
mov r9d, 1
mov qword [rax + 8], rsi
mov rax, qword [0x1403e4460]
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.14005a150
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.1400d0080
lea rax, [0x1402bf2e8]
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.14005a150
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400fa1b0
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 0x1400fa1e0
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 0x1400fa1d6
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 0x1400fa210
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.140035ff0
mov r12, rax
test rax, rax
je 0x1400fa2ae
nop
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1400fa27d
cmp byte [rax + 8], 0x2e
lea rdx, [rax + 8]
jne 0x1400fa24d
cmp byte [rdx + 1], 0
je 0x1400fa230
cmp byte [rdx], 0x2e
je 0x1400fa2a0
xor r8d, r8d
mov rcx, r14
call fcn.1400750e0
mov r13, rax
mov rcx, rax
call fcn.1400fa210
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.140036200
test rax, rax
jne 0x1400fa23d
mov rcx, r12
call fcn.140036450
add rsp, 0x20
mov rcx, r14
pop r12
pop r13
pop r14
jmp 0x140044948
cmp byte [rdx + 1], 0x2e
jne 0x1400fa252
cmp byte [rdx + 2], 0
je 0x1400fa230
jmp 0x1400fa252
add rsp, 0x20
mov rcx, r14
pop r12
pop r13
pop r14
jmp fcn.140044838
Function at 0x140102420
Capabilities:
Send data
Send data on socket

Disassembly:
test rcx, rcx
je 0x140102430
test rdx, rdx
je 0x140102430
jmp fcn.1400d0220
ret

Function at 0x140104e50
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 0x140104f1b
test r9d, r9d
je 0x140104f1b
movsxd r9, r9d
mov rbx, r8
shl r9, 4
lea rdi, [r8 + r9]
cmp r8, rdi
jae 0x140104f17
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, rcx
xor esi, esi
lea r13, [rsp + 0x3c]
jmp 0x140104ead
add rbx, 0x10
add esi, dword [rsp + 0x3c]
cmp rdi, rbx
jbe 0x140104f08
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 0x140104ea0
cmp qword [rsp + 0xa0], 0
je 0x140104eed
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 0x140104ef4
lea rax, str.Bad_input_data
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, [0x1403dff90]
call fcn.14005a150
mov rax, 0xffffffffffffffff
jmp 0x140104ef4

Function at 0x140105fa0
Capabilities:
Encode data using xor

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

Disassembly:
push r12
mov r12d, 1
push rsi
push rbx
sub rsp, 0x40
test rdx, rdx
jne 0x140111a20
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 0x140111a60
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 0x140111a48
jmp 0x140111a13
Function at 0x14011a510
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 0x14011a590
mov rcx, rax
sub rcx, rdx
cmp rcx, 1
je 0x14011a57c
mov r9, rcx
lea rax, [r8 + rdx*8]
movapd xmm1, xmmword [0x1403cae30]
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 0x14011a558
mov rax, rcx
and rax, 0xfffffffffffffffe
add rdx, rax
cmp rcx, rax
je 0x14011a590
lea rax, [r8 + rdx*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403cae20]
movsd qword [rax], xmm0
leave
ret

Function at 0x14011ad30
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 0x14011aee0
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 0x14011ae70
cmp r11, 1
je 0x14011ae70
shr rax, 2
movapd xmm5, xmmword [0x1403cae30]
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 0x14011adb0
lea rcx, [rdx + rdx]
cmp r11, rcx
je 0x14011ae61
mov rax, rdx
lea rdx, [r11 + rcx]
shl rax, 4
lea rcx, [r9 + rdx*8]
movsd xmm2, qword [r10 + rdx*8]
xorpd xmm2, xmmword [0x1403cae20]
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 [0x1403cae20]
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 0x14011ae80
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
ret
Function at 0x14011b070
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 0x14011b0e0
mov rdx, r9
movapd xmm1, xmmword [0x1403cae30]
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 0x14011b0a8
mov rax, r9
and rax, 0xfffffffffffffffe
and r9d, 1
je 0x14011b0de
lea rax, [r8 + rax*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403cae20]
movsd qword [rax], xmm0
leave
ret
xor eax, eax
jmp 0x14011b0ca
Function at 0x14011b480
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.1401123e0
add rsp, 0x20
mov rcx, r12
pop r12
jmp fcn.14011b4b0
Function at 0x140121220
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.140035990
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 0x140121351
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 0x1401212ff
mov rax, qword [rsp + 0x28]
lea rbx, [rdi + rax]
jmp 0x1401212d0
cmp r13, rsi
jae 0x1401212ff
add r13, r13
test r13, r13
je 0x1401212ef
mov rdx, r13
mov rcx, r15
call sub.msvcrt.dll_realloc
test rax, rax
je 0x1401212ff
mov r15, rax
cmp r13, rbx
ja 0x140121328
test r15, r15
jne 0x1401212b0
lea r13, [rdi + 1]
mov eax, 0x1000
cmp r13, rax
cmova r13, rax
test r13, r13
jne 0x1401212bd
test r15, r15
je 0x1401212ff
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 0x1401212ff
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 0x14012125f
mov rcx, r12
call sub.msvcrt.dll_fclose
test r13, r13
je 0x14012138a
mov rax, qword [rsp + 0x28]
add rax, r15
cmp qword [rbp + 0x20], 0
mov byte [rax], 0
je 0x14012137c
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 0x140121311
mov ecx, 1
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], 0
mov r15, rax
jmp 0x140121366
Function at 0x1401218f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
mov rdi, rdx
push rsi
push rbx
sub rsp, 0x68
mov rbx, qword [rsp + 0xd0]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x38], r8
mov r14d, dword [rbx + 0x30]
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], rbx
mov eax, r14d
mov dword [rsp + 0x28], r14d
imul eax, esi
mov dword [rsp + 0x2c], esi
mov qword [rsp + 0x30], rax
add rax, r9
mov rcx, rax
mov qword [rsp + 0x50], rax
call sub.msvcrt.dll_malloc
mov r12, rax
test r14d, r14d
je 0x140121a27
mov r10d, esi
test esi, esi
je 0x140121a27
mov ebp, dword [rbx + 0x3c]
mov r11d, 1
mov esi, dword [rbx + 0x14]
mov dword [rsp + 0x24], 0
mov ebx, r11d
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov r14d, esi
shl ebx, cl
lea ecx, [rbp - 1]
shr r14d, 1
shl r11d, cl
lea r13d, [rbx - 1]
movsxd rbx, ebx
mov ecx, ebp
movsxd r11, r11d
mov rbp, rdi
movsxd r13, r13d
mov rdi, rbx
mov rbx, r11
mov r11d, r10d
nop dword [rax + rax]
mov r9d, dword [rsp + 0x24]
nop dword [rax]
mov r8d, r9d
mov r10, r14
mov r15, rbx
add r9d, 1
mov rdx, qword [rbp + r8*8]
mov rax, rdx
sub r10, rdx
sub rax, rsi
sar r10, 0x3f
xor rax, rdx
and rax, r10
xor rax, rdx
mov rdx, r13
and rdx, rax
mov r10, rdx
sub r15, rdx
sub r10, rdi
sar r15, 0x3f
xor r10, rdx
and r10, r15
xor rdx, r10
sub rax, rdx
sar rax, cl
mov byte [r12 + r8], al
cmp r9d, r11d
jne 0x1401219b8
mov r8d, dword [rsp + 0x2c]
add dword [rsp + 0x20], 1
add dword [rsp + 0x24], r8d
mov eax, dword [rsp + 0x20]
add r11d, r8d
cmp dword [rsp + 0x28], eax
jne 0x1401219b0
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
add rcx, r12
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0x48]
mov r9, qword [rsp + 0x50]
mov r8, r12
mov rcx, qword [rsp + 0x58]
mov edx, 0x20
mov eax, dword [rax]
test eax, eax
je 0x140121a7d
cmp eax, 3
je 0x140121a7d
call fcn.140054820
add rsp, 0x68
mov rcx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
call fcn.1400547f0
jmp 0x140121a65
Function at 0x1401303e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x250
mov r14d, dword [r9 + 8]
mov qword [rbp + 0x20], r8
lea r13, [rsp + 0x150]
mov r8d, dword [r9 + 0x10]
test r14d, r14d
je 0x140130587
lea rax, [r8 - 1]
lea rdi, [r8 - 2]
mov r11, rdx
mov r10, rcx
mov rsi, rax
mov qword [rsp + 0x38], rax
and rax, 0xfffffffffffffffc
mov r12, r8
mov qword [rsp + 0x40], rax
add rax, 1
shr rsi, 2
xor edx, edx
mov qword [rsp + 0x28], rax
shl rsi, 4
lea r13, [rsp + 0x150]
mov qword [rsp + 0x48], rdi
lea rdi, [rsp + 0x54]
mov qword [rsp + 0x30], rdi
add rsi, rdi
xor edi, edi
nop dword [rax + rax]
xor eax, eax
lea r9, [rsp + 0x50]
test r12d, r12d
je 0x1401305b0
lea ecx, [rdx + rax]
mov ecx, dword [r11 + rcx*4]
and ecx, dword [r10 + rax*4]
mov dword [r9 + rax*4], ecx
add rax, 1
cmp r8, rax
jne 0x140130480
mov eax, dword [rsp + 0x50]
cmp r8, 1
je 0x14013052a
cmp qword [rsp + 0x48], 2
jbe 0x1401305b9
mov rcx, qword [rsp + 0x30]
pxor xmm0, xmm0
nop dword [rax + rax]
movdqu xmm2, xmmword [rcx]
add rcx, 0x10
pxor xmm0, xmm2
cmp rsi, rcx
jne 0x1401304c0
movdqa xmm1, xmm0
psrldq xmm1, 8
pxor xmm0, xmm1
movdqa xmm1, xmm0
psrldq xmm1, 4
pxor xmm0, xmm1
movd ecx, xmm0
xor eax, ecx
mov rcx, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rcx
je 0x14013052a
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + 1]
lea r9, [rcx*4]
xor eax, dword [rsp + rcx*4 + 0x50]
cmp rbx, r8
jae 0x14013052a
add rcx, 2
xor eax, dword [rsp + r9 + 0x54]
cmp rcx, r8
jae 0x14013052a
xor eax, dword [rsp + r9 + 0x58]
mov ecx, eax
mov ebx, edi
mov r9d, 1
add edx, r12d
shr ecx, 1
shr ebx, 3
xor eax, ecx
add rbx, r13
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov eax, ecx
shr eax, 4
xor eax, ecx
mov ecx, eax
shr ecx, 8
xor eax, ecx
mov ecx, edi
add edi, 1
mov r15d, eax
not ecx
shr r15d, 0x10
and ecx, 7
xor eax, r15d
shl r9d, cl
and eax, 1
not r9d
and r9b, byte [rbx]
shl eax, cl
or r9d, eax
mov byte [rbx], r9b
cmp edi, r14d
jne 0x140130470
mov rcx, qword [rbp + 0x20]
mov rdx, r13
shl r8, 2
call sub.msvcrt.dll_memcpy
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rsp + 0x50]
jmp 0x14013052a
mov ecx, 1
jmp 0x140130502
Function at 0x14013bb90
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
add rsp, 0xffffffffffffff80
test r8d, r8d
jle 0x14013bc73
lea eax, [r8 - 1]
mov r12, rcx
mov r13, r9
xor edi, edi
shl rax, 4
lea rbx, [rdx + 8]
lea rax, [rdx + rax + 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
jmp 0x14013bc02
mov eax, dword [rsp + 0x5c]
cmp rsi, rax
jne 0x14013bc68
add rdi, qword [rbx]
add r13, qword [rbx]
add rbx, 0x10
cmp qword [rsp + 0x38], rbx
je 0x14013bc78
mov rsi, qword [rbx]
mov r15, qword [rbx - 8]
mov r14, r13
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], r14
mov rdx, r15
mov rcx, r12
mov r8d, 0x1000000
mov r9, qword [rsp + 0x48]
mov qword [rsp + 0x78], 0
cmp rsi, r8
mov qword [rsp + 0x20], rax
cmovbe r8, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14013bbe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14013bbf1
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
sub rsi, rax
add r14, rax
add r15, rax
jmp 0x14013bc0c
xor edi, edi
nop dword [rax]
xor eax, eax
mov edx, 0x1d
cmp qword [rbp + 0x30], rdi
cmovne eax, edx
jmp 0x14013bc50
Function at 0x140144020
Capabilities:
Print debug messages

Disassembly:
push r12
lea r12, [rcx + 0x190]
push rbx
sub rsp, 0x38
test byte [rcx + 6], 0x40
je 0x140144048
add rsp, 0x38
mov rcx, r12
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
mov dword [rsp + 0x20], 0x7fffffff
mov r9d, 0xfffd0000
mov edx, 0x30000
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x14014407f
add rsp, 0x38
pop rbx
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x38
lea rdx, str.mdbx_txn_unlock
lea rcx, str._s_failed:_err__u
pop rbx
mov r8d, eax
pop r12
jmp fcn.1402226c0
Function at 0x140149fd0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
mov r14, r9
push r13
push r12
push rbp
push rdi
push rsi
mov esi, edx
shr edx, 1
push rbx
lea r9d, [rsi - 1]
mov rbx, rcx
mov ecx, 1
sub rsp, 0x18
cmp r9d, 1
jbe 0x14014a031
nop dword [rax]
cmp edx, ecx
jbe 0x14014a018
mov eax, edx
mov r10d, dword [rbx + rcx*4]
lea rax, [rbx + rax*4]
mov r11d, dword [rax]
mov dword [rbx + rcx*4], r11d
mov dword [rax], r10d
mov eax, esi
nop word [rax + rax]
shr eax, 1
xor edx, eax
test eax, edx
je 0x14014a020
add rcx, 1
cmp rcx, r9
jne 0x14014a000
mov r13d, esi
mov r11d, 1
cmp esi, 1
jbe 0x14014a122
nop dword [rax + rax]
xor edx, edx
nop word [rax + rax]
lea eax, [r11 + rdx]
lea r9, [rbx + rdx*4]
lea r10, [rbx + rax*4]
mov edi, dword [r9]
mov rcx, rax
mov eax, dword [r10]
sub edi, eax
sub eax, r8d
mov edx, edi
sar edx, 0x1f
and edx, r8d
add edx, edi
mov dword [r10], edx
add eax, dword [r9]
cdq
and edx, r8d
add eax, edx
lea edx, [rcx + r11]
mov dword [r9], eax
cmp esi, edx
ja 0x14014a050
cmp esi, r11d
mov eax, r11d
mov r12d, r13d
mov ebp, 1
cmovbe eax, esi
mov dword [rsp + 0xc], eax
cmp r11d, 1
jbe 0x14014a113
nop word cs:[rax + rax]
mov eax, r12d
mov ecx, ebp
mov edi, dword [r14 + rax*4]
nop dword [rax]
lea eax, [r11 + rcx]
lea r10, [rbx + rax*4]
mov r9, rax
mov eax, dword [r10]
imul eax, edi
cdq
idiv r8d
lea rax, [rbx + rcx*4]
mov r15d, dword [rax]
sub r15d, edx
sub edx, r8d
mov ecx, r15d
sar ecx, 0x1f
and ecx, r8d
add ecx, r15d
mov dword [r10], ecx
add edx, dword [rax]
mov ecx, edx
sar ecx, 0x1f
and ecx, r8d
add edx, ecx
lea ecx, [r11 + r9]
mov dword [rax], edx
cmp esi, ecx
ja 0x14014a0c0
add ebp, 1
add r12d, r13d
cmp ebp, dword [rsp + 0xc]
jb 0x14014a0b0
add r11d, r11d
shr r13d, 1
cmp esi, r11d
ja 0x14014a048
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret