joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008cd0
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
cmp dword [0x1401b2858], ebx
mov esi, r8d
mov rbp, rdx
mov dword [rsp + 0x78], ebx
mov r14, rcx
je 0x140008db3
lea rax, [rsp + 0x78]
mov edx, esi
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140008e16
mov edx, dword [rsp + 0x78]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140008e16
lea rax, [rsp + 0x78]
mov r9, rdi
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov esi, eax
test eax, eax
je 0x140008da6
mov rdx, r14
lea rcx, str._n_nBase64_of_file_:__s_n_n
call fcn.14000afb0
cmp dword [rsp + 0x78], ebx
jbe 0x140008d9a
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
lea rcx, [0x140159510]
movzx edx, word [rdi + rax*2]
call fcn.14000afb0
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x140008d80
lea rcx, str._n
call fcn.14000afb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x140008e18
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140008e16
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140008e0d
cmp esi, dword [rsp + 0x78]
jne 0x140008e0d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140008e30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
cmp dword [0x1401b285c], ebx
mov r14, rdx
je 0x140008e86
call fcn.140012c20
mov ebx, eax
test eax, eax
jne 0x140008f33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_file_readGeneric___kull_m_string_quick_base64_to_Binary__0x_08x__n
call fcn.14000afb0
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov edx, 0x80000000
mov qword [rsp + 0x60], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140008f2c
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140008f23
cmp dword [rsp + 0x44], ebx
jne 0x140008f23
mov rax, qword [rsp + 0x40]
mov ecx, 0x40
mov edx, eax
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x140008f23
mov r8d, dword [rdi]
lea r9, [rsp + 0x78]
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140008f1a
mov eax, dword [rsp + 0x78]
cmp dword [rdi], eax
jne 0x140008f1a
mov ebx, 1
jmp 0x140008f23
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140008f50
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push r12
push r13
sub rsp, 0x2a8
mov r13d, r9d
mov rbx, rdx
mov r12, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009190
test al, 0x10
je 0x140009190
mov edx, 0x208
mov qword [rsp + 0x2a0], rdi
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140009178
mov r8, r12
mov edx, 0x104
mov rcx, rax
call fcn.14011ed38
test eax, eax
jne 0x14000916f
lea r8, [0x1401595fc]
mov edx, 0x104
mov rcx, rdi
call fcn.14011eda0
test eax, eax
jne 0x14000916f
test rbx, rbx
lea r8, [0x140159600]
mov edx, 0x104
mov rcx, rdi
cmovne r8, rbx
call fcn.14011eda0
test eax, eax
jne 0x14000916f
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x298], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140009167
mov qword [rsp + 0x2d0], rbp
mov rbp, qword [rsp + 0x300]
mov qword [rsp + 0x290], r15
mov r15, qword [rsp + 0x308]
nop word [rax + rax]
lea rdx, [0x140159604]
lea rcx, [rsp + 0x6c]
call fcn.14011ebc8
test eax, eax
je 0x140009138
lea rdx, [0x140159608]
lea rcx, [rsp + 0x6c]
call fcn.14011ebc8
test eax, eax
je 0x140009138
mov r8, r12
mov edx, 0x104
mov rcx, rdi
call fcn.14011ed38
test eax, eax
jne 0x140009138
lea r8, [0x1401595fc]
mov edx, 0x104
mov rcx, rdi
call fcn.14011eda0
test eax, eax
jne 0x140009138
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400090c0
lea r8, [rsp + 0x6c]
mov edx, 0x104
mov rcx, rdi
call fcn.14011eda0
test eax, eax
jne 0x140009138
test byte [rsp + 0x40], 0x10
je 0x14000911c
cmp dword [rsp + 0x2e0], eax
je 0x140009138
mov rdx, qword [rsp + 0x2d8]
lea r9d, [r13 + 1]
mov qword [rsp + 0x38], r15
lea r8d, [rax + 1]
mov qword [rsp + 0x30], rbp
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call fcn.140008f50
jmp 0x140009132
test rbp, rbp
je 0x140009138
mov eax, ebx
mov r9, r15
mov rdx, rdi
mov ecx, r13d
lea r8, [rdi + rax*2]
call rbp
mov esi, eax
test eax, eax
jne 0x14000914e
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009050
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x2d0]
mov r14, qword [rsp + 0x298]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x2a0]
mov eax, esi
add rsp, 0x2a8
pop r13
pop r12
pop rsi
pop rbx
ret
mov eax, esi
add rsp, 0x2a8
pop r13
pop r12
pop rsi
pop rbx
ret
Function at 0x1400091a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x70
lea rdx, str.Token
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, 0xc0000004
mov edi, 0x1000
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400093bd
lea r9, [rsp + 0xa0]
mov r8d, edi
mov rdx, rax
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
test eax, eax
jns 0x140009213
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp esi, 0xc0000004
je 0x1400091d2
test esi, esi
js 0x1400093bd
xor edi, edi
cmp dword [rbx], edi
jbe 0x1400093b4
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
mov r13, qword [rsp + 0xb0]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x90], rbp
nop dword [rax]
nop word [rax + rax]
lea rcx, [rdi + rdi*2]
xor edx, edx
mov r8d, dword [rbx + rcx*8 + 8]
lea r14, [rbx + rcx*8]
mov r12d, 1
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x14000938e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movzx edx, word [r14 + 0xe]
lea r9, [rsp + 0x98]
mov dword [rsp + 0x30], 0
mov r8, rax
mov dword [rsp + 0x28], r12d
mov rcx, r15
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140009380
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0xa8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r12 + 1]
call qword [sym.imp.ntdll.dll_NtQueryObject]
cmp eax, 0xc0000004
jne 0x140009372
mov edx, dword [rsp + 0xa8]
lea ecx, [r12 + 0x3f]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140009372
mov r9d, dword [rsp + 0xa8]
lea rax, [rsp + 0xa8]
mov rcx, qword [rsp + 0x98]
lea edx, [r12 + 1]
mov r8, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryObject]
test eax, eax
js 0x140009369
movzx r8d, r12b
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
je 0x140009369
mov rcx, qword [rsp + 0x98]
lea rdx, [r14 + 8]
mov r8, r13
call fcn.140013b60
mov r12d, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
je 0x140009398
inc edi
cmp edi, dword [rbx]
jb 0x140009260
mov rbp, qword [rsp + 0x90]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000a3e0
Capabilities:
Get domain controller name

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
or edx, 0x40020000
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rsi, r8
mov dword [rsp + 0x20], edx
xor ebx, ebx
mov rdx, rcx
mov qword [rsp + 0x58], rbx
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x14000a493
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x40], rdi
mov rcx, qword [rax]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 6], bx
lea rax, [rax + 1]
jne 0x14000a431
lea ecx, [rax*2 + 2]
mov edi, ecx
mov edx, ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000a476
mov rcx, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rcx]
mov rcx, rax
add rdx, 4
call fcn.14011b4a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rdi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov edx, eax
lea rcx, str.ERROR_kull_m_net_getDC___DsGetDcName:__u_n
call fcn.14000afb0
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
Function at 0x14000a4b0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbp, rdx
mov ebx, ecx
mov rsi, r8
lea edx, [rdi + 0x10]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000a651
mov dword [rax], ebx
test ebx, ebx
je 0x14000a533
sub ebx, 1
je 0x14000a62b
sub ebx, 1
je 0x14000a53d
sub ebx, 1
je 0x14000a508
cmp ebx, 3
jne 0x14000a648
mov edx, 8
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rax, qword [rsi]
test rcx, rcx
mov qword [rax + 8], rcx
je 0x14000a648
mov rax, qword [rsi]
mov rcx, qword [rax + 8]
mov qword [rcx], rbp
mov eax, 1
jmp 0x14000a653
mov edx, 8
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x14000a648
mov rax, qword [rsi]
mov edx, 0x10
mov qword [rsp + 0x40], r14
mov ebx, edi
mov r14, qword [rax + 8]
lea ecx, [rdx + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x14000a61c
xor r9d, r9d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov dword [rsp + 0x20], edi
mov rcx, rbp
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov rax, qword [r14]
mov qword [rax], rcx
mov rax, qword [r14]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000a5fa
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov rax, qword [r14]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x14000a5fa
mov rax, qword [r14]
mov rcx, qword [rax + 8]
cmp dword [rcx], 0x504d444d
jne 0x14000a5fa
mov eax, 0xa793
cmp word [rcx + 4], ax
jne 0x14000a5fa
mov ebx, 1
jmp 0x14000a61c
mov rbx, qword [r14]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000a60c
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx]
mov ebx, edi
test rcx, rcx
je 0x14000a61c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x40]
mov edi, ebx
test ebx, ebx
je 0x14000a648
mov eax, ebx
jmp 0x14000a653
mov edx, 8
lea ecx, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsi]
test rax, rax
mov qword [rcx + 8], rax
jmp 0x14000a523
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b700
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, rdx
mov r14, rcx
mov ebx, 0xc0000004
mov edi, 0x1000
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000b79f
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x14000b75c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp ebx, 0xc0000004
je 0x14000b722
test ebx, ebx
js 0x14000b79f
mov rdx, rbp
mov rcx, rsi
mov rdi, rsi
call r14
test eax, eax
je 0x14000b796
nop word [rax + rax]
mov eax, dword [rdi]
test eax, eax
je 0x14000b796
add rdi, rax
mov rdx, rbp
mov rcx, rdi
call r14
test eax, eax
jne 0x14000b780
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14000b7c0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
mov r15, rdx
xor r12d, r12d
mov rdx, rcx
mov ebp, r12d
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, 0xc0000004
mov qword [rsp + 0x60], r14
mov ebx, 0x1000
nop word [rax + rax]
mov edx, ebx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000b883
lea r9, [rsp + 0x68]
mov r8d, ebx
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, eax
mov r14d, eax
test eax, eax
jns 0x14000b83d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, ebx
cmp esi, 0xc0000004
je 0x14000b800
test r14d, r14d
js 0x14000b883
mov rbx, rdi
nop
lea rcx, [rbx + 0x38]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
movzx ebp, al
test al, al
jne 0x14000b874
mov eax, dword [rbx]
test eax, eax
je 0x14000b87a
add rbx, rax
jmp 0x14000b850
mov ecx, dword [rbx + 0x50]
mov dword [r15], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x60]
test esi, esi
mov rbx, qword [rsp + 0x70]
cmovs ebp, r12d
mov eax, ebp
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c240
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov ebx, 1
mov qword [rax + 0x20], 0
mov rsi, r8
lea r9, [rax + 8]
mov rbp, rdx
mov r14, rcx
lea rdx, [rax + 0x20]
lea r8d, [rbx + 7]
lea ecx, [rbx + 0x31]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rdx, qword [rsp + 0x88]
movabs rcx, 0xffff080000000000
test eax, eax
cmovs rdx, rcx
mov ecx, dword [r14]
mov qword [rsp + 0x88], rdx
test ecx, ecx
je 0x14000c3cb
sub ecx, ebx
je 0x14000c37a
cmp ecx, ebx
jne 0x14000c2e5
mov rax, qword [r14 + 8]
mov rcx, qword [rax]
mov r10, qword [rcx + 8]
xor ecx, ecx
mov r9d, dword [r10 + 0xc]
mov r8d, dword [r10 + 8]
add r9, r10
test r8d, r8d
je 0x14000c2e5
mov rdx, r9
cmp dword [rdx], 0x10
je 0x14000c2ef
inc ecx
add rdx, 0xc
cmp ecx, r8d
jb 0x14000c2d5
mov eax, 0xc0000225
jmp 0x14000c40d
lea rcx, [rcx + rcx*2]
mov edi, dword [r9 + rcx*4 + 8]
add rdi, r10
je 0x14000c2e5
xor r14d, r14d
cmp qword [rdi + 8], r14
jbe 0x14000c40b
nop word [rax + rax]
test ebx, ebx
je 0x14000c40b
mov eax, dword [rdi + 4]
mov edx, dword [rdi]
imul eax, r14d
add rax, rdi
add rdx, rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x28], rax
mov eax, dword [rdx + 0x10]
mov dword [rsp + 0x30], eax
mov rax, qword [rdx]
mov qword [rsp + 0x20], rax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x44], eax
mov rax, qword [rdx + 0x18]
mov qword [rsp + 0x38], rax
mov eax, dword [rdx + 0x20]
mov dword [rsp + 0x40], eax
mov ecx, dword [rdx + 0x28]
mov rdx, rsi
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x20]
call rbp
inc r14d
mov ebx, eax
mov ecx, r14d
cmp rcx, qword [rdi + 8]
jb 0x14000c310
jmp 0x14000c40b
xor edi, edi
test rdx, rdx
je 0x14000c40b
test ebx, ebx
je 0x14000c40b
mov rcx, qword [r14 + 8]
lea r8, [rsp + 0x20]
mov r9d, 0x30
mov rdx, rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x14000c40b
mov rdx, rsi
lea rcx, [rsp + 0x20]
call rbp
add rdi, qword [rsp + 0x38]
mov ebx, eax
cmp rdi, qword [rsp + 0x88]
jb 0x14000c385
jmp 0x14000c40b
xor edi, edi
test rdx, rdx
je 0x14000c40b
test ebx, ebx
je 0x14000c40b
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jne 0x14000c40b
mov rdx, rsi
lea rcx, [rsp + 0x20]
call rbp
add rdi, qword [rsp + 0x38]
mov ebx, eax
cmp rdi, qword [rsp + 0x88]
jb 0x14000c3d2
xor eax, eax
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14000dc50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push r15
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov r15, rcx
test r9d, r9d
je 0x14000dd36
cmp r9d, 1
jne 0x14000dd6f
mov qword [rsp + 0x48], rdi
call fcn.14000daf0
test rax, rax
mov edi, ebx
mov rcx, rax
setne dil
test rax, rax
je 0x14000dd23
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x40], rsi
mov esi, dword [rax + 8]
btr esi, 0x1f
mov qword [rsp + 0x50], r14
test rdx, rdx
je 0x14000dcbb
mov eax, dword [rax + 0x10]
mov dword [rdx], eax
mov r14, qword [rsp + 0x70]
test r14, r14
je 0x14000dd06
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x14000dd03
cmp dword [r14], esi
mov edi, ebx
setae dil
jb 0x14000dd03
lea rax, [rcx + 0xc]
cmp dword [rcx + 8], ebx
jl 0x14000dcf5
mov rdx, qword [r15 + 8]
movsxd rax, dword [rax]
mov rdx, qword [rdx + 0x10]
add rdx, 4
add rax, rdx
mov r8d, esi
mov rdx, rax
mov rcx, r9
call fcn.14011b4a0
mov dword [r14], esi
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
mov rax, qword [rsp + 0x70]
xor r8d, r8d
mov r9, qword [rsp + 0x60]
mov rdx, r10
mov qword [rsp + 0x28], rax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
test eax, eax
je 0x14000dd6f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x14000dd80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r9d, dword [rcx]
xor ebx, ebx
mov r10, r8
mov r11, rdx
mov rdi, rcx
test r9d, r9d
je 0x14000de31
cmp r9d, 1
jne 0x14000de68
call fcn.14000daf0
mov r8, rax
test rax, rax
je 0x14000de68
mov ecx, dword [rax + 8]
mov edx, ecx
mov r9d, dword [rsp + 0x70]
btr edx, 0x1f
cmp edx, r9d
setae bl
jb 0x14000de19
mov eax, dword [rsp + 0x60]
and ecx, 0x80000000
or ecx, r9d
mov dword [r8 + 0x10], eax
mov dword [r8 + 8], ecx
lea rcx, [r8 + 0xc]
jl 0x14000ddff
mov rax, qword [rdi + 8]
movsxd rcx, dword [rcx]
mov rax, qword [rax + 0x10]
add rax, 4
add rcx, rax
mov r8d, edx
mov rdx, qword [rsp + 0x68]
call fcn.14011b4a0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x70]
xor r8d, r8d
mov r9d, dword [rsp + 0x60]
mov rdx, r10
mov dword [rsp + 0x28], eax
mov rcx, r11
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
test eax, eax
je 0x14000de68
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000de80
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r10d, dword [rcx]
xor r12d, r12d
mov r14, qword [rsp + 0x80]
mov rbp, rdx
mov r11d, r8d
mov rsi, r9
mov rdx, rcx
mov edi, r12d
test r10d, r10d
je 0x14000dfcd
cmp r10d, 1
jne 0x14000e005
mov eax, dword [rbp + 0x18]
test eax, eax
je 0x14000e005
cmp r11d, eax
jae 0x14000e005
movsxd rcx, dword [rbp + 0x20]
cmp ecx, 0xffffffff
je 0x14000e005
mov rax, qword [rdx + 8]
mov edx, 0x666c
mov r8, qword [rax + 0x10]
add rcx, r8
movzx eax, word [rcx + 4]
cmp ax, dx
je 0x14000df0b
mov edx, 0x686c
cmp ax, dx
jne 0x14000e005
movzx eax, word [rcx + 6]
test ax, ax
je 0x14000e005
cmp r11d, eax
jae 0x14000e005
movsxd rdx, dword [rcx + r11*8 + 8]
mov eax, 0x6b6e
add rdx, r8
cmp word [rdx + 4], ax
jne 0x14000e005
test rsi, rsi
je 0x14000e005
test r14, r14
je 0x14000e005
test byte [rdx + 6], 0x20
movzx ecx, word [rdx + 0x4c]
mov eax, dword [r14]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r15
je 0x14000df98
cmp eax, ecx
mov ebx, ecx
seta dil
jbe 0x14000dfb5
lea rcx, [rdx + 0x50]
mov edx, ebx
call fcn.140012170
mov rbp, rax
test rax, rax
je 0x14000dfb5
lea r8, [rbx + rbx]
mov rdx, rax
mov rcx, rsi
call fcn.14011b4a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000dfb5
mov ebx, ecx
shr ebx, 1
cmp eax, ebx
seta dil
jbe 0x14000dfb5
movzx r8d, word [rbp + 0x4c]
add rdx, 0x50
mov rcx, rsi
call fcn.14011b4a0
mov r15, qword [rsp + 0x68]
test edi, edi
je 0x14000dfc3
mov word [rsi + rbx*2], r12w
mov dword [r14], ebx
mov rbx, qword [rsp + 0x60]
jmp 0x14000e005
mov qword [rsp + 0x38], r12
mov r9, r14
mov qword [rsp + 0x30], r12
mov r8, rsi
mov qword [rsp + 0x28], r12
mov edx, r11d
mov rcx, rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete dil
test eax, eax
je 0x14000e005
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x70]
mov eax, edi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret