joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035f60
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140036000
jmp 0x140035fef
jae 0x1400360c0
cmp r8, 0x201
jae 0x140036000
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140036058
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14003602f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14004e5e0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140036081
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140036128
mov r8d, r14d
cmp r15, r8
jne 0x140035fe0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140036155
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140035fef
jmp 0x140036000
cmp rsi, r8
jb 0x14003616f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140038180
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140036111
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140014920
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400360f9
jmp 0x140036111
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14004eed0
jmp 0x140036184
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14004f420
ud2
Function at 0x14003c8e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140057320]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14003c924
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14003c98a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14003c9c1
test eax, eax
js 0x14003c99b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14003c9b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140037e40
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400340c0
mov ecx, 7
int 0x29
ud2

Function at 0x14003dad0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14003db08
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14003db20
nop
add rsp, 0x38
ret

Function at 0x14003db20
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14003db63
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140036b60]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14004ee00
ud2
Function at 0x14003e1d0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14006b1cd]
mov ecx, 0x10
mov edx, 8
call fcn.140014910
test rax, rax
je 0x14003e2af
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003e360]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003e2a1
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14003e278
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140014920
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140014920
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14004ed10
ud2
Function at 0x14004c6a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14004c71a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14004c710
cmp r11, r10
ja 0x14004c7b1
cmp r10, rdx
ja 0x14004c7c3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14004c712
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14004c6f0
jmp 0x14004c787
ja 0x14004c71a
mov r11, r10
cmp rax, r8
jne 0x14004c6c2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14004c78b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14004c760
mov r8, r10
sub ecx, r9d
jns 0x14004c77e
jmp 0x14004c78d
cmp r10, rdx
je 0x14004c799
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14004c78d
xor al, 1
cmp r8, rdx
jne 0x14004c740
jmp 0x14004c78d
xor eax, eax
jmp 0x14004c78d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140059b69]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14004eed0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14004f4a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14004f420
int3

Function at 0x14004e048
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14004e092
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004e092
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004e092
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004e092
cmp dword [rcx + 0x84], 0xe
jbe 0x14004e092
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004e094
xor al, al
add rsp, 0x28
ret
Function at 0x1800019f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, rcx
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x400
call fcn.180003580
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x180001a36
cmp rax, 0x190
ja 0x180001aed
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x64]
movzx edx, word [rsp + 0x62]
movzx eax, word [rsp + 0x66]
movzx r10d, word [rsp + 0x60]
movzx r11d, word [rsp + 0x5e]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x30], edx
lea rdx, str._d__02d__02d__02d:_02d:_02d:_03d_t_s_r_n
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x70]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x180001ab0
mov rcx, qword [0x180017bf8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180017bf8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180002480
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret
Function at 0x180001b10
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x278
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
mov ebp, edx
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov r13, rcx
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
mov esi, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
test rax, rax
je 0x180001d2d
movsxd rdx, ebp
lea ecx, [rdi + 0x40]
mov qword [rsp + 0x2c0], r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x180001d00
lea r9, [rsp + 0x44]
mov dword [rsp + 0x44], edi
mov r8d, ebp
mov qword [rsp + 0x20], rdi
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180001d00
mov qword [rsp + 0x270], r15
lea ecx, [rbx + 0x40]
mov eax, 0x10
mov dword [rsp + 0x40], edi
mov r15d, edi
test bpl, 0xf
cmova r15d, eax
mov eax, ebp
and eax, 0xfffffff0
add r15d, eax
mov edx, r15d
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x180001bf8
xor edi, edi
mov esi, edi
mov r15d, edi
jmp 0x180001c93
mov r8, rbp
test ebp, ebp
je 0x180001c2b
mov rcx, rsi
cmp rdi, rbp
jb 0x180001c11
mov rdx, r14
call fcn.180003e50
jmp 0x180001c2b
mov r8, rdi
xor edx, edx
call fcn.180003580
call fcn.1800046f8
mov dword [rax], 0x22
call fcn.1800045d8
lea r8, [0x180018ed0]
mov rbx, rsi
test r15d, r15d
je 0x180001c86
dec rdi
shr rdi, 4
inc rdi
nop dword [rax]
nop dword [rax + rax]
mov rax, rbx
sub r8, rbx
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x180001c60
mov rcx, rbx
call fcn.1800015c0
mov r8, rbx
add rbx, 0x10
sub rdi, 1
jne 0x180001c50
movups xmm0, xmmword [r8]
xor edi, edi
movaps xmmword [0x180018ed0], xmm0
mov r8, r13
mov dword [rsp + 0x40], r15d
lea rdx, str._s.aes
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x50]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, qword [rsp + 0x270]
mov rbx, rax
test rax, rax
je 0x180001d00
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x20], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2c0]
test rsi, rsi
je 0x180001d1f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbx, rbx
je 0x180001d2d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180002480
add rsp, 0x278
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008b70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r9
mov r14, r8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rax
cmp qword [rdx + 0x18], 8
jb 0x140008bb1
mov rdx, qword [rdx]
movzx r9d, byte [rsp + 0xb0]
shl r9d, 9
add r9d, 0x20019
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140013200
mov edi, eax
test eax, eax
jne 0x140008c93
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rcx
mov dword [rsp + 0x30], eax
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140008bfa
mov rdx, qword [r14]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, 0xea
je 0x140008c2c
test eax, eax
jne 0x140008c7a
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
mov edx, dword [rsp + 0x30]
cmp rdx, rax
jbe 0x140008c76
mov rcx, rsi
call fcn.14000c130
mov rax, qword [rsi]
cmp qword [r14 + 0x18], 8
jb 0x140008c51
mov r14, qword [r14]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x140008c81
mov rax, qword [rsi]
mov qword [rsi + 8], rax
test rbx, rbx
je 0x140008c98
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x140008c98
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140008ca6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140142180
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140008cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, r9
mov r15, r8
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xor ebx, ebx
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x38], ebx
mov qword [rbp - 0x30], rbx
cmp qword [rdx + 0x18], 8
jb 0x140008d06
mov rdx, qword [rdx]
movzx r9d, byte [rbp + 0x68]
shl r9d, 9
add r9d, 0x20019
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x40]
call fcn.140013200
mov esi, eax
test eax, eax
jne 0x140008e9d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov r14, rbx
mov qword [rbp - 0x18], rbx
mov eax, ebx
mov dword [rbp - 0x48], ebx
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140008d8b
mov rdx, r15
cmp qword [r15 + 0x18], 8
jb 0x140008d59
mov rdx, qword [r15]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x44]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp eax, 0xea
mov eax, dword [rbp - 0x48]
je 0x140008d8b
test ecx, ecx
cmovne eax, ebx
mov dword [rbp - 0x48], eax
mov edx, eax
test eax, eax
je 0x140008d9e
lea rcx, [rbp - 0x28]
call fcn.1400107c0
mov r14, qword [rbp - 0x18]
mov r12, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x28]
sub r12, rbx
cmp qword [r15 + 0x18], 8
jb 0x140008db3
mov r15, qword [r15]
lea eax, [r12 + r12]
mov dword [rbp - 0x48], eax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x44]
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x140008de6
xor r15d, r15d
jmp 0x140008e56
mov eax, dword [rbp - 0x44]
dec eax
cmp eax, 1
jbe 0x140008dfa
mov esi, 0xd
xor r15d, r15d
jmp 0x140008e56
test rbx, rbx
je 0x140008e28
mov eax, dword [rbp - 0x48]
test eax, eax
je 0x140008e1f
test al, 1
jne 0x140008e15
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x140008e28
mov esi, 0xd
xor r15d, r15d
jmp 0x140008e56
xor r15d, r15d
mov word [rbx], r15w
jmp 0x140008e2b
xor r15d, r15d
mov esi, r15d
test r12, r12
je 0x140008e56
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140008e40
mov rdx, rbx
mov rcx, r13
call fcn.140012600
test rdi, rdi
je 0x140008e67
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r15
test rbx, rbx
je 0x140008ea1
sub r14, rbx
mov rax, rbx
cmp r14, 0x1000
jb 0x140008e90
add r14, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008ece
mov rdx, r14
mov rcx, rbx
call fcn.1401420dc
jmp 0x140008ea1
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140008eaf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140142180
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140149044
nop
int3
Function at 0x140009390
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov qword [rsp + 0x38], r9
cmp qword [rdx + 0x18], 8
mov rsi, r9
mov rbx, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
jb 0x1400093ce
mov rdx, qword [rdx]
movzx r9d, byte [rsp + 0xb0]
mov r8, rdx
shl r9d, 9
mov rdx, rcx
add r9d, 0x20019
lea rcx, [rsp + 0x40]
call fcn.140013200
mov edi, eax
test eax, eax
jne 0x14000945f
cmp qword [rbx + 0x18], 8
jb 0x140009402
mov rbx, qword [rbx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 8
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rdx, rbx
lea rax, [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14000944c
cmp dword [rsp + 0x34], 0xb
mov edi, ebp
mov eax, 0xd
cmovne edi, eax
test rbx, rbx
je 0x140009472
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
jmp 0x140009464
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140009472
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x38]
test edi, edi
cmovne rax, rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140142180
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400094a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
mov dword [rsp + 0x30], r9d
cmp qword [rdx + 0x18], 8
mov esi, r9d
mov rbx, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
jb 0x1400094de
mov rdx, qword [rdx]
movzx r9d, byte [rsp + 0xb0]
mov r8, rdx
shl r9d, 9
mov rdx, rcx
add r9d, 0x20019
lea rcx, [rsp + 0x40]
call fcn.140013200
mov edi, eax
test eax, eax
jne 0x14000956f
cmp qword [rbx + 0x18], 8
jb 0x140009512
mov rbx, qword [rbx]
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
mov rdx, rbx
lea rax, [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14000955c
cmp dword [rsp + 0x38], 4
mov edi, ebp
mov eax, 0xd
cmovne edi, eax
test rbx, rbx
je 0x140009582
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
jmp 0x140009574
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140009582
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
test edi, edi
cmovne eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140142180
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009750
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
xor dil, dil
cmp qword [rdx + 0x18], 8
mov rsi, r9
mov rbx, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
jb 0x14000978c
mov rdx, qword [rdx]
movzx eax, byte [rsp + 0xc0]
mov r8, rdx
mov qword [rsp + 0x38], rbp
mov rdx, rcx
shl eax, 9
lea rcx, [rsp + 0x40]
add eax, 0x20006
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov dword [rsp + 0x20], ebp
call fcn.140012c90
test eax, eax
jne 0x140009821
cmp qword [rbx + 0x18], 8
jb 0x1400097cf
mov rbx, qword [rbx]
mov rdx, rbx
mov dword [rsp + 0x28], 8
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x58], rsi
mov r9d, VariantTimeToDosDateTime
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx edi, dil
mov ecx, 1
test eax, eax
cmove edi, ecx
test rbx, rbx
je 0x140009834
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rbp
jmp 0x140009826
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x140009834
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140142180
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140009850
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1401c4de0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
xor sil, sil
cmp qword [rdx + 0x18], 8
mov rbx, r9
mov r14, r8
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
jb 0x14000988e
mov rdx, qword [rdx]
movzx eax, byte [rsp + 0xb0]
mov r8, rdx
mov qword [rsp + 0x38], rbp
mov rdx, rcx
shl eax, 9
lea rcx, [rsp + 0x40]
add eax, 0x20006
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov dword [rsp + 0x20], ebp
call fcn.140012c90
test eax, eax
jne 0x14000993a
cmp qword [rbx + 0x18], 8
jb 0x1400098d1
mov rbx, qword [rbx]
cmp qword [r14 + 0x18], 8
jb 0x1400098db
mov r14, qword [r14]
mov rdi, qword [rsp + 0x40]
test rbx, rbx
jne 0x1400098ea
lea eax, [rbx + 0xd]
jmp 0x140009921
mov rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1400098f1
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete sil
test rdi, rdi
je 0x14000994d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbp
jmp 0x14000993f
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14000994d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140142180
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret