joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033550
Capabilities:
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], 0
mov qword [rcx + 8], 0
lea r8, str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
je 0x140033590
mov rcx, rax
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsi]
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140034bc0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140034c06
mov r15, rbx
test r15, r15
je 0x140034d01
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x140034c62
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140034c51
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1400ff470
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140034be2
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x140034d27
lea rcx, [r13*8]
call fcn.1400fc2cc
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x140034cc7
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x140034d01
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x140034cac
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x140034ce7
add rbx, 0xfffffffffffffff8
jne 0x140034cda
jmp 0x140034d14
test r12, r12
je 0x140034be2
mov rcx, r12
call fcn.1400fc308
mov r15, qword [rsi + 0x10]
jmp 0x140034be2
lea rcx, [0x140210516]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140139400
lea rcx, [0x140210516]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140139400
call fcn.140136570
int3
Function at 0x140045fb0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rcx], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140045fee
call fcn.1400dc3b0
cmp qword [rsi], r14
je 0x140046021
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400460dc
cmp r15, 2
jb 0x140046019
mov qword [rsi], r14
call fcn.1400dc3b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi + 8], 0xffffffffffffffff
lea r14, [rsi + 0x10]
xor eax, eax
mov qword [rsp + 0x28], rax
mov r15, qword [rdi]
mov qword [rdi], rax
test r15, r15
je 0x14004606e
cmp r15, 0xffffffffffffffff
je 0x14004604a
call fcn.1400dc3b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [r15 + 1]
cmp rax, 2
jb 0x140046066
mov qword [rsp + 0x28], r15
call fcn.1400dc3b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.140181900
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x1400460c6
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400460b0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400fd9d0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400dc3b0
mov rcx, qword [rdi]
call fcn.1400ce120
mov qword [rdi], 0
jmp 0x140046093
call fcn.1400dc3b0
mov rcx, qword [rbx]
call fcn.1400ce120
mov qword [rbx], 0
jmp 0x140046087
call fcn.1400dc3b0
mov rcx, qword [rsi]
call fcn.1400ce120
mov qword [rsi], 0
jmp 0x14004600b
Function at 0x140057bb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140057be0
Capabilities:
Delete registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x140057caf
mov ebp, r8d
mov rbx, rdx
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], r15
xor eax, eax
mov qword [rsp + 0x38], rax
mov r12d, dword [rsi + 8]
mov r9d, r12d
or r9d, 0x10001
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140057c8f
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x28], r14
and r12d, 0x300
mov dword [rsp + 0x30], r12d
test bpl, 1
je 0x140057cb6
test r14, r14
je 0x140057c80
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsi + 8]
mov rcx, qword [rsi]
mov rdx, rbx
call fcn.140057d20
mov edi, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, edi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, 6
jmp 0x140057c91
lea rdi, [rsp + 0x40]
mov qword [rdi], r15
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140057ef0
cmp byte [rdi + 4], 0
jne 0x140057cec
mov r8d, dword [rsi + 8]
lea rdx, [0x14021252a]
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x140057cf0
mov edi, dword [rsp + 0x40]
test r14, r14
je 0x140057c91
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140057c91
mov edx, 1
call fcn.140058aa0
jmp 0x140057c91
Function at 0x140057d20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x1402103c0]
movaps xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r9d, r8d
or r9d, 0x10009
lea rax, [rsp + 0x60]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140057e17
lea rbx, [rsp + 0x60]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x40]
mov qword [rcx], rdi
mov eax, esi
and eax, 0x300
mov dword [rcx + 8], eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx], rax
mov rdx, rbx
call fcn.140057ef0
cmp byte [rbx + 4], 0
jne 0x140057ecf
lea rdx, [0x14021252a]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x140057e1f
test rdi, rdi
je 0x140057de6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x140057ed8
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp eax, 2
cmovne ebx, eax
jmp 0x140057de6
mov ecx, 0x200
call fcn.1400fc33c
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.1400ffb20
xorps xmm6, xmm6
lea rbx, [rsp + 0x60]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x60], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x140057e9c
mov eax, dword [rsp + 0x60]
cmp rax, 0x100
jae 0x140057ee7
cmp word [r14 + rax*2], 0
jne 0x140057eea
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.140057d20
test eax, eax
je 0x140057e4b
jmp 0x140057ea1
mov rdi, qword [rsp + 0x40]
lea rdx, [0x14021252a]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x140057dd8
mov rcx, r14
call fcn.1400fc344
jmp 0x140057dd8
mov ebx, dword [rsp + 0x60]
jmp 0x140057dd8
mov edx, 1
call fcn.140058aa0
jmp 0x140057df4
int3
int3
Function at 0x140057ef0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x3c]
mov dword [r9], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SymbolicLinkValue
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x140057f56
mov byte [rsi], 0
xor eax, eax
mov byte [rsi + 4], al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400fd9d0
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
test eax, eax
jne 0x140057fa4
cmp dword [rsp + 0x3c], 6
jne 0x140057f37
mov rcx, qword [rdi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x140057faa
mov edi, eax
mov eax, dword [0x140261630]
mov ecx, dword [0x14025e4e8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140057fb9
mov rax, qword [0x140261628]
test rax, rax
je 0x140057fb2
mov ecx, edi
call qword [0x14023e858]
mov dword [rsi], eax
mov al, 1
jmp 0x140057f3c
mov dword [rsi], 0
jmp 0x140057fa6
mov eax, 5
jmp 0x140057fa4
lea rcx, [0x140261630]
call fcn.1400fc420
cmp dword [0x140261630], 0xffffffff
jne 0x140057f90
lea rcx, [0x140222894]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140261628], rax
lea rcx, [0x140261630]
call fcn.1400fc4b8
jmp 0x140057f90

Function at 0x140058010
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058098
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140058082
cmp dword [rsp + 0x38], 4
jne 0x140058082
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140058082
Function at 0x1400580a0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400fd970
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400ffb20
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058153
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140058157
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400406c0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140058134
cmp eax, 2
jne 0x14005819f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400ffb20
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400581a6
lea rdx, [rsp + 0x40]
jmp 0x14005812a
mov edi, 0x3f4
jmp 0x140058134
mov edi, 0xea
jmp 0x140058134

Function at 0x1400581b0
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x140058210
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14011f794
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400583d0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx], 0
je 0x1400584bf
cmp dword [rsi + 8], 0xffffffff
je 0x1400584bf
lea rdi, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400584eb
mov ebp, dword [rsi + 0x20]
dec ebp
lea rbx, [rsp + 0x44]
mov dword [rbx], ebp
mov eax, dword [rsi + 0x30]
mov r12, qword [rsi + 0x28]
sub eax, r12d
and eax, 0xfffffffe
add eax, 0xfffffffe
lea r14, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r15, [rsi + 0x44]
mov edx, ebp
mov rcx, rdi
call fcn.1400592d0
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x140058508
test eax, eax
jne 0x1400584bf
mov eax, dword [rsi + 0x40]
inc rax
shr rax, 1
mov rcx, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x30]
sub rdx, rcx
sar rdx, 1
cmp rdx, rax
jbe 0x1400584f5
mov word [rcx + rax*2], 0
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400584cc
mov rax, qword [rax]
mov word [rax], 0
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
je 0x1400584f5
mov word [rax], 0
mov dword [rsi + 0x40], 0
xor esi, esi
jmp 0x1400584a1
mov ebp, 0xa
jmp 0x140058417
lea rcx, [0x140210516]
lea rdx, str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.140139400
mov edx, dword [rsi + 0x40]
inc rdx
shr rdx, 1
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
mov rcx, rax
sar rcx, 1
cmp rcx, rdx
ja 0x140058549
lea rcx, [rsi + 0x28]
inc rdx
lea r8, [rsp + 0x42]
mov word [r8], 0
call fcn.140058650
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
and eax, 0xfffffffe
add eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rbx, [rsp + 0x44]
cmp dword [rbx], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rbx], edx
mov rcx, rdi
call fcn.1400592d0
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x140058478

Function at 0x140058630
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
je fcn.1400583d0
dec eax
mov dword [rcx + 8], eax
jmp fcn.1400583d0
Function at 0x1400586d0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x70], rax
or r9d, 0x20019
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400587a8
lea rdi, [rsp + 0x64]
mov dword [rdi], 0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x58], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400587ca
mov edx, dword [rsp + 0x64]
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
sete r8b
or r8b, al
jne 0x1400587af
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x6c]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400587b5
jmp 0x1400587af
mov qword [rsi], 0
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400fd9d0
nop
add rsp, 0x78
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400587a8

Function at 0x140058860
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, dword [rcx + 8]
cmp edx, 0xffffffff
je 0x1400588ed
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
sete r8b
or r8b, al
jne 0x1400588ed
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x54]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r10, [rsp + 0x4c]
mov qword [r10], rax
mov qword [rsp + 0x38], r10
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400588ed
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400fd9d0
nop
add rsp, 0x60
pop rsi
ret
mov word [rsi + 0xc], 0
jmp 0x1400588d9

Function at 0x14005a810
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14005a857
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005a871
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005a84f
mov qword [rsi], rdi
call fcn.1400dc3b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14005a887
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400dc3b0
mov rcx, qword [rsi]
call fcn.1400ce120
mov qword [rsi], 0
jmp 0x14005a83d
int3
Function at 0x14005be20
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1402103c0]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, [0x140222bc8]
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1c
call fcn.1400dc390
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400d1670
mov rcx, rsi
call fcn.1400cebe0
test al, al
je 0x14005bf6c
mov rcx, rsi
call fcn.140033ae0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rsi + 0x40]
cmp rcx, rax
je 0x14005bf0e
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14005bf95
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14005bf02
mov qword [rsi + 0x40], rdi
call fcn.1400dc3b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsi + 0x40]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14005bfb0
mov qword [rsp + 0x20], 0
xor edi, edi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14005bf6c
mov rbx, rax
lea rax, fcn.14014b530
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rbx
call fcn.140094940
mov eax, dword [rax + 0x50]
test rax, rax
setne dil
je 0x14005bf6c
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.1400d16f0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400dc3b0
mov rcx, qword [rsi + 0x40]
call fcn.1400ce120
mov qword [rsi + 0x40], 0
jmp 0x14005beef
xor edi, edi
jmp 0x14005bf6c
Function at 0x14005bfc0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14024f038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1402103c0]
lea r15, [rsp + 0x60]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.MapFileRegionToMemory
lea r8, [0x140222bc8]
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x42
call fcn.1400dc390
xor r14d, r14d
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1400d1670
mov rcx, rsi
call fcn.1400cebe0
test al, al
je 0x14005c146
test edi, edi
jne 0x14005c195
mov ebp, 2
mov edi, 4
xor r15d, r15d
mov rcx, rsi
call fcn.140033ae0
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebp
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x14005c0cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14005c175
mov rax, r14
inc rax
cmp rax, 2
jb 0x14005c0c0
mov qword [rsi + 0x40], r14
call fcn.1400dc3b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x14005c190
mov dword [rsp + 0x3c], 0
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
cmp rcx, qword [0x1402238a0]
jne 0x14005c1d7
cmp rdx, qword [0x1402238a8]
jne 0x14005c1d7
mov rcx, rsi
call fcn.14005c420
xor r14d, r14d
test rax, rax
jle 0x14005c146
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, edi
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14005c190
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rbx
mov r14b, 1
lea rcx, [rsp + 0x60]
call fcn.1400d16f0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400fd9d0
mov eax, r14d
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400dc3b0
mov rcx, qword [rsi + 0x40]
call fcn.1400ce120
mov qword [rsi + 0x40], 0
jmp 0x14005c0ab
xor r14d, r14d
jmp 0x14005c146
dec edi
cmp edi, 3
ja case.default.0x14005c1ae
lea rax, [0x140222c1c]
movsxd rcx, dword [rax + rdi*4]
add rcx, rax
jmp rcx
mov rcx, rsi
call fcn.14005be20
mov r14d, eax
jmp 0x14005c146
mov r14, qword [rbx + 8]
mov r15, r14
shr r15, 0x20
mov ebp, 4
mov edi, 2
jmp 0x14005c062
xor eax, eax
lea r14, [rsp + 0x40]
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov qword [r9], rax
lea r15, [rsp + 0x3c]
mov qword [rsp + 0x20], r15
mov r8, r14
call fcn.140068de0
mov rbx, qword [rbx + 8]
movsxd rax, dword [r15]
mov rdx, rax
sar rdx, 0x3f
add rax, rbx
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
setne dl
mov r14, qword [r14]
test r14, r14
js 0x14005c190
test dl, dl
jne 0x14005c190
test rcx, rcx
js 0x14005c190
test rax, rax
je 0x14005c190
mov r8, r14
shr r8, 0x20
jmp 0x14005c11a
mov ebp, 4
mov edi, 2
jmp 0x14005c05f
mov ebp, 8
mov edi, 1
jmp 0x14005c05f
mov edi, 0xaaaaaaaa
xor ebp, ebp
jmp 0x14005c05f