joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800cb9c4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, 0x60
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rbx + 0x18]
call fcn.1800a4070
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x76
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 1
lea r8, str.LastLoadedDPI
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1800cba4a
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18006b2b0
mov ebx, eax
mov edx, 0x64
mov ecx, ebx
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov eax, 0x51eb851f
shl ecx, 4
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0xd0
pop rbx
ret

Function at 0x1800cba90
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x79], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rcx, [rbp + 0x27]
call fcn.1800cc378
nop
xor edi, edi
cmp qword [rbp + 0x37], rdi
je 0x1800cbb8d
movdqa xmm0, xmmword [0x1800f9300]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], di
mov r8, qword [rbx + 0x50]
cmp r8, qword [rbx + 0x58]
jne 0x1800cbb03
lea rdx, [0x1800f3790]
lea rcx, [rbp + 7]
call fcn.18006bbb0
jmp 0x1800cbb1d
cmp qword [r8 + 0x18], 8
jb 0x1800cbb0d
mov r8, qword [r8]
lea rdx, [0x1800f37e0]
lea rcx, [rbp + 7]
call fcn.18006bbb0
mov dword [rbp - 0x69], 0x70
mov dword [rbp - 0x65], 0x540
mov qword [rbp - 0x61], rdi
lea rax, str.Open
mov qword [rbp - 0x59], rax
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rax, qword [rbp + 0x27]
mov qword [rbp - 0x51], rax
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rdi
mov dword [rbp - 0x39], 1
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rbp - 0x31]
call fcn.1800a4070
lea rcx, [rbp - 0x69]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
lea rcx, [rbp + 7]
call fcn.180005ea4
nop
lea rcx, [rbp + 0x27]
call fcn.180005ea4
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800cd534
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov ebx, 0x60
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [rbx + 0x18]
call fcn.1800a4070
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x76
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 1
lea r8, str.LastLoadedDPI
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionThemeManager
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1800cd5ba
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18006b2b0
mov ebx, eax
mov edx, 0x64
mov ecx, ebx
lea r8d, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, eax
mov eax, 0x51eb851f
shl ecx, 4
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800a0260
add rsp, 0xd0
pop rbx
ret
Function at 0x1800cd600
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov rax, qword [rcx + 0x58]
cmp qword [rcx + 0x50], rax
je 0x1800cd790
xor eax, eax
mov qword [rbp - 1], rax
lea rcx, [rbp - 1]
call fcn.18000e160
lea rsi, vtable.RC::RCDeferStat.0
mov qword [rbp - 9], rsi
lea rcx, [rbp - 9]
call fcn.18000a200
lea rcx, [rbp - 9]
call fcn.18000a560
lea rcx, [rbp + 0x27]
call fcn.1800cdf74
nop
xor edi, edi
cmp qword [rbp + 0x37], rdi
je 0x1800cd761
lea rcx, [rbp + 0x27]
call fcn.18006c030
test al, al
je 0x1800cd761
movdqa xmm0, xmmword [0x1800f9300]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], di
mov r8, qword [rbx + 0x50]
cmp qword [r8 + 0x18], 8
jb 0x1800cd6b5
mov r8, qword [r8]
lea rdx, str.__shortcutsoftmgr
lea rcx, [rbp + 7]
call fcn.18006bbb0
mov dword [rbp - 0x79], 0x70
mov dword [rbp - 0x75], 0x540
mov qword [rbp - 0x71], rdi
lea rax, str.Open
mov qword [rbp - 0x69], rax
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rax, qword [rbp + 0x27]
mov qword [rbp - 0x61], rax
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rdi
mov dword [rbp - 0x49], 1
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rbp - 0x41]
call fcn.1800a4070
lea rcx, [rbp - 0x79]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1800cd732
xor edx, edx
jmp 0x1800cd743
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800cd741
or edx, 0xffffffff
jmp 0x1800cd743
mov edx, eax
lea rcx, [rbp - 9]
call fcn.18000a630
lea rcx, [rbp - 1]
call fcn.18000e210
nop
lea rcx, [rbp + 7]
call fcn.180005ea4
jmp 0x1800cd779
mov edx, 0xfffffffe
lea rcx, [rbp - 9]
call fcn.18000a630
lea rcx, [rbp - 1]
call fcn.18000e210
nop
lea rcx, [rbp + 0x27]
call fcn.180005ea4
nop
mov qword [rbp - 9], rsi
lea rcx, [rbp - 1]
call fcn.18000e1b0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x10001e024
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000301f8], rdi
je 0x10001e07d
cmp rax, rdi
jne 0x10001e070
mov esi, 1
jmp 0x10001e07d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e057
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e092
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10001e0f7
mov eax, dword [0x1000301f0]
test eax, eax
jne 0x10001e0ed
mov dword [0x1000301f0], 1
lea r12, [0x100001690]
lea rdi, [0x100001678]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001e0df
test eax, eax
jne 0x10001e0df
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001e0d4
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001e0bd
test eax, eax
je 0x10001e0f7
mov eax, 0xff
jmp 0x10001e241
mov dword [0x10002f924], 1
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e11f
lea rdx, [0x100001670]
lea rcx, [0x1000015f8]
call sub.msvcrt.dll__initterm
mov dword [0x1000301f0], 2
test esi, esi
jne 0x10001e12c
xor eax, eax
xchg qword [0x1000301f8], rax
cmp qword [0x100030210], 0
je 0x10001e155
lea rcx, [0x100030210]
call fcn.10001e5dc
test eax, eax
je 0x10001e155
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100030210]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e176
test esi, esi
jne 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e18a
cmp byte [rdi], 0x20
ja 0x10001e18a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e176
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100008db4
mov dword [0x10002f920], eax
cmp dword [0x10002f904], 0
jne 0x10001e1c9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10002f924], 0
jne 0x10001e1de
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10002f920]
jmp 0x10001e241
cmp byte [rdi], 0x22
jne 0x10001e1f2
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10001e207
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e168
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.1001ad000
add rsp, 0x28
jmp 0x10001e024
Function at 0x140001e38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e82
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e84
xor al, al
add rsp, 0x28
ret
Function at 0x140009d90
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp - 0x38], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
call fcn.140018370
mov qword [rbp - 0x20], rax
jmp 0x140009dc9
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x20]
mov dword [rbp - 0x44], eax
call fcn.14001ac50
mov qword [rbp - 0x40], rax
jmp 0x140009ddf
mov rax, qword [rbp - 0x40]
mov ecx, dword [rbp - 0x44]
mov dword [rbp - 0x18], ecx
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov dword [rbp - 8], 0
mov qword [rbp], rax
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0xa0], 0
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x98], rax
mov rdx, qword [rbp + 0x98]
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x38], rax
mov r8, qword [rbp + 0x38]
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x60], 0
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x58], rax
mov r9, qword [rbp + 0x58]
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x20], 0
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0x18]
mov rax, rsp
lea r10, [rbp - 8]
mov qword [rax + 0x30], r10
mov qword [rax + 0x20], rcx
mov dword [rax + 0x28], 0
lea rcx, [rbp - 0x18]
call sub.CRYPT32.dll_CryptUnprotectData
jmp 0x140009ee5
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp]
mov eax, dword [rbp - 8]
mov r9d, eax
mov r8, r9
call fcn.1400180b0
jmp 0x140009efd
mov rcx, qword [rbp - 0x38]
call fcn.140021c50
mov rax, qword [rbp - 0x28]
add rsp, 0x130
pop rbp
ret
Function at 0x14002c1c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rdx
mov qword [rbp + 0x58], r8
lea rcx, [rbp - 0x40]
mov r9d, 0xffffffff
lea rax, str.C:Users_vurt.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.4.6_srcos.rs
mov qword [rsp + 0x20], rax
call fcn.140029700
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x40]
call fcn.140033850
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x28]
call fcn.1400339b0
mov qword [rbp - 8], rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
sete al
test al, 1
jne 0x14002c249
jmp 0x14002c252
add rsp, 0x130
pop rbp
ret
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x98], rcx
mov qword [rbp + 0xa0], rax
mov edx, eax
call sub.ADVAPI32.dll_SystemFunction036
mov byte [rbp + 0x77], al
cmp al, 0
jne 0x14002c227
call fcn.1400287d0
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x40]
mov qword [rbp + 0x88], rcx
lea rax, [fcn.140064120]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x78]
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rax
mov rax, rsp
mov qword [rax + 0x20], 1
lea rdx, str.couldnt_generate_random_bytes:
mov rcx, rbp
mov r8d, 1
lea r9, [rbp + 0x30]
call fcn.140028ec0
jmp 0x14002c2e4
lea rdx, str.C:Users_vurt.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rand_0.4.6_srcos.rs
mov rcx, rbp
call fcn.140168860
jmp 0x14002c2f5
ud2

Function at 0x14004e9f0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
movdqa xmm0, xmmword [rdx]
aeskeygenassist xmm0, xmm0, 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x140062140
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x1400621d0
jmp 0x1400621bf
jae 0x140062290
cmp r8, 0x201
jae 0x1400621d0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140062228
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x1400621ff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140167c80
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140062251
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400622f8
mov r8d, r14d
cmp r15, r8
jne 0x1400621b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006231b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400621bf
jmp 0x1400621d0
cmp rsi, r8
jb 0x140062335
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400667b0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400622e1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140001f80
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400622c9
jmp 0x1400622e1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140168900
jmp 0x14006234a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140168df0
ud2
Function at 0x140063240
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140063250
mov rcx, rdx
mov rdx, r8
jmp fcn.140063260
mov rcx, rdx
mov rdx, r8
jmp fcn.14006d5b0

Function at 0x14006d5b0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400707c0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14006d667
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14006f5a0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14006d667
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14006d63b
test rsi, rsi
je 0x14006d637
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140001f80
xor esi, esi
jmp 0x14006d667
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14006d664
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140001f80
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14006dfc0
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, r8d
mov r8, rdx
mov rdx, rcx

Function at 0x14006e790
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14017c270]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14006e7d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14006e833
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14006e842
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14006e87a
cmp eax, 0x103
je 0x14006e884
test eax, eax
js 0x14006e85f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14006e87a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x14017c2d0]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14005f700
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140066460
mov rcx, rax
call fcn.14005fdd0
mov ecx, 7
int 0x29
ud2
Function at 0x14006e8e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14017c270]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14006e924
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14006e98a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14006e9c1
test eax, eax
js 0x14006e99b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14006e9b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x14017c2d0]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14005f700
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140066460
mov rcx, rax
call fcn.14005fdd0
mov ecx, 7
int 0x29
ud2
Function at 0x14007d720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14007d79a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14007d790
cmp r11, r10
ja 0x14007d833
cmp r10, rdx
ja 0x14007d847
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14007d792
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14007d770
jmp 0x14007d807
ja 0x14007d79a
mov r11, r10
cmp rax, r8
jne 0x14007d742
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14007d80b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14007d7e0
mov r8, r10
sub ecx, r9d
jns 0x14007d7fe
jmp 0x14007d80d
cmp r10, rdx
je 0x14007d819
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007d80d
xor al, 1
cmp r8, rdx
jne 0x14007d7c0
jmp 0x14007d80d
xor eax, eax
jmp 0x14007d80d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140168900
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140168e60
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140168df0
ud2
Function at 0x1400d9060
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov ecx, 0x28
call fcn.14009d8b0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400d90a0
mov eax, 7
jmp 0x1400d9175
movzx eax, byte [0x140196da4]
test eax, eax
je 0x1400d90b9
mov ecx, 0xc8
call fcn.1400ab190
test eax, eax
je 0x1400d90cd
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
jmp 0x1400d913a
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x30]
lea r8, [0x1400edab0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x1400d913a
mov r8d, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x10], 0
jne 0x1400d9166
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x48
ret
Function at 0x1401205d0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x1c], 1
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x58]
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 rcx, qword [rsp + 0x50]
call fcn.1400ce5e0
cmp dword [rsp + 0x60], 0
jne 0x140120650
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
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, qword [rsp + 0x50]
call fcn.1400ce5e0
add rsp, 0x48
ret
Function at 0x140167610
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016765a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016765a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016765a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016765a
cmp dword [rcx + 0x84], 0xe
jbe 0x14016765a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14016765c
xor al, al
add rsp, 0x28
ret