joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065d20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r15
lea rdx, [0x14008d2ec]
lea r8, str.ExprRequirement
mov rcx, rax
call dbg.fprintf
mov r14, qword [rdi + 0x18]
movzx ebx, byte [rdi + 0x20]
mov rdi, qword [rdi + 0x28]
mov ecx, 2
call r15
mov ecx, 0xa
mov rdx, rax
call sym.fputc
cmp dword [rsi], 0
je 0x140065dab
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call r15
mov ecx, 0x20
mov rdx, rax
call sym.fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140065d90
mov byte [rsi + 4], 0
test r14, r14
je 0x140065dc1
mov rcx, r14
mov rdx, rsi
call sym.void__anonymous_namespace_::itanium_demangle::Node::visit_std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor____std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor___const
jmp 0x140065de6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sym.fwrite
mov byte [rsi + 4], 1
mov rcx, rsi
mov edx, ebx
call sym.void__anonymous_namespace_::DumpVisitor::printWithComma_bool__bool_
mov rcx, rsi
mov rdx, rdi
call sym.void__anonymous_namespace_::DumpVisitor::printWithComma__anonymous_namespace_::itanium_demangle::Node_const___anonymous_namespace_::itanium_demangle::Node_const_
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sym.fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140065e30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x14008d2ec]
lea r8, str.TypeRequirement
mov rcx, rax
call dbg.fprintf
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sym.fputc
cmp dword [rsi], 0
je 0x140065eaa
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sym.fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140065e90
mov byte [rsi + 4], 0
test rdi, rdi
je 0x140065ec0
mov rcx, rdi
mov rdx, rsi
call sym.void__anonymous_namespace_::itanium_demangle::Node::visit_std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor____std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor___const
jmp 0x140065ee5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sym.fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sym.fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140065f10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x14008d2ec]
lea r8, str.NestedRequirement
mov rcx, rax
call dbg.fprintf
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sym.fputc
cmp dword [rsi], 0
je 0x140065f8a
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sym.fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140065f70
mov byte [rsi + 4], 0
test rdi, rdi
je 0x140065fa0
mov rcx, rdi
mov rdx, rsi
call sym.void__anonymous_namespace_::itanium_demangle::Node::visit_std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor____std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor___const
jmp 0x140065fc5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sym.fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sym.fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140065ff0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, qword [rdx]
add dword [rcx], 2
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, [0x14008d2ec]
lea r8, str.ExplicitObjectParameter
mov rcx, rax
call dbg.fprintf
mov rdi, qword [rdi + 0x18]
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sym.fputc
cmp dword [rsi], 0
je 0x14006606a
xor ebp, ebp
nop word cs:[rax + rax]
mov ecx, 2
call rbx
mov ecx, 0x20
mov rdx, rax
call sym.fputc
inc ebp
cmp ebp, dword [rsi]
jne 0x140066050
mov byte [rsi + 4], 0
test rdi, rdi
je 0x140066080
mov rcx, rdi
mov rdx, rsi
call sym.void__anonymous_namespace_::itanium_demangle::Node::visit_std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor____std::__1::reference_wrapper__anonymous_namespace_::DumpVisitor___const
jmp 0x1400660a5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rcx, str._null_
mov edx, 6
mov r8d, 1
mov r9, rax
call sym.fwrite
mov byte [rsi + 4], 1
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x29
mov rdx, rax
call sym.fputc
add dword [rsi], 0xfffffffe
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14000104b
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400029e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x1400092ed]
call fcn.140001082
nop
mov rax, qword [rbp + 0x60]
mov qword [rbp], rax
mov rax, qword [rbp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002a1b
xor eax, eax
jmp 0x140002a6b
mov rax, qword [rbp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp dword [rax], 0x4550
je 0x140002a41
xor eax, eax
jmp 0x140002a6b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x68]
mov qword [rcx], rax
mov eax, 1
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x14000106e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140001740
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1b0
lea rbp, [rsp + 0x20]
lea rcx, [0x140009166]
call fcn.140001082
nop
cmp qword [rbp + 0x1b0], 0
je 0x14000177a
mov eax, dword [rbp + 0x1b8]
test rax, rax
jne 0x140001781
xor eax, eax
jmp 0x1400018f7
mov rax, qword [rbp + 0x1b0]
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400017a9
xor eax, eax
jmp 0x1400018f7
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
cmp dword [rax], 0x4550
je 0x1400017d2
xor eax, eax
jmp 0x1400018f7
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0x90]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov dword [rbp + 0x130], 0
jmp 0x140001874
mov eax, dword [rbp + 0x130]
inc eax
mov dword [rbp + 0x130], eax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x130], eax
jae 0x1400018f5
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x118]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x120]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x140], rax
mov rcx, qword [rbp + 0x138]
call fcn.14000105f
cmp dword [rbp + 0x1b8], eax
jne 0x1400018f0
mov rax, qword [rbp + 0x140]
jmp 0x1400018f7
jmp 0x140001866
xor eax, eax
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001091
Capabilities:
Execute syscall

Disassembly:
jmp 0x1400035e1
mov r10, rcx
mov eax, dword [0x1400061a0]
syscall
ret

Function at 0x1400015e0
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x1400015e0
mov dword [rsp + 8], ecx
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x20]
lea rcx, [0x140009166]
call fcn.140001082
nop
mov eax, dword [rbp + 0x190]
test rax, rax
jne 0x140001610
xor eax, eax
jmp 0x1400016ed
mov rax, qword gs:[0x60]
mov qword [rbp], rax
mov rax, qword [rbp]
mov rax, qword [rax + 0x18]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x1400016eb
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x48]
test rax, rax
je 0x1400016d9
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x1400016d9
mov dword [rbp + 0x130], 0
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1400016b1
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x50]
movzx ecx, byte [rcx + rax*2]
call fcn.14000107d
mov ecx, dword [rbp + 0x130]
mov byte [rbp + rcx + 0x20], al
mov eax, dword [rbp + 0x130]
inc eax
mov dword [rbp + 0x130], eax
jmp 0x14000166a
mov eax, dword [rbp + 0x130]
mov byte [rbp + rax + 0x20], 0
lea rcx, [rbp + 0x20]
call fcn.14000105f
cmp eax, dword [rbp + 0x190]
jne 0x1400016d7
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
jmp 0x1400016ed
jmp 0x1400016db
jmp 0x1400016eb
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
jmp 0x140001635
xor eax, eax
lea rsp, [rbp + 0x180]
pop rbp
ret
Function at 0x140001740
Capabilities:
Parse pe header

Disassembly:
jmp 0x140001740
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1b0
lea rbp, [rsp + 0x20]
lea rcx, [0x140009166]
call fcn.140001082
nop
cmp qword [rbp + 0x1b0], 0
je 0x14000177a
mov eax, dword [rbp + 0x1b8]
test rax, rax
jne 0x140001781
xor eax, eax
jmp 0x1400018f7
mov rax, qword [rbp + 0x1b0]
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400017a9
xor eax, eax
jmp 0x1400018f7
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
cmp dword [rax], 0x4550
je 0x1400017d2
xor eax, eax
jmp 0x1400018f7
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0x90]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov dword [rbp + 0x130], 0
jmp 0x140001874
mov eax, dword [rbp + 0x130]
inc eax
mov dword [rbp + 0x130], eax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x130], eax
jae 0x1400018f5
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x118]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x120]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x140], rax
mov rcx, qword [rbp + 0x138]
call fcn.14000105f
cmp dword [rbp + 0x1b8], eax
jne 0x1400018f0
mov rax, qword [rbp + 0x140]
jmp 0x1400018f7
jmp 0x140001866
xor eax, eax
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400029e0
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400029e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x20]
lea rcx, [0x1400092ed]
call fcn.140001082
nop
mov rax, qword [rbp + 0x60]
mov qword [rbp], rax
mov rax, qword [rbp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002a1b
xor eax, eax
jmp 0x140002a6b
mov rax, qword [rbp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
cmp dword [rax], 0x4550
je 0x140002a41
xor eax, eax
jmp 0x140002a6b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x68]
mov qword [rcx], rax
mov eax, 1
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x1400293ac
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ca74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400294fc
cmp rax, 0xffffffffffffffff
je 0x1400294fc
xor edi, edi
test rbp, rbp
jle 0x1400294a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f3a0
mov rbx, rax
test rax, rax
jne 0x140029434
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002949d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a3a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d750
cmp eax, 0xffffffff
je 0x14002947d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029444
mov edx, r15d
mov ecx, r14d
call fcn.14001a3a8
jmp 0x14002949d
cmp byte [rsi + 0x38], dil
je 0x140029494
cmp dword [rsi + 0x34], 5
jne 0x140029494
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002949d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b13c
jmp 0x140029510
jns 0x140029510
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca74
cmp rax, 0xffffffffffffffff
jne 0x1400294c8
cmp byte [rsi + 0x30], dil
je 0x140029510
mov edi, dword [rsi + 0x2c]
jmp 0x140029510
mov ecx, r14d
call fcn.140018864
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029510
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029509
mov eax, dword [rsi + 0x2c]
jmp 0x14002950e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca74
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140006618
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140007098]
test rax, rax
je 0x140006662
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006662
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006662
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006662
cmp dword [rcx + 0x84], 0xe
jbe 0x140006662
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006664
xor al, al
add rsp, 0x28
ret
Function at 0x140011d90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x103d0
call fcn.140022990
sub rsp, rax
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x103c0], rax
xor ebx, ebx
mov rax, rdx
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov dword [rsp + 0x20], ebx
jb 0x140011dcb
mov rax, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x140011e53
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x3c0], bx
je 0x140011e1c
lea rcx, [rsp + 0x3c0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140011e10
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x3c0]
mov rcx, rdi
call fcn.140007f48
mov rax, rdi
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x103f0]
add rsp, 0x103d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_expand_environment_variables
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140008ad4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400123f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140012499
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
jb 0x14001243c
mov rdx, qword [rdx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001246b
cmp eax, 2
je 0x140012476
cmp eax, 0xea
je 0x140012476
jmp 0x1400124c1
cmp dword [rsp + 0x30], 4
jne 0x140012476
mov al, 1
jmp 0x140012478
xor al, al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x408]
add rsp, 0x3e0
pop rdi
ret
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_DWORD_value._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.1400091e0
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
lea rcx, [rsp + 0x40]
mov r8d, eax
mov edx, 0xf
call fcn.140008da4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140012500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rsi, rcx
xor r14d, r14d
mov rcx, qword [rcx + 0x30]
mov rbx, r8
mov rdi, rdx
test rcx, rcx
je 0x140012697
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r14d
jb 0x140012556
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, eax
cmp eax, 2
je 0x140012678
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140012678
test r8d, r8d
jne 0x1400126c2
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x1400125a7
mov rax, qword [rbx]
jmp 0x1400125aa
mov rax, rbx
mov word [rax], r14w
cmp dword [rsp + 0x30], 2
ja 0x1400125bc
mov al, 1
jmp 0x14001267a
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x1400125e6
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x1400125dc
mov rax, qword [rbx]
jmp 0x1400125df
mov rax, rbx
mov word [rax + rdx*2], r14w
jmp 0x1400125f5
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140007d00
cmp qword [rbx + 0x18], 8
jb 0x140012601
mov rax, qword [rbx]
jmp 0x140012604
mov rax, rbx
cmp qword [rdi + 0x18], 8
jb 0x140012610
mov rdx, qword [rdi]
jmp 0x140012613
mov rdx, rdi
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x34]
mov rcx, qword [rsi + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400126f8
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x140012664
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14001265a
mov rbx, qword [rbx]
mov word [rbx + rdx*2], r14w
jmp 0x1400125b5
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140007d00
jmp 0x1400125b5
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3e0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9, rdx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.140008f88
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rsi + 0x10]
mov qword [rsp + 0x28], rdi
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
mov qword [rsp + 0x20], rax
mov edx, 0xf
lea rcx, [rsp + 0x40]
call fcn.140008da4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsi + 0x10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rcx
lea r9, str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
lea rcx, [rsp + 0x40]
mov r8d, eax
mov edx, 0xf
call fcn.140008da4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400133d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, rcx
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x14001345a
cmp qword [rdx + 0x10], 0x3fff
ja 0x140013482
cmp qword [rdx + 0x18], 8
jb 0x140013417
mov rdx, qword [rdx]
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400134aa
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x418]
add rsp, 0x3f0
pop rdi
ret
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x50]
call fcn.1400091e0
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._value_name_is_too_long
mov edx, 0x1d
lea rcx, [rsp + 0x50]
call fcn.140008e64
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x30], rcx
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_name___s__value___i__in_registry_key__s
lea rcx, [rsp + 0x40]
mov edx, 0xf
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call fcn.140009028
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3