joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007940
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001bf20]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007a10
cmp qword [rax + 0x60], 0
jne 0x140007a30
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007a40
cmp qword [rax + 0x1d8], r12
jne 0x140007a40
test byte [rax + 0x40], 0xc
jne 0x140007a40
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007a40
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007a40
mov rax, qword [rbx]
test rax, rax
je 0x140007aa0
cmp qword [rax + 0x60], 0
jne 0x140007ac0
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007ad0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007ad8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000796b
test rax, rax
jne 0x140007a30
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007976
mov rax, qword [rbx]
test rax, rax
je 0x140007a70
cmp qword [rax + 0x60], 0
jne 0x140007a90
lea rcx, [0x14001a068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x140007a4f
test rax, rax
jne 0x140007a90
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007a5a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400079da
test rax, rax
jne 0x140007ac0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400079e5
xor eax, eax
jmp 0x140007a64
mov eax, 0x16
jmp 0x140007a64
Function at 0x140008a40
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008a60
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008aa8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008a54
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008a95

Function at 0x140008ad0
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x14001f2c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008b88
mov rdx, qword [0x14001f200]
lea rcx, [0x14001f200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008b58
cmp rdx, rcx
jne 0x140008b3a
mov qword [rdx], rax
cmp rax, rcx
je 0x140008b3f
nop dword [rax]
test rax, rax
je 0x140008b6a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x140008b28
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008b6a
mov rdx, rax
jmp 0x140008b36
lea rcx, [0x14001f300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008ba6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008b6a
Function at 0x140003a58
Capabilities:
Hash data using sha1

Disassembly:
lea rax, [rcx + 0x18]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
lea rdx, [rax + 0x10]
xor r8d, r8d
mov qword [rdx], r8
mov qword [rax + 0x18], 0xf
mov byte [rax], r8b
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
cmp qword [rax + 0x18], 0xf
jbe 0x140003aa3
mov rax, qword [rax]
mov qword [rdx], r8
mov byte [rax], r8b
mov qword [rcx + 0x38], r8
mov rax, rcx
ret
Function at 0x14000404c
Capabilities:
Hash data using sha1

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rdx
and dword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
and qword [rdx + 0x10], 0
and qword [rdx + 0x18], 0
mov r8, qword [r8 + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140004085
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140007bd8
mov dword [rsp + 0x20], 1
xor esi, esi
mov rdx, rdi
mov rcx, rbx
call fcn.140003ab4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140003d8c
mov rdx, rax
mov rcx, rdi
call fcn.140005594
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400040f6
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000414a
call fcn.1400f16c0
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
lea rcx, [rbx + 0x18]
cmp qword [rbx + 0x30], 0xf
jbe 0x140004127
mov rcx, qword [rbx + 0x18]
and qword [rbx + 0x28], 0
mov byte [rcx], 0
and qword [rbx + 0x38], 0
inc esi
cmp esi, 0xa
jb 0x14000409a
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.1400fa6b8
int3
Function at 0x14001e494
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001e4b4
xor eax, eax
jmp 0x14001e59a
cmp qword [rcx + 0x68], 0
je 0x14001e4c5
call fcn.140004f04
jmp 0x14001e59a
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001e4dc
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001e4de
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001e510
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14011b910
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001e594
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001e547
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14001e570
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1401007ac
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x14001e594
cmp rdi, rbx
ja 0x14001e54e
test rdi, rdi
je 0x14001e594
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.1401007ac
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140030c70
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r9, qword [rcx]
mov ebx, 0x270
mov ecx, dword [r9]
cmp ecx, ebx
jne 0x140030cdb
lea r8, [r9 + 8]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub rbx, 1
jne 0x140030c9e
mov ecx, dword [r9]
jmp 0x140030db1
cmp ecx, 0x4e0
jb 0x140030db1
lea rbx, [r9 + 0x9c4]
mov esi, 0xe3
mov edi, dword [rbx]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov eax, edi
mov r8, rbx
mov edx, eax
add rbx, 4
mov edi, dword [rbx]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x140030d01
lea rbx, [r9 + 0xd50]
mov esi, 0x18c
mov edi, dword [rbx]
mov eax, edi
mov r8, rbx
mov edx, eax
add rbx, 4
mov edi, dword [rbx]
xor edx, edi
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rsi, 1
jne 0x140030d46
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x140032dd4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140157100]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x70], rdx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x80]
call fcn.14011bfb0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140032e31
mov rcx, qword [rbx]
mov r8, qword [rbx + 0x10]
add r8, rcx
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140032e45
mov rdx, qword [rbx]
lea rcx, [rbp - 0x10]
call fcn.140023768
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rax, qword [rbp - 0x10]
mov qword [rbp - 0x70], rax
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140032e6d
mov rdx, qword [rdi]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140032f1b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x68]
lea rcx, [rbp - 0x10]
call fcn.140006708
nop
mov rcx, rdi
call fcn.140006708
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140032f0f
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140032f0a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140032fdc
mov rcx, r8
call fcn.1400f16c0
and qword [rbx + 0x10], 0
mov eax, esi
jmp 0x140032fb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x50], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032f62
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp - 0x10]
call fcn.140006708
nop
mov rcx, rdi
call fcn.140006708
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140032fab
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140032fa6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140032fe2
mov rcx, r8
call fcn.1400f16c0
and qword [rbx + 0x10], 0
xor eax, eax
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400f16a0
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret
call fcn.1400fa6b8
int3
call fcn.1400fa6b8
int3
Function at 0x14003320c
Capabilities:
Hash data using sha256

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140157100]
xor rax, rsp
mov qword [rbp + 0x37], rax
and dword [rbp - 0x31], 0
mov rdi, r8
and qword [rbp - 0x59], 0
mov r8d, edx
mov rdx, rcx
mov dword [rbp - 0x51], 0x6a09e667
lea rcx, [rbp - 0x59]
mov dword [rbp - 0x4d], 0xbb67ae85
mov rbx, r9
mov dword [rbp - 0x49], 0x3c6ef372
mov dword [rbp - 0x45], 0xa54ff53a
mov dword [rbp - 0x41], 0x510e527f
mov dword [rbp - 0x3d], 0x9b05688c
mov dword [rbp - 0x39], 0x1f83d9ab
mov dword [rbp - 0x35], 0x5be0cd19
call fcn.14003484c
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x59]
call fcn.1400348fc
mov eax, 0x20
lea rdx, [rbp + 0x17]
cmp rbx, rax
mov rcx, rdi
cmova rbx, rax
mov r8, rbx
call fcn.14011b910
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400f16a0
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret
Function at 0x140034648
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
lea r11, [rcx + 8]
movups xmm0, xmmword [r11]
lea r9, [rsp + 0x20]
mov qword [rbp + 0x70], r11
movups xmm1, xmmword [r11 + 0x10]
lea r8, [rdx + 2]
sub r9, rdx
movups xmmword [rsp], xmm0
mov edx, 0x10
movups xmmword [rsp + 0x10], xmm1
movzx eax, byte [r8 - 1]
movzx ecx, byte [r8 - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8]
shl ecx, 8
lea r8, [r8 + 4]
or ecx, eax
movzx eax, byte [r8 - 3]
shl ecx, 8
or ecx, eax
mov dword [r9 + r8 - 6], ecx
sub rdx, 1
jne 0x140034694
lea r9, [rsp + 0x58]
lea r10d, [rdx + 0x30]
mov ecx, dword [r9]
mov r8d, ecx
mov edx, dword [r9 - 0x34]
lea r9, [r9 + 4]
mov eax, ecx
ror r8d, 0x13
shr ecx, 0xa
ror eax, 0x11
xor r8d, eax
mov eax, edx
xor r8d, ecx
ror eax, 7
mov ecx, edx
shr edx, 3
ror ecx, 0x12
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r9 - 0x3c]
add r8d, dword [r9 - 0x18]
mov dword [r9 + 4], r8d
sub r10, 1
jne 0x1400346ce
mov r15d, dword [rsp + 0x18]
xor r14d, r14d
mov esi, dword [rsp + 0x10]
mov r12d, dword [rsp + 0xc]
mov r13d, dword [rsp + 4]
mov edi, dword [rsp]
mov ebx, dword [rsp + 0x14]
mov r11d, dword [rsp + 8]
mov edx, edi
mov eax, esi
shr eax, 0xb
mov r10d, esi
shl r10d, 0x15
mov ecx, esi
or r10d, eax
shl ecx, 0x1a
mov eax, esi
shl edx, 0x13
shr eax, 6
mov r9d, r13d
or ecx, eax
or r9d, edi
xor r10d, ecx
mov eax, esi
shl eax, 7
and r9d, r11d
mov ecx, esi
mov r8d, r13d
shr ecx, 0x19
and r8d, edi
or ecx, eax
mov eax, ebx
xor eax, r15d
xor r10d, ecx
and eax, esi
mov ecx, edi
xor eax, r15d
shr ecx, 0x16
add r10d, eax
lea rax, [0x140135800]
add r10d, dword [r14 + rax]
mov eax, edi
add r10d, dword [rsp + r14 + 0x20]
add r14, 4
add r10d, dword [rsp + 0x1c]
shr eax, 0xd
add r12d, r10d
or edx, eax
mov dword [rsp + 0x1c], r15d
mov eax, edi
mov r15d, ebx
shl eax, 0xa
mov ebx, esi
or ecx, eax
mov esi, r12d
mov eax, edi
xor edx, ecx
shl eax, 0x1e
mov r12d, r11d
mov r11d, r13d
mov r13d, edi
shr edi, 2
or eax, edi
mov edi, r9d
xor eax, edx
or edi, r8d
add eax, r10d
add edi, eax
cmp r14, 0x100
jl 0x140034736
lea rcx, [rsp]
mov dword [rsp + 8], r11d
sub rcx, qword [rbp + 0x60]
mov edx, 8
mov r11, qword [rbp + 0x70]
mov dword [rsp], edi
mov dword [rsp + 0x10], esi
mov dword [rsp + 0x18], r15d
mov dword [rsp + 0xc], r12d
mov dword [rsp + 4], r13d
mov dword [rsp + 0x14], ebx
mov eax, dword [rcx + r11 - 8]
add dword [r11], eax
lea r11, [r11 + 4]
sub rdx, 1
jne 0x14003481f
mov rbx, qword [rsp + 0x168]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003aa04
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov edi, ecx
call fcn.1400b55d8
test eax, eax
jne 0x14003ab96
cmp byte [0x140157f74], al
jne 0x14003aa37
xor ebx, ebx
jmp 0x14003aa53
mov ecx, 5
call qword [0x140157fe0]
mov rbx, rax
test rax, rax
je 0x14003aa53
mov rcx, rax
call qword [0x140157ff0]
test edi, edi
jle 0x14003ab81
test rsi, rsi
je 0x14003ab81
cmp dword [0x14015f150], 0
jne 0x14003ab0d
xor ecx, ecx
call fcn.140037b38
movups xmm0, xmmword [str.expand_32_byte_k]
movdqu xmmword [0x14015f150], xmm0
test rax, rax
jne 0x14003aaac
xorps xmm0, xmm0
mov qword [0x14015f180], rax
movups xmmword [0x14015f160], xmm0
mov dword [0x14015f188], eax
movups xmmword [0x14015f170], xmm0
jmp 0x14003aaf0
mov ecx, dword [0x140158120]
test ecx, ecx
je 0x14003aade
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14015f160], xmm0
mov dword [0x14015f160], ecx
movups xmmword [0x14015f170], xmm0
mov qword [0x14015f180], rax
mov dword [0x14015f188], eax
jmp 0x14003aaf0
lea r8, [0x14015f160]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x14015f180]
and dword [0x14015f180], 0
xor cl, cl
mov dword [0x14015f18c], eax
mov byte [0x14015f1d0], cl
jmp 0x14003ab13
mov cl, byte [0x14015f1d0]
movzx eax, cl
lea r14, [0x14015f190]
cmp edi, eax
jle 0x14003ab62
test cl, cl
je 0x14003ab40
movzx r8d, cl
mov rdx, r14
mov rcx, rsi
call fcn.14011b910
movzx ecx, byte [0x14015f1d0]
sub edi, ecx
add rsi, rcx
inc dword [0x14015f180]
lea rdx, [0x14015f150]
mov rcx, r14
call fcn.14003a6a8
mov cl, 0x40
mov byte [0x14015f1d0], cl
cmp edi, 0x40
jg 0x14003ab21
movzx eax, cl
mov rcx, rsi
sub eax, edi
movsxd r8, edi
movsxd rdx, eax
add rdx, r14
call fcn.14011b910
sub byte [0x14015f1d0], dil
jmp 0x14003ab88
and dword [0x14015f150], 0
test rbx, rbx
je 0x14003ab96
mov rcx, rbx
call qword [0x140158000]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x14004008c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
movsxd r10, dword [rcx + 0xc]
mov r14, rdx
movsxd rbx, r8d
mov r9, rcx
test r8d, r8d
jle 0x1400400e9
mov rdi, qword [rcx]
mov r11, r10
movsxd rsi, dword [rcx + 8]
xor edx, edx
mov al, byte [r14 + rdx]
lea rcx, [r11 + 1]
xor byte [r11 + rdi], al
lea eax, [r10 + 1]
xor r10d, r10d
cmp rcx, rsi
cmovl r10d, eax
xor r11d, r11d
inc rdx
cmp rcx, rsi
cmovl r11, rcx
cmp rdx, rbx
jl 0x1400400bd
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
mov dword [r9 + 0xc], r10d
ret
Function at 0x140070a10
Capabilities:
Reference sql statements

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 r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1400765d4
test ebx, ebx
jne 0x140070a79
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1400765d4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400bf1f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400bf26f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400bf26f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400bf25c
cmp rbx, rcx
jae 0x1400bf26f
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400bf247
cmp rbx, rcx
jae 0x1400bf26f
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x1400bf271
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c0254
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140157100]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, rdx
mov qword [rbp - 0x38], rcx
mov rbx, rcx
lea r9, [rbp - 0x38]
xor edi, edi
mov rcx, rax
xor r8d, r8d
mov qword [rbp - 0x38], rdi
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x1400c02c0
mov qword [rbp - 0x48], rdi
lea rax, [0x140130168]
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x50]
movaps xmm0, xmmword [rbp - 0x50]
mov rcx, rbx
movdqa xmmword [rbp - 0x50], xmm0
call fcn.14002f074
jmp 0x1400c0322
mov rcx, qword [rbp - 0x38]
or rax, 0xffffffffffffffff
mov qword [rbp - 0x50], rcx
inc rax
cmp word [rcx + rax*2], di
jne 0x1400c02cc
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
movaps xmm0, xmmword [rbp - 0x50]
lea rcx, [rbp - 0x30]
movdqa xmmword [rbp - 0x50], xmm0
call fcn.14002f074
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov word [rbp - 0x30], di
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx], xmm0
movdqa xmm0, xmmword [0x1401448f0]
movdqu xmmword [rbp - 0x20], xmm0
movups xmmword [rbx + 0x10], xmm1
call fcn.140006708
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400f16a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret