joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140116c78
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
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x140116ca1
mov rdi, qword [rdx + 0x10]
jmp 0x140116cf2
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x140116cc2
call fcn.140014214
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140116cdc
call fcn.140014214
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140116cf2
call fcn.140014214
call fcn.14000ec78
cmp qword [rax + 0x68], 0
je 0x140116d0c
mov rdx, rdi
mov rcx, rbp
call fcn.140115408
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140116ab8
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x140116d33
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x140116d42
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14014ac0c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14014aa7c

Function at 0x140150083
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140229d30]
jne 0x14014852a
rol rcx, 0x10
test cx, 0xffff
jne 0x140148526
repz ret
ror rcx, 0x10
jmp 0x14014ffdc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140245af0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140245be8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140150061
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140245af0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140150083
mov rax, qword [rsp + 0x88]
mov qword [0x140245be8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140245b88], rax
mov rax, qword [0x140245be8]
mov qword [0x140245a60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140245b70], rax
mov dword [0x140245a50], 0xc0000409
mov dword [0x140245a54], 1
mov rax, qword [0x140229d30]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140229d38]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140245ae8], eax
mov ecx, 1
call fcn.14015f890
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.PZ__
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140245ae8], 0
jne 0x14015010a
mov ecx, 1
call fcn.14015f890
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140160838
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140229d30]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140150cec
xor ebx, ebx
cmp qword [0x140246b18], rbx
mov rdi, rax
jne 0x14016094b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140160a22
lea rdx, [0x1401df4b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140160a22
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401df4a0]
mov rcx, rsi
mov qword [0x140246b18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401df488]
mov rcx, rsi
mov qword [0x140246b20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1401df468]
mov rcx, rsi
mov qword [0x140246b28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140246b38], rax
test rax, rax
je 0x140160942
lea rdx, [0x1401df450]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140246b30], rax
jmp 0x140160952
mov rax, qword [0x140246b30]
jmp 0x140160959
mov rax, qword [0x140246b30]
mov r11, qword [0x140246b38]
cmp rax, rdi
je 0x1401609c0
cmp r11, rdi
je 0x1401609c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140246b38]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1401609c0
test rax, rax
je 0x1401609c0
call rsi
test rax, rax
je 0x1401609ba
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1401609ba
test byte [rsp + 0x40], 1
jne 0x1401609c0
bts ebp, 0x15
jmp 0x140160a00
mov rcx, qword [0x140246b20]
cmp rcx, rdi
je 0x140160a00
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140160a00
call rax
mov rbx, rax
test rax, rax
je 0x140160a00
mov rcx, qword [0x140246b28]
cmp rcx, rdi
je 0x140160a00
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140160a00
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140246b18]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140160a22
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140160a24
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140148510
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140164ba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x140164bce
or r9d, 0x20019
mov r8d, r9d
call fcn.140164b50
mov rbx, rax
jmp 0x140164bd1
mov rbx, rcx
test rbx, rbx
je 0x140164c65
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164c58
cmp dword [rsp + 0x58], 4
jne 0x140164c58
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164c58
cmp rbx, rdi
je 0x140164c43
mov rcx, rbx
call fcn.140164b80
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x140164c65
mov rcx, rbx
call fcn.140164b80
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140164c80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x140164cae
or r9d, 0x20019
mov r8d, r9d
call fcn.140164b50
mov rbx, rax
jmp 0x140164cb1
mov rbx, rcx
test rbx, rbx
je 0x140164d4f
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164d42
cmp dword [rsp + 0x30], 3
jne 0x140164d42
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x140164d42
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164d42
cmp rbx, rdi
je 0x140164d2d
mov rcx, rbx
call fcn.140164b80
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x140164d4f
mov rcx, rbx
call fcn.140164b80
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140164d70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x140164d9e
or r9d, 0x20019
mov r8d, r9d
call fcn.140164b50
mov rbx, rax
jmp 0x140164da1
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x140164e53
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164e46
cmp dword [rsp + 0x30], 3
jne 0x140164e46
mov ecx, dword [rsp + 0x58]
call fcn.140007dec
mov rdi, rax
test rax, rax
je 0x140164e46
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140164e3e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x140164e37
mov rcx, rbx
call fcn.140164b80
mov eax, 1
jmp 0x140164e55
mov rcx, rdi
call fcn.140007de4
cmp rbx, rsi
je 0x140164e53
mov rcx, rbx
call fcn.140164b80
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret

Function at 0x140164f70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x140164fa3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.140164b50
mov rsi, rax
jmp 0x140164fa6
mov rsi, qword [rcx]
test rsi, rsi
je 0x140165042
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14016501f
test edi, edi
je 0x14016501a
dec edi
je 0x140165002
sub edi, 2
je 0x140164ff8
dec edi
jne 0x14016501f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x14016501f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x14016501f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x14016501a
cmp eax, 2
je 0x14016501a
cmp eax, 6
je 0x14016501a
cmp eax, 7
jne 0x14016501f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x14016502d
mov rcx, rsi
call fcn.140164b80
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x140164f70
Function at 0x140165060
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x140165085
or r8d, 0x20019
call fcn.140164b50
mov rdi, rax
jmp 0x140165088
mov rdi, rcx
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbp
call fcn.14000b73c
test rdi, rdi
je 0x1401651c2
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1401651b5
cmp dword [rsp + 0x60], ebx
jbe 0x1401651b5
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
call fcn.140007dec
mov rbp, rax
test rax, rax
je 0x1401651b5
cmp dword [rsp + 0x60], ebx
jbe 0x140165199
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.14014b070
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140165191
mov rdx, qword [rsi + 0x10]
mov r8, rbp
mov rcx, rsi
call fcn.14000bb2c
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140165150
mov rcx, rbp
call fcn.140007de4
cmp rdi, r12
je 0x1401651ae
mov rcx, rdi
call fcn.140164b80
mov eax, 1
jmp 0x1401651c4
cmp rdi, r12
je 0x1401651c2
mov rcx, rdi
call fcn.140164b80
xor eax, eax
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140165060
Function at 0x140165270
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x140165085
or r8d, 0x20019
call fcn.140164b50
mov rdi, rax
jmp 0x140165088
mov rdi, rcx
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], rbp
call fcn.14000b73c
test rdi, rdi
je 0x1401651c2
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x1401651b5
cmp dword [rsp + 0x60], ebx
jbe 0x1401651b5
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
call fcn.140007dec
mov rbp, rax
test rax, rax
je 0x1401651b5
cmp dword [rsp + 0x60], ebx
jbe 0x140165199
nop word [rax + rax]
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
call fcn.14014b070
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140165191
mov rdx, qword [rsi + 0x10]
mov r8, rbp
mov rcx, rsi
call fcn.14000bb2c
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140165150
mov rcx, rbp
call fcn.140007de4
cmp rdi, r12
je 0x1401651ae
mov rcx, rdi
call fcn.140164b80
mov eax, 1
jmp 0x1401651c4
cmp rdi, r12
je 0x1401651c2
mov rcx, rdi
call fcn.140164b80
xor eax, eax
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x140165060

Function at 0x140165280
Capabilities:
Query or enumerate registry key

Disassembly:
mov r8, rdx
xor edx, edx
jmp fcn.140165270
Function at 0x140165290
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov edi, r9d
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x140164fa3
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
or r8d, 0x20019
call fcn.140164b50
mov rsi, rax
jmp 0x140164fa6
mov rsi, qword [rcx]
test rsi, rsi
je 0x140165042
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rbx
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor ebx, ebx
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14016501f
test edi, edi
je 0x14016501a
dec edi
je 0x140165002
sub edi, 2
je 0x140164ff8
dec edi
jne 0x14016501f
cmp dword [rsp + 0x68], 4
sete bl
jmp 0x14016501f
cmp dword [rsp + 0x68], 3
sete bl
jmp 0x14016501f
mov eax, dword [rsp + 0x68]
cmp eax, 1
je 0x14016501a
cmp eax, 2
je 0x14016501a
cmp eax, 6
je 0x14016501a
cmp eax, 7
jne 0x14016501f
mov ebx, 1
cmp rsi, qword [rbp]
je 0x14016502d
mov rcx, rsi
call fcn.140164b80
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
xor eax, eax
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov r9d, r8d
mov r8, rdx
xor edx, edx
jmp 0x140164f70

Function at 0x140165370
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
mov r12, r8
mov rbp, rcx
test rdx, rdx
je 0x140165398
or r9d, 0x20019
mov r8d, r9d
call fcn.140164b50
mov rbx, rax
jmp 0x14016539b
mov rbx, rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rdi
test rbx, rbx
je 0x1401654af
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1401654a2
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1401653f7
cmp eax, 2
je 0x1401653f7
cmp eax, 6
je 0x1401653f7
cmp eax, 7
jne 0x1401654a2
mov ecx, dword [rsp + 0x68]
add ecx, 2
call fcn.140007dec
mov r8d, dword [rsp + 0x68]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.14014b070
lea r11, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140165483
test rsi, rsi
je 0x140165454
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
lea edi, [rcx - 1]
mov rcx, qword [rsp + 0x80]
mov r8d, edi
mov rdx, rsi
call fcn.140001780
cmp rbx, rbp
je 0x140165474
mov rcx, rbx
call fcn.140164b80
mov rcx, rsi
call fcn.140007de4
mov eax, 1
jmp 0x1401654b1
mov rcx, rsi
call fcn.140007de4
mov rcx, qword [rsp + 0x80]
lea rdx, [0x1401ee2ad]
xor r8d, r8d
call fcn.140001780
cmp rbx, rbp
je 0x1401654af
mov rcx, rbx
call fcn.140164b80
xor eax, eax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
Function at 0x1401654d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rax, qword [0x140229d30]
xor rax, rbp
mov qword [rbp + 8], rax
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x140165518
or r9d, 0x20019
mov r8d, r9d
call fcn.140164b50
mov rbx, rax
jmp 0x14016551b
mov rbx, rcx
test rbx, rbx
je 0x140165708
call fcn.140167c60
test eax, eax
je 0x14016562f
test rsi, rsi
je 0x14016558e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r8d, [rax + 1]
cmp r8d, 0x3fffffff
jle 0x140165550
xor esi, esi
jmp 0x14016558e
movsxd rax, r8d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140165569
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14014a6f0
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x30]
mov rdx, rsi
call fcn.140007efc
mov rsi, rax
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401656fb
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x1401655d6
cmp eax, 2
je 0x1401655d6
cmp eax, 6
je 0x1401655d6
cmp eax, 7
jne 0x1401656fb
mov ecx, dword [rbp]
add ecx, 2
call fcn.140007dec
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.14014b070
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401656e3
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.140006830
jmp 0x1401656c7
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1401656fb
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x140165677
cmp eax, 2
je 0x140165677
cmp eax, 6
je 0x140165677
cmp eax, 7
jne 0x1401656fb
mov ecx, dword [rbp]
add ecx, 2
call fcn.140007dec
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.14014b070
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1401656e3
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.140006700
cmp rbx, rdi
je 0x1401656d4
mov rcx, rbx
call fcn.140164b80
mov rcx, r12
call fcn.140007de4
mov eax, 1
jmp 0x14016570a
mov rcx, r12
call fcn.140007de4
mov rcx, qword [rbp + 0x40]
lea rdx, [0x1401ee2ad]
call fcn.140006700
cmp rbx, rdi
je 0x140165708
mov rcx, rbx
call fcn.140164b80
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.140148510
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x1401660f0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.14000b5e0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x14016617f
test rsi, rsi
je 0x14016617f
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.14000b5a4
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1401673d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140167498
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x68]
cmp r11d, 2
jb 0x14016748d
add r11d, 2
mov eax, 2
mov dword [rsp + 0x68], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140007dec
mov rbx, rax
test rax, rax
je 0x14016748d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1401674b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140167521
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret