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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001d40
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ce5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d62
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001cde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001cf0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c68
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400022f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000234c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002343
test eax, eax
jne 0x140002343
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002328
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002560
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002578
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002580
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002590
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400025dd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400025d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400025df
add rax, 0x28
cmp rax, r9
jne 0x1400025c0
xor eax, eax
ret

Function at 0x1400025e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002670
mov rdx, qword [0x140004410]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000265e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000265e
cmp word [rax + 0x18], 0x20b
jne 0x14000265e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002670
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002649
add rbx, 0x28
cmp rbx, rdi
je 0x140002670
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002640
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002680
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400026a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400026a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400026a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400026fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400026f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400026a0
add rax, 0x28
cmp rax, r9
jne 0x1400026e0
xor eax, eax
ret

Function at 0x140002700
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004410]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000271f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002728
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000271f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004410]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002760
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002768
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002760
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400027b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027a7
test rcx, rcx
je 0x140002760
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002798
xor eax, eax
ret

Function at 0x1400027c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004410]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400027df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400027e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004410]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002820
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002820
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002874
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002880
add rdx, 0x28
cmp rdx, r9
jne 0x140002860
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002890
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004410]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400028b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400028c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400028b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400028b2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002915
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002928
add rdx, 0x28
cmp r10, rdx
jne 0x140002900
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002937
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002947
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000291e
test ecx, ecx
jg 0x140002930
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x2fc4d33b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4490
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3db2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3e4a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3e2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3e22
cmp qword [rbp - 0x10], 0
je 0x2fc4d3e22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3de8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3e4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3f50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3f78
mov eax, 0
jmp 0x2fc4d3fc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3fa1
mov eax, 0
jmp 0x2fc4d3fc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3fc1
mov eax, 0
jmp 0x2fc4d3fc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3fcc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d404a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4041
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d4041
mov rax, qword [rbp - 8]
jmp 0x2fc4d405f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4014
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140259048]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword gs:[0x30]
mov r15d, edx
mov ebp, ecx
mov r8, qword [rax + 0x60]
mov r14, qword [r8 + 0x18]
add r14, 0x20
mov rbx, qword [r14]
cmp rbx, r14
je 0x140001173
nop dword [rax]
cmp word [rbx + 0x48], 0x3f
jae 0x140001167
mov r9, qword [rbx + 0x50]
xor r11d, r11d
xor r10d, r10d
cmp word [r9], r10w
je 0x1400010ac
nop dword [rax + rax]
cmp r11d, 0x3f
jae 0x1400010a2
movzx edx, word [r9]
movzx r8d, dl
cmp edx, 0x61
lea eax, [r8 - 0x20]
movzx ecx, al
cmovb ecx, r8d
add r9, 2
mov byte [rsp + r10 + 0x20], cl
inc r11d
inc r10
cmp word [r9], 0
jne 0x140001070
cmp r10, 0x40
jae 0x1400011aa
mov byte [rsp + r10 + 0x20], 0
lea rcx, [rsp + 0x20]
movzx eax, byte [rsp + 0x20]
mov edx, 0x811c9dc5
test al, al
je 0x1400010e6
nop word [rax + rax]
movzx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx]
test al, al
jne 0x1400010d0
cmp edx, r15d
jne 0x140001167
mov r10, qword [rbx + 0x20]
movsxd rax, dword [r10 + 0x3c]
movsxd rcx, dword [rax + r10 + 0x88]
add rcx, r10
movsxd rax, dword [rcx + 0x20]
test eax, eax
je 0x140001167
movsxd rdi, dword [rcx + 0x24]
lea r8, [r10 + rax]
movsxd rsi, dword [rcx + 0x1c]
add rdi, r10
mov r11d, dword [rcx + 0x18]
add rsi, r10
xor r9d, r9d
test r11d, r11d
je 0x140001167
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [r8]
mov edx, 0x811c9dc5
add rax, r10
movzx ecx, byte [rax]
test cl, cl
je 0x140001157
inc rax
movzx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax]
test cl, cl
jne 0x140001142
cmp edx, ebp
je 0x14000119c
inc r9d
add r8, 4
cmp r9d, r11d
jb 0x140001130
mov rbx, qword [rbx]
cmp rbx, r14
jne 0x140001050
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402441a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [rdi + r9*2]
movsxd rax, dword [rsi + rcx*4]
add rax, r10
jmp 0x140001175
call fcn.140243f0c
int3

Function at 0x140001910
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9d, edx
mov r10, rcx
test edx, edx
jle 0x140001964
lea r11, str.nzM:xb_8NN_o
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x2aaaaaab
lea r10, [r10 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
inc r8d
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
movzx eax, byte [rcx + r11]
xor byte [r10 - 1], al
cmp r8d, r9d
jl 0x140001930
mov eax, r9d
ret
Function at 0x140246538
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140246364
Function at 0x140010b40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x103d0
call fcn.140022ac0
sub rsp, rax
mov rax, qword [0x140198858]
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 0x140010b7b
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 0x140010c03
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x3c0], bx
je 0x140010bcc
lea rcx, [rsp + 0x3c0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140010bc0
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x3c0]
mov rcx, rdi
call fcn.1400083f8
mov rax, rdi
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.140022430
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.140008a24
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140010e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140010ea5
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
jb 0x140010e48
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 0x140010e77
cmp eax, 2
je 0x140010e82
cmp eax, 0xea
je 0x140010e82
jmp 0x140010ecd
cmp dword [rsp + 0x30], 4
jne 0x140010e82
mov al, 1
jmp 0x140010e84
xor al, al
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140022430
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.140009130
lea rdx, [0x1401e5908]
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.140008cf4
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140010f08
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 [0x140198858]
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 0x14001109f
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], r14d
jb 0x140010f5e
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 0x140011080
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140011080
test r8d, r8d
jne 0x1400110ca
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x18], 8
jb 0x140010faf
mov rax, qword [rbx]
jmp 0x140010fb2
mov rax, rbx
mov word [rax], r14w
cmp dword [rsp + 0x30], 2
ja 0x140010fc4
mov al, 1
jmp 0x140011082
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x140010fee
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x140010fe4
mov rax, qword [rbx]
jmp 0x140010fe7
mov rax, rbx
mov word [rax + rdx*2], r14w
jmp 0x140010ffd
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.1400081b0
cmp qword [rbx + 0x18], 8
jb 0x140011009
mov rax, qword [rbx]
jmp 0x14001100c
mov rax, rbx
cmp qword [rdi + 0x18], 8
jb 0x140011018
mov rdx, qword [rdi]
jmp 0x14001101b
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 0x140011100
mov edx, dword [rsp + 0x30]
shr rdx, 1
dec rdx
cmp rdx, qword [rbx + 0x10]
ja 0x14001106c
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x140011062
mov rbx, qword [rbx]
mov word [rbx + rdx*2], r14w
jmp 0x140010fbd
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.1400081b0
jmp 0x140010fbd
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140022430
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.140008ed8
lea rdx, [0x1401e5908]
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.140008cf4
lea rdx, [0x1401e5908]
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.140008cf4
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140011d58
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x140198858]
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 0x140011de2
cmp qword [rdx + 0x10], 0x3fff
ja 0x140011e0a
cmp qword [rdx + 0x18], 8
jb 0x140011d9f
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 0x140011e32
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140022430
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.140009130
lea rdx, [0x1401e5908]
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.140008db4
lea rdx, [0x1401e5908]
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.140008f78
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3