joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f4020
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 0x1400f40e6
mov rcx, qword [rsp + 0x28]
test rcx, rcx
jne 0x1400f40be
jmp 0x1400f4108
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x1400f4108
cmp dword [rcx + 4], ebx
jne 0x1400f40b0
cmp ebx, 2
je 0x1400f40f8
cmp ebx, 0x17
jne 0x1400f40b0
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 0x1400f40e0
lea rsp, [rbp - 0x18]
mov r12d, 0xffffffff
pop rbx
mov eax, r12d
pop rsi
pop r12
pop rbp
ret

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

Disassembly:
cmp qword [0x1403e87f0], 0
je 0x1400f4330
sub rsp, 0x28
call fcn.1400fb5e0
mov rcx, qword [0x1403e87f0]
add rsp, 0x28
mov rdx, rax
jmp fcn.1400cf1f0
xor eax, eax
ret
Function at 0x1400f7b90
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 0x1400f7c38
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov r12, rax
test rax, rax
je 0x1400f7c79
mov qword [rax], rsi
lea r8, str.dap_proc_queue
mov qword [rax + 8], rdi
mov dword [rax + 0x14], ebx
mov rax, qword [0x1403e17a0]
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.14005aec0
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.1400cf1f0
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.14005aec0
jmp 0x1400f7bb0
add rsp, 0x50
mov eax, 0xfffffff4
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400f9370
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 0x1400f93a0
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 0x1400f9396
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 0x1400f93d0
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 0x1400f946e
nop
mov rcx, r12
call fcn.140036200
test rax, rax
je 0x1400f943d
cmp byte [rax + 8], 0x2e
lea rdx, [rax + 8]
jne 0x1400f940d
cmp byte [rdx + 1], 0
je 0x1400f93f0
cmp byte [rdx], 0x2e
je 0x1400f9460
xor r8d, r8d
mov rcx, r14
call fcn.1400740f0
mov r13, rax
mov rcx, rax
call fcn.1400f93d0
mov rcx, r13
call sub.msvcrt.dll_free
mov rcx, r12
call fcn.140036200
test rax, rax
jne 0x1400f93fd
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 0x1400f9412
cmp byte [rdx + 2], 0
je 0x1400f93f0
jmp 0x1400f9412
add rsp, 0x20
mov rcx, r14
pop r12
pop r13
pop r14
jmp fcn.140044838
Function at 0x140104010
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 0x1401040db
test r9d, r9d
je 0x1401040db
movsxd r9, r9d
mov rbx, r8
shl r9, 4
lea rdi, [r8 + r9]
cmp r8, rdi
jae 0x1401040d7
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbp, rcx
xor esi, esi
lea r13, [rsp + 0x3c]
jmp 0x14010406d
add rbx, 0x10
add esi, dword [rsp + 0x3c]
cmp rdi, rbx
jbe 0x1401040c8
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 0x140104060
cmp qword [rsp + 0xa0], 0
je 0x1401040ad
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 0x1401040b4
lea rax, str.Bad_input_data
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, [0x1403de270]
call fcn.14005aec0
mov rax, 0xffffffffffffffff
jmp 0x1401040b4

Function at 0x140105160
Capabilities:
Encode data using xor

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

Disassembly:
push r12
mov r12d, 1
push rsi
push rbx
sub rsp, 0x40
test rdx, rdx
jne 0x140110be0
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 0x140110c20
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 0x140110c08
jmp 0x140110bd3
Function at 0x1401196d0
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 0x140119750
mov rcx, rax
sub rcx, rdx
cmp rcx, 1
je 0x14011973c
mov r9, rcx
lea rax, [r8 + rdx*8]
movapd xmm1, xmmword [0x1403c9110]
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 0x140119718
mov rax, rcx
and rax, 0xfffffffffffffffe
add rdx, rax
cmp rcx, rax
je 0x140119750
lea rax, [r8 + rdx*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403c9100]
movsd qword [rax], xmm0
leave
ret

Function at 0x140119ef0
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 0x14011a0a0
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 0x14011a030
cmp r11, 1
je 0x14011a030
shr rax, 2
movapd xmm5, xmmword [0x1403c9110]
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 0x140119f70
lea rcx, [rdx + rdx]
cmp r11, rcx
je 0x14011a021
mov rax, rdx
lea rdx, [r11 + rcx]
shl rax, 4
lea rcx, [r9 + rdx*8]
movsd xmm2, qword [r10 + rdx*8]
xorpd xmm2, xmmword [0x1403c9100]
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 [0x1403c9100]
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 0x14011a040
movaps xmm6, xmmword [rsp]
mov rbx, qword [rbp - 8]
leave
ret
ret
Function at 0x14011a230
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 0x14011a2a0
mov rdx, r9
movapd xmm1, xmmword [0x1403c9110]
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 0x14011a268
mov rax, r9
and rax, 0xfffffffffffffffe
and r9d, 1
je 0x14011a29e
lea rax, [r8 + rax*8]
movsd xmm0, qword [rax]
xorpd xmm0, xmmword [0x1403c9100]
movsd qword [rax], xmm0
leave
ret
xor eax, eax
jmp 0x14011a28a
Function at 0x14011a640
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.1401115a0
add rsp, 0x20
mov rcx, r12
pop r12
jmp fcn.14011a670
Function at 0x1401203e0
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 0x140120511
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 0x1401204bf
mov rax, qword [rsp + 0x28]
lea rbx, [rdi + rax]
jmp 0x140120490
cmp r13, rsi
jae 0x1401204bf
add r13, r13
test r13, r13
je 0x1401204af
mov rdx, r13
mov rcx, r15
call sub.msvcrt.dll_realloc
test rax, rax
je 0x1401204bf
mov r15, rax
cmp r13, rbx
ja 0x1401204e8
test r15, r15
jne 0x140120470
lea r13, [rdi + 1]
mov eax, 0x1000
cmp r13, rax
cmova r13, rax
test r13, r13
jne 0x14012047d
test r15, r15
je 0x1401204bf
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 0x1401204bf
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 0x14012041f
mov rcx, r12
call sub.msvcrt.dll_fclose
test r13, r13
je 0x14012054a
mov rax, qword [rsp + 0x28]
add rax, r15
cmp qword [rbp + 0x20], 0
mov byte [rax], 0
je 0x14012053c
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 0x1401204d1
mov ecx, 1
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x28], 0
mov r15, rax
jmp 0x140120526
Function at 0x140120ab0
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 0x140120be7
mov r10d, esi
test esi, esi
je 0x140120be7
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 0x140120b78
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 0x140120b70
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 0x140120c3d
cmp eax, 3
je 0x140120c3d
call fcn.140055590
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.140055560
jmp 0x140120c25
Function at 0x14012f5a0
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 0x14012f747
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 0x14012f770
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 0x14012f640
mov eax, dword [rsp + 0x50]
cmp r8, 1
je 0x14012f6ea
cmp qword [rsp + 0x48], 2
jbe 0x14012f779
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 0x14012f680
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 0x14012f6ea
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + 1]
lea r9, [rcx*4]
xor eax, dword [rsp + rcx*4 + 0x50]
cmp rbx, r8
jae 0x14012f6ea
add rcx, 2
xor eax, dword [rsp + r9 + 0x54]
cmp rcx, r8
jae 0x14012f6ea
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 0x14012f630
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 0x14012f6ea
mov ecx, 1
jmp 0x14012f6c2
Function at 0x14013ad50
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 0x14013ae33
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 0x14013adc2
mov eax, dword [rsp + 0x5c]
cmp rsi, rax
jne 0x14013ae28
add rdi, qword [rbx]
add r13, qword [rbx]
add rbx, 0x10
cmp qword [rsp + 0x38], rbx
je 0x14013ae38
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 0x14013ada8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14013adb1
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 0x14013adcc
xor edi, edi
nop dword [rax]
xor eax, eax
mov edx, 0x1d
cmp qword [rbp + 0x30], rdi
cmovne eax, edx
jmp 0x14013ae10
Function at 0x1401431e0
Capabilities:
Print debug messages

Disassembly:
push r12
lea r12, [rcx + 0x190]
push rbx
sub rsp, 0x38
test byte [rcx + 6], 0x40
je 0x140143208
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 0x14014323f
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.140220c00
Function at 0x140149190
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 0x1401491f1
nop dword [rax]
cmp edx, ecx
jbe 0x1401491d8
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 0x1401491e0
add rcx, 1
cmp rcx, r9
jne 0x1401491c0
mov r13d, esi
mov r11d, 1
cmp esi, 1
jbe 0x1401492e2
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 0x140149210
cmp esi, r11d
mov eax, r11d
mov r12d, r13d
mov ebp, 1
cmovbe eax, esi
mov dword [rsp + 0xc], eax
cmp r11d, 1
jbe 0x1401492d3
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 0x140149280
add ebp, 1
add r12d, r13d
cmp ebp, dword [rsp + 0xc]
jb 0x140149270
add r11d, r11d
shr r13d, 1
cmp esi, r11d
ja 0x140149208
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14014b910
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
test rcx, rcx
je 0x14014bb6b
push rbp
mov eax, 7
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov r8, qword [rcx]
cmp r8, 0xf
jbe 0x14014bafa
mov rdx, r8
lea r9, [rcx + 0x30]
lea rdi, [rcx + 0x38]
mov qword [rcx + 0x30], 0
shr rdx, 2
and rdi, 0xfffffffffffffff8
mov qword [rcx + 0x118], 0
lea r14, [0x1402c9ac0]
lea rax, [rdx + 7]
movq xmm1, rdx
lea rdx, [rbx + 8]
movq xmm0, rax
shl rax, 4
punpcklqdq xmm0, xmm1
mov qword [rcx + 0x28], rax
xor eax, eax
movups xmmword [rcx + 0x120], xmm0
mov rcx, r9
sub rcx, rdi
add ecx, 0xf0
shr ecx, 3
rep stosq qword [rdi], rax
mov rcx, r9
call sub.msvcrt.dll_memcpy
mov r12, qword [rbx + 0x128]
mov r9, rax
mov rax, qword [rbx + 0x120]
mov r8, r9
mov rcx, r12
lea r13, [rax*4]
cmp r13, r12
ja 0x14014ba3f
jmp 0x14014baf8
mov eax, r9d
mov r15d, r9d
movzx eax, ah
shr r15d, 0x10
mov r11d, eax
mov eax, r9d
mov edi, r15d
shr eax, 0x18
mov esi, eax
cmp rdx, 4
jne 0x14014ba0b
cmp r12, 6
ja 0x14014bb10
xor r10b, byte [r8]
add r8, 4
mov byte [rbx + rcx*4 + 0x30], r10b
xor r11b, byte [r8 - 3]
mov byte [rbx + rcx*4 + 0x31], r11b
xor dil, byte [r8 - 2]
mov byte [rbx + rcx*4 + 0x32], dil
xor sil, byte [r8 - 1]
mov byte [rbx + rcx*4 + 0x33], sil
add rcx, 1
cmp r13, rcx
je 0x14014baf8
mov rax, rcx
xor edx, edx
mov r9d, dword [rbx + rcx*4 + 0x2c]
div r12
mov dword [rsp + 0x28], r9d
mov r10d, r9d
test rdx, rdx
jne 0x14014b9e0
movzx edx, word [rsp + 0x29]
mov byte [rsp + 0x2f], r9b
mov word [rsp + 0x2c], dx
movzx edx, byte [rsp + 0x2b]
mov byte [rsp + 0x2e], dl
mov edx, dword [rsp + 0x2c]
movzx esi, dh
mov r9d, esi
mov r10, r9
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx r11d, byte [r9 + r10]
mov r9d, edx
shr r9d, 0x10
mov r10d, r9d
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx edi, byte [r9 + r10]
mov r9d, edx
shr r9d, 0x18
mov r10d, r9d
and r9d, 0xf0
and r10d, 0xf
add r9, r14
movzx esi, byte [r9 + r10]
mov r9d, edx
and edx, 0xf0
add rdx, r14
and r9d, 0xf
movzx r10d, byte [rdx + r9]
lea rdx, [0x1402c9bc0]
xor r10b, byte [rdx + rax - 1]
jmp 0x14014ba0b
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 r10d, r9d
and r9d, 0xf0
lea rdx, [r14 + r9]
and r10d, 0xf
mov r9, r11
and r11d, 0xf0
and r9d, 0xf
movzx r10d, byte [rdx + r10]
lea rdx, [r14 + r11]
movzx r11d, byte [rdx + r9]
mov r9d, r15d
and r15d, 0xf0
lea rdx, [r14 + r15]
and r9d, 0xf
movzx edi, byte [rdx + r9]
mov edx, eax
and eax, 0xf0
and edx, 0xf
add rax, r14
movzx esi, byte [rax + rdx]
jmp 0x14014ba0b
mov eax, 2
ret