joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b0d0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x58
mov rbx, qword [0x140229780]
lea rax, vtable.CMediaEditorApp.0
mov qword [rcx], rax
mov rdi, rcx
test rbx, rbx
je 0x14001b19b
lea rax, [r11 + 8]
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x28], rax
lea rdx, str.SoftwareJ._RiverMusic_Exchange1.0Media_EditorSettings
xor ebp, ebp
lea rax, [r11 + 0x10]
mov qword [r11 - 0x30], rax
xor r9d, r9d
mov qword [r11 - 0x38], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebp
mov qword [r11 + 0x10], rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001b17f
mov qword [rsp + 0x50], rsi
lea r9d, [rbp + 3]
mov rsi, qword [rsp + 0x78]
lea rdx, str.MainWindowPlacement
mov rcx, rsi
mov dword [rsp + 0x28], 0x2c
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rsi, rsi
je 0x14001b17a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x50]
mov edx, 0x30
mov rcx, rbx
call fcn.140017d60
mov qword [0x140229780], rbp
mov rbp, qword [rsp + 0x80]
mov rcx, rdi
add rsp, 0x58
pop rdi
pop rbx
jmp fcn.1400e8de0
Function at 0x140024320
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
lea r8, [rcx + 0x160]
mov rbx, rcx
mov edx, 0x406
mov rcx, rdi
call fcn.1401115e8
lea r8, [rbx + 0x438]
mov edx, 0x3f9
mov rcx, rdi
call fcn.1401115e8
lea r8, [rbx + 0x520]
mov edx, 0x801c
mov rcx, rdi
call fcn.1401115e8
lea r8, [rbx + 0x618]
mov edx, 0x3fc
mov rcx, rdi
call fcn.1401115e8
lea r8, [rbx + 0x700]
mov edx, 0x3ee
mov rcx, rdi
call fcn.14013abcc
lea r8, [rbx + 0x708]
mov edx, 0x3f0
mov rcx, rdi
call fcn.14013abcc
lea r8, [rbx + 0x710]
mov edx, 0x3f1
mov rcx, rdi
call fcn.14013abcc
lea r8, [rbx + 0x718]
mov edx, 0x3f3
mov rcx, rdi
call fcn.14013abcc
lea r8, [rbx + 0x720]
mov edx, 0x3f4
mov rcx, rdi
call fcn.14013abcc
lea r8, [rbx + 0x728]
mov edx, 0x3f2
mov rcx, rdi
call fcn.14013abcc
lea r8, [rbx + 0x730]
mov edx, 0x3f7
mov rcx, rdi
call fcn.14013ab60
lea r8, [rbx + 0x738]
mov edx, 0x3f8
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14013abcc
Function at 0x140029200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, r8
cmp byte [0x140229772], 1
mov rbx, rcx
jne 0x140029246
mov r9, r8
lea rax, [rsp + 0x40]
mov r8, rdx
mov qword [rsp + 0x20], rax
mov rdx, qword [rcx]
mov rcx, qword [0x140229df8]
call fcn.140033400
mov r8, qword [rsp + 0x40]
jmp 0x1400292a0
mov rcx, qword [0x140229db8]
cmp byte [rcx + 0x2f], sil
je 0x140029277
mov rcx, qword [rcx + 0x38]
lea r8, [rsp + 0x40]
mov rax, rdx
xor r9d, r9d
shr rax, 0x20
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x140229db8]
mov rdx, qword [rbx]
lea r9, [rsp + 0x58]
mov rcx, qword [rcx + 0x38]
mov r8d, edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002929b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x58]
mov ecx, dword [0x140229dc8]
mov dword [rbx + 8], r8d
test ecx, ecx
je 0x14002931d
mov eax, dword [0x140229de4]
cmp eax, 0x10
jne 0x1400292f0
mov rdx, qword [rbx]
cmp ecx, 1
jne 0x1400292c5
add rdx, 2
mov ecx, 0x800
nop word [rax + rax]
mov word [rdx], si
lea rdx, [rdx + 4]
sub rcx, 1
jne 0x1400292d0
mov rax, r8
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp eax, 8
jne 0x14002931d
mov rax, qword [rbx]
cmp ecx, 1
jne 0x140029300
inc rax
mov ecx, 0x800
nop word [rax + rax]
mov byte [rax], sil
lea rax, [rax + 2]
sub rcx, 1
jne 0x140029310
mov rbx, qword [rsp + 0x48]
mov rax, r8
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140029330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [0x140229e00]
mov rdi, r9
add eax, 0xfffffffe
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
cmp eax, 1
ja 0x14002937a
mov rcx, qword [0x14021c640]
mov edx, 0xffffffff
mov dword [0x140229dd8], 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [0x140229df8], rbx
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
mov dword [0x140229e00], 2
mov rax, qword [rbx]
call qword [rax + 0x60]
mov dword [0x140229de4], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0x70]
mov dword [0x140229de8], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + 0x58]
xor ecx, ecx
mov dword [0x140229de0], 1
mov dword [0x140229dec], eax
lea r8, [0x140028d70]
mov eax, dword [rsp + 0x68]
xor r9d, r9d
mov dword [0x140229dc8], eax
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [0x140229df0], rbp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov qword [0x140229dd0], rsi
mov dword [0x140229dd8], ecx
mov byte [0x140229772], 1
mov qword [0x140229dc0], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x14021c640], rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140029440
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x140229e00]
mov rbx, r8
add eax, 0xfffffffe
mov rdi, rcx
cmp eax, 1
ja 0x14002947a
mov rcx, qword [0x14021c640]
mov edx, 0xffffffff
mov dword [0x140229dd8], 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov qword [0x140229df8], r8
xor r9d, r9d
mov qword [0x140229df0], r8
xor edx, edx
mov dword [0x140229dd8], r8d
mov eax, dword [rcx + 4]
mov dword [0x140229de4], eax
mov eax, dword [rcx + 8]
mov dword [0x140229de8], eax
mov eax, dword [rcx + 0xc]
xor ecx, ecx
mov dword [0x140229dec], eax
mov eax, dword [rsp + 0x68]
mov dword [0x140229dc8], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
mov byte [0x140229772], r8b
mov qword [0x140229dc0], r8
lea r8, [0x140028d70]
mov dword [0x140229e00], 2
mov dword [0x140229de0], 1
mov qword [0x140229dd0], rbx
mov qword [0x140229db8], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x14021c640], rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14002b300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x328]
mov rcx, rbx
test al, al
jne 0x14002b33a
mov r9d, 0x40
lea r8, str.Unsupported_Selection
lea rdx, str.The_current_selection_is_not_an_appropriate_format_or_selection_type_for_this_transform.
call fcn.14011c6b8
xor eax, eax
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401228ac

Function at 0x14002fa70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
call qword [rax + 0x328]
mov rcx, rbx
test al, al
jne 0x14002faaa
mov r9d, 0x40
lea r8, str.Unsupported_Selection
lea rdx, str.The_current_selection_is_not_an_appropriate_format_or_selection_type_for_this_Generate.
call fcn.14011c6b8
xor eax, eax
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401228ac
Function at 0x140032720
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
cmp dword [rcx], 0
mov rsi, r9
mov r10, r8
mov rbp, rdx
mov rbx, rcx
jne 0x140032790
cmp byte [rcx + 0x37], 0
mov qword [rsp + 0x58], rdi
je 0x14003276b
mov rcx, qword [rcx + 0x40]
mov rax, r8
shr rax, 0x20
lea r8, [rsp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov edx, r10d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdi, qword [rsp + 0x58]
jmp 0x1400327e0
mov rdx, qword [rcx + 0x50]
mov rcx, qword [rcx + 0x48]
add rdx, r10
cmp byte [rcx + 0x2f], 0
je 0x1400327be
mov rcx, qword [rcx + 0x38]
lea r8, [rsp + 0x30]
mov rax, rdx
xor r9d, r9d
shr rax, 0x20
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x48]
lea r9, [rsp + 0x50]
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400327ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x40
pop rsi
ret
Function at 0x140032810
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
sub rsp, 0x58
mov qword [rax + 0x10], rbx
lea rdi, [rcx + 0x58]
mov qword [rax + 0x18], rsi
xor ebp, ebp
mov rbx, rcx
mov qword [rax + 0x20], r12
mov r12, r9
mov qword [rax - 0x18], r13
mov r13, rdx
mov qword [rax - 0x28], r15
mov r15, r8
cmp dword [rcx], ebp
jne 0x14003284c
lea rsi, [rcx + 0x40]
jmp 0x1400328dc
mov ecx, dword [rdi]
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x70], ebp
mov dword [rsp + 0x30], ebp
call fcn.140017d70
mov rcx, qword [rbx + 0x48]
mov r14, rax
mov rdx, qword [rbx + 0x50]
cmp byte [rcx + 0x2f], bpl
je 0x14003288e
mov rcx, qword [rcx + 0x38]
lea r8, [rsp + 0x34]
mov rax, rdx
xor r9d, r9d
shr rax, 0x20
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x48]
lea r9, [rsp + 0x70]
mov r8d, dword [rdi]
mov rdx, r14
mov qword [rsp + 0x20], rbp
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003297e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rsi, [rbx + 0x40]
mov rcx, r14
call fcn.140017d60
xor r8d, r8d
lea rcx, str.Error_converting_file_chunk_to_a_real_chunk..._could_you_be_out_of_disk_space_
xor edx, edx
call fcn.14012189c
mov r14, qword [rsp + 0x48]
cmp byte [rbx + 0x37], 0
je 0x140032901
mov rcx, qword [rsi]
lea r8, [rsp + 0x70]
mov rax, r15
xor r9d, r9d
shr rax, 0x20
mov edx, r15d
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsi]
lea r9, [rsp + 0x38]
mov r8d, r12d
mov qword [rsp + 0x20], rbp
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
test eax, eax
jne 0x140032949
xor r8d, r8d
lea rcx, str.Error_writing_file_chunk..._could_you_be_out_of_disk_space_
xor edx, edx
call fcn.14012189c
mov ecx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x90]
mov qword [rax], rcx
lea rcx, [rbx + 8]
cmp byte [rcx + 0x2f], 0
mov rbx, qword [rsp + 0x78]
jne 0x1400329f9
mov dl, 1
call fcn.14004fa60
mov qword [rdi], rax
xor eax, eax
add rsp, 0x58
pop rdi
pop rbp
ret
mov r8, qword [rdi]
mov eax, dword [rsp + 0x70]
cmp rax, r8
jne 0x1400328ba
mov rcx, qword [rbx + 0x40]
lea rsi, [rbx + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rbp
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400328be
mov eax, dword [rsp + 0x30]
cmp rax, qword [rdi]
jne 0x1400328be
mov dword [rbx], ebp
mov rbp, qword [rbx + 0x48]
cmp byte [rbp + 0x2f], 0
je 0x1400329e2
mov rcx, qword [rbp + 0x38]
cmp rcx, 0xffffffffffffffff
je 0x1400329e2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x38], 0xffffffffffffffff
mov byte [rbp + 0x2f], 0
mov rcx, r14
xor ebp, ebp
mov qword [rbx + 0x50], rbp
call fcn.140017d60
jmp 0x1400328d7
mov rcx, qword [rcx + 0x38]
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x90], ebp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x90]
shl rcx, 0x20
mov eax, eax
add rcx, rax
mov qword [rdi], rcx
xor eax, eax
add rsp, 0x58
pop rdi
pop rbp
ret
Function at 0x140032a30
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x58]
sub rcx, rdx
cmp dword [rbx], 1
je 0x140032ac2
cmp byte [rbx + 0x37], 0
mov qword [rsp + 0x38], rdi
je 0x140032a6f
mov rax, rcx
lea r8, [rsp + 0x30]
shr rax, 0x20
mov edx, ecx
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp byte [rbx + 0x37], 0
lea rcx, [rbx + 8]
mov rdi, qword [rsp + 0x38]
jne 0x140032a9e
mov dl, 1
call fcn.14004fa60
mov rcx, rax
xor eax, eax
mov qword [rbx + 0x58], rcx
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x38]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x30]
shl rcx, 0x20
mov eax, eax
add rcx, rax
xor eax, eax
mov qword [rbx + 0x58], rcx
add rsp, 0x20
pop rbx
ret
Function at 0x1400336f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x450
mov r10, rdx
mov r14, rcx
xor r13d, r13d
xor esi, esi
mov eax, dword [rcx + 0x60]
sub eax, 1
js 0x140033732
mov r8, qword [rcx + 0x70]
lea edx, [rax + 1]
mov rax, qword [r8]
add rsi, qword [rax + 0x58]
lea r8, [r8 + 8]
sub rdx, 1
jne 0x140033721
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x4a8], rax
cmp rax, 0xffffffffffffffff
je 0x14003396b
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x40], rax
call fcn.140121d48
mov rcx, rax
test rax, rax
je 0x140033986
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x4a0], rax
lea rdx, str.Saving...
mov rbp, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x1400337c6
movzx edx, dx
lea rcx, [rsp + 0x4a0]
call fcn.140017950
jmp 0x1400337e9
mov r8, rbp
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400337d0
lea rcx, [rsp + 0x4a0]
call fcn.140017f80
nop
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x50]
call fcn.140035f80
nop
xor r12d, r12d
cmp dword [r14 + 0x60], 1
js 0x1400338ef
xor r15d, r15d
movabs rax, 0xa3d70a3d70a3d70b
mov rbp, qword [rsp + 0x4a8]
cmp rsi, 0xc8
jl 0x14003385d
imul rsi
lea rcx, [rsi + rdx]
sar rcx, 6
mov rax, rcx
shr rax, 0x3f
add rcx, rax
mov rax, r13
cqo
idiv rcx
movsxd rdx, eax
mov r8b, 1
lea rcx, [rsp + 0x50]
call fcn.140036290
mov rax, qword [r14 + 0x70]
mov rcx, qword [r15 + rax]
mov rbx, qword [rcx + 0x58]
mov rcx, rbx
call fcn.14015ce04
mov rdi, rax
mov rcx, qword [r14 + 0x70]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r15 + rcx]
call fcn.140032720
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x490]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x490]
add r13, rax
mov rcx, rdi
call fcn.14015ce0c
inc r12d
add r15, 8
mov eax, dword [r14 + 0x60]
dec eax
cmp r12d, eax
movabs rax, 0xa3d70a3d70a3d70b
jle 0x140033827
mov rbp, 0xffffffffffffffff
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [r14 + 0x79], 0
lea rax, vtable.CProgress.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.14011b0fc
mov rdx, qword [rsp + 0x448]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140033937
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x360]
call fcn.1401345c0
lea rcx, [rsp + 0x278]
call fcn.14012325c
lea rcx, [rsp + 0x190]
call fcn.14012325c
lea rcx, [rsp + 0x50]
call fcn.140122134
nop
xor eax, eax
mov rbx, qword [rsp + 0x498]
add rsp, 0x450
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400180c0
int3
Function at 0x14003a1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push r13
sub rsp, 0x58
mov esi, r9d
mov rbx, rcx
test r9d, r9d
jle 0x14003a413
test rcx, rcx
je 0x14003a413
movzx eax, word [rcx]
test ax, ax
je 0x14003a413
mov rbp, rcx
nop word [rax + rax]
cmp ax, 0x20
je 0x14003a23c
cmp ax, 0x2b
jne 0x14003a256
add rbx, 2
mov rax, rbx
sub rax, rbp
sar rax, 1
cmp eax, esi
jge 0x14003a413
movzx eax, word [rbx]
jmp 0x14003a230
xor r13b, r13b
cmp ax, 0x2d
je 0x14003a269
mov ecx, 0xe2
cmp ax, cx
jne 0x14003a281
add rbx, 2
mov r13b, 1
mov rax, rbx
sub rax, rbp
sar rax, 1
cmp eax, esi
jge 0x14003a413
movzx ecx, word [rbx]
xor r8b, r8b
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x50], r12
xor r12d, r12d
mov qword [rsp + 0x48], r14
mov r14d, r12d
mov qword [rsp + 0x40], r15
mov r15d, r12d
movaps xmmword [rsp + 0x30], xmm6
mov edi, r12d
test cx, cx
je 0x14003a385
mov r9d, 0xffdf
mov edx, 0xfffd
lea eax, [rcx - 0x2c]
test dx, ax
je 0x14003a318
lea eax, [rcx - 0x45]
test r9w, ax
je 0x14003a349
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14003a385
movzx edx, cx
test r8b, r8b
je 0x14003a30a
lea r15, [r15 + r15*4]
lea r15, [r15 - 0x18]
lea r15, [rdx + r15*2]
test rdi, rdi
jne 0x14003a301
mov edi, 0xa
jmp 0x14003a32b
lea rdi, [rdi + rdi*4]
add rdi, rdi
jmp 0x14003a32b
lea r14, [r14 + r14*4]
lea r14, [r14 - 0x18]
lea r14, [rdx + r14*2]
jmp 0x14003a32b
test r8b, r8b
jne 0x14003a385
call fcn.14003a150
mov r8b, 1
mov r9d, 0xffdf
add rbx, 2
mov rax, rbx
sub rax, rbp
sar rax, 1
cmp eax, esi
jge 0x14003a385
movzx ecx, word [rbx]
test cx, cx
je 0x14003a385
jmp 0x14003a2be
lea rcx, [rbx + 2]
mov dword [rsp + 0x90], r12d
mov r9d, 0x7fffffff
mov byte [rsp + 0x20], 1
mov r8b, 1
lea rdx, [rsp + 0x90]
call fcn.14003a1f0
mov eax, dword [rsp + 0x90]
inc eax
movsxd rcx, eax
cvttsd2si r12d, xmm0
lea rbx, [rbx + rcx*2]
xorps xmm6, xmm6
cvtsi2sd xmm6, r14
mov r14, qword [rsp + 0x48]
test rdi, rdi
jle 0x14003a3af
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm1, r15
cvtsi2sd xmm0, rdi
divsd xmm1, xmm0
addsd xmm6, xmm1
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x80]
test r12d, r12d
je 0x14003a3db
movsd xmm0, qword [0x1401dbc20]
movd xmm1, r12d
cvtdq2pd xmm1, xmm1
call fcn.140177350
mulsd xmm6, xmm0
mov rax, qword [rsp + 0x88]
mov r12, qword [rsp + 0x50]
test rax, rax
je 0x14003a3f5
sub rbx, rbp
sar rbx, 1
mov dword [rax], ebx
test r13b, r13b
je 0x14003a401
xorps xmm6, xmmword [0x1401dc360]
movaps xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x58
pop r13
pop rsi
pop rbp
pop rbx
ret
xorps xmm0, xmm0
add rsp, 0x58
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c060
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
movsxd rdi, r8d
mov rbp, rdx
mov rsi, rcx
test r8d, r8d
jg 0x14003c082
add rsp, 0x20
pop rdi
pop rsi
pop rbp
jmp fcn.1400373b0
mov qword [rsp + 0x40], rbx
lea ecx, [rdi + 2]
mov qword [rsp + 0x48], r12
mov eax, 0x55555556
imul ecx
mov qword [rsp + 0x50], r14
xor r12d, r12d
mov ebx, edx
mov qword [rsp + 0x58], r15
shr ebx, 0x1f
mov r9b, 1
add ebx, edx
xor r8d, r8d
shl ebx, 2
mov rcx, rsi
mov edx, ebx
mov r14d, r12d
call fcn.140037200
mov r15, rax
mov rcx, rdi
test edi, edi
je 0x14003c18e
dec rcx
lea r8, [rbp + 2]
movabs rax, 0xaaaaaaaaaaaaaaab
lea r9d, [r12 + 2]
mul rcx
mov r11d, r12d
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shr rdx, 1
lea r10, [rdx + 1]
lea r14d, [r10*4]
lea eax, [r9 - 1]
cmp eax, edi
jge 0x14003c113
movzx eax, byte [r8 - 1]
shl rax, 8
jmp 0x14003c116
mov rax, r12
cmp r9d, edi
jge 0x14003c121
movzx edx, byte [r8]
jmp 0x14003c124
mov rdx, r12
movzx ecx, byte [r8 - 2]
add r9d, 3
shl rcx, 0x10
add r8, 3
add rcx, rax
add rcx, rdx
mov rax, rcx
shr rax, 0x12
movsx eax, byte [rax + rbp]
mov word [r15 + r11*2], ax
mov rax, rcx
shr rax, 0xc
and eax, 0x3f
movsx eax, byte [rax + rbp]
mov word [r15 + r11*2 + 2], ax
mov rax, rcx
shr rax, 6
and ecx, 0x3f
and eax, 0x3f
movsx eax, byte [rax + rbp]
mov word [r15 + r11*2 + 4], ax
movsx eax, byte [rcx + rbp]
mov word [r15 + r11*2 + 6], ax
add r11, 4
sub r10, 1
jne 0x14003c100
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea ecx, [rdx + rdx*2]
cmp edi, ecx
je 0x14003c1bc
sub ecx, edi
add ecx, 3
test ecx, ecx
jle 0x14003c1bc
sub r14d, ecx
movsxd rax, r14d
lea rdi, [r15 + rax*2]
mov eax, 0x3d
movzx eax, ax
rep stosw word [rdi], ax
mov rdx, qword [rsi]
movsxd rax, ebx
lea rdi, [rdx - 0x18]
mov word [rdx + rax*2], r12w
mov rcx, rdi
mov dword [rdi + 8], ebx
mov eax, dword [rcx + 0x10]
mov r15, qword [rsp + 0x58]
mov r14, qword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
cmp eax, 0xffffffff
jne 0x14003c1f5
mov eax, 1
xchg dword [rcx + 0x10], eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040470
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r13, r8
mov rsi, rdx
mov r12, rcx
xor r14d, r14d
mov dword [rbp - 0x18], r14d
lea rdx, [0x1401acff0]
mov rcx, rsi
call fcn.14000a4d0
mov r15d, 1
mov dword [rbp - 0x18], r15d
mov rcx, qword [r12]
test rcx, rcx
je 0x1400405dd
mov dword [rbp - 0x20], r15d
mov dword [rbp + 0x40], r14d
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x20]
xor r8d, r8d
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400405dd
mov ecx, dword [rbp - 0x20]
lea eax, [rcx - 1]
cmp eax, r15d
jbe 0x1400405f8
cmp ecx, 4
jne 0x1400405dd
mov dword [rbp + 0x58], r14d
mov rcx, qword [r12]
test rcx, rcx
je 0x1400405c8
mov dword [rbp - 0x14], 4
mov dword [rbp - 0x1c], 0xffffffff
lea rax, [rbp - 0x14]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x1c]
xor r8d, r8d
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140040558
mov dword [rbp + 0x58], r14d
jmp 0x1400405c8
mov eax, dword [rbp - 0x1c]
cmp eax, 4
je 0x1400405c8
mov dword [rbp + 0x58], r14d
cmp eax, r15d
jne 0x1400405c8
lea r9, [0x1401acff0]
mov r8, r13
lea rdx, [rbp - 0x10]
mov rcx, r12
call fcn.140040470
nop
mov rax, qword [rbp - 0x10]
cmp dword [rax - 0x10], 0
jle 0x140040599
mov rcx, rax
call fcn.140012ff0
mov dword [rbp + 0x58], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400405c8
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400405be
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400405c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movsxd rdx, dword [rbp + 0x58]
mov r9d, 0xa
xor r8d, r8d
mov rcx, rsi
call fcn.14003a5f0
mov rax, rsi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edi, dword [rbp + 0x40]
inc rdi
shr rdi, 1
lea edx, [rdi + 1]
movzx r9d, r15b
xor r8d, r8d
mov rcx, rsi
call fcn.140037200
mov rbx, rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x20]
xor r8d, r8d
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rcx, edi
mov word [rbx + rcx*2], r14w
mov rdx, qword [rsi]
test rdx, rdx
je 0x140040666
mov rcx, rdx
nop dword [rax + rax]
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x140040650
sub rcx, rdx
sar rcx, 1
lea r14d, [rcx - 1]
mov dword [rdx - 0x10], r14d
mov eax, dword [rdx - 8]
cmp eax, 0xffffffff
mov rax, rsi
jne 0x1400405e0
xchg dword [rdx - 8], r15d
jmp 0x1400405e0