joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400099b8
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
xor edi, edi
mov r12, rdx
mov esi, edi
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009bb7
test al, 0x10
je 0x140009bb7
mov edx, 0x208
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140009bb7
mov ebp, 0x104
mov r8, r15
mov edx, ebp
mov rcx, rax
call fcn.1400ccad0
test eax, eax
jne 0x140009bae
lea r8, [0x140108dc4]
mov edx, ebp
mov rcx, rbx
call fcn.1400ccb38
test eax, eax
jne 0x140009bae
test r12, r12
lea r8, [0x140108dc8]
mov edx, ebp
mov rcx, rbx
cmovne r8, r12
call fcn.1400ccb38
test eax, eax
jne 0x140009bae
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140009bae
mov r13, qword [rsp + 0x308]
mov r14, qword [rsp + 0x300]
lea rdx, [0x140108dcc]
lea rcx, [rsp + 0x6c]
call fcn.1400cc960
test eax, eax
je 0x140009b8f
lea rdx, [0x140108dd0]
lea rcx, [rsp + 0x6c]
call fcn.1400cc960
test eax, eax
je 0x140009b8f
mov r8, r15
mov edx, 0x104
mov rcx, rbx
call fcn.1400ccad0
test eax, eax
jne 0x140009b8f
lea r8, [0x140108dc4]
mov edx, 0x104
mov rcx, rbx
call fcn.1400ccb38
test eax, eax
jne 0x140009b8f
or rdi, 0xffffffffffffffff
xor eax, eax
inc rdi
cmp word [rbx + rdi*2], ax
jne 0x140009afe
lea r8, [rsp + 0x6c]
mov edx, 0x104
mov rcx, rbx
call fcn.1400ccb38
xor ecx, ecx
test eax, eax
jne 0x140009b8d
cmp dword [rsp + 0x2f8], ecx
jne 0x140009b68
test byte [rsp + 0x40], 0x10
je 0x140009b68
xor edi, edi
cmp dword [rsp + 0x2e0], edi
je 0x140009b8f
mov r9d, dword [rsp + 0x2e8]
lea r8d, [rcx + 1]
mov qword [rsp + 0x38], r13
inc r9d
mov qword [rsp + 0x30], r14
mov rdx, r12
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.1400099b8
jmp 0x140009b85
test r14, r14
je 0x140009b8d
mov ecx, dword [rsp + 0x2e8]
mov r9, r13
mov eax, edi
mov rdx, rbx
lea r8, [rbx + rax*2]
call r14
xor edi, edi
mov esi, eax
test eax, eax
jne 0x140009ba5
jmp 0x140009b8f
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009a92
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x2d0]
mov eax, esi
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ad70
Capabilities:
Get domain controller name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
or edx, 0x40020000
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov rsi, r8
mov dword [rsp + 0x20], edx
xor ebx, ebx
mov rdx, rcx
mov qword [r11 + 0x20], rbx
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x14000ae0d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2 + 4], bx
jne 0x14000adbc
lea eax, [rax*2 + 2]
mov ecx, 0x40
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000ae00
mov rcx, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rcx]
mov rcx, rax
add rdx, 4
call fcn.1400e84c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x14000ae19
lea rcx, str.BigBad_:_kull_m_net_getDC___ERROR
call fcn.14000b9e4
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ae2c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rax + 8]
neg ecx
mov rsi, rdx
sbb edi, edi
and dword [rax + 8], ebx
and edi, 3
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14000aeb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000aeb1
mov edx, dword [rsp + 0x30]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000aebd
lea r8, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, eax
test eax, eax
jne 0x14000aebd
lea rcx, str.BigBad_:_kull_m_net_getComputerName___ERROR
call fcn.14000b9e4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000aebd
lea rcx, str.BigBad_:_kull_m_net_getComputerName___ERROR
call fcn.14000b9e4
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b524
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r10d, r10d
mov rcx, qword [rcx + 8]
mov rbx, r9
mov r11d, dword [rcx]
test r11d, r11d
je 0x14000b56b
cmp r11d, 1
jne 0x14000b58b
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, r8d
mov qword [rsp + 0x20], rax
mov r8, rdx
mov rdx, qword [rdi]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x14000b579
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10d, eax
test eax, eax
je 0x14000b58b
test rbx, rbx
je 0x14000b58b
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x48]
mov eax, r10d
add rsp, 0x30
pop rdi
ret

Function at 0x14000b59c
Capabilities:
Compress data via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rsi, r8
mov ebp, edx
mov r15, rcx
lea r8, [rax - 0x24]
mov ecx, 0x102
lea rdx, [rax - 0x28]
mov r14, r9
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlGetCompressionWorkSpaceSize]
test eax, eax
js 0x14000b647
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000b647
mov edx, ebp
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000b63e
mov qword [rsp + 0x38], rdi
mov ecx, 0x102
mov qword [rsp + 0x30], r14
mov r9, rax
mov dword [rsp + 0x28], 0x1000
mov r8d, ebp
mov rdx, r15
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_RtlCompressBuffer]
mov ebx, eax
not ebx
shr ebx, 0x1f
test ebx, ebx
jne 0x14000b63e
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x50]
mov eax, ebx
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
Function at 0x14000b664
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rdx
mov rsi, rcx
lea edx, [rdi + 0x10]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14000b726
and qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
and dword [rsp + 0x20], edi
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax], rcx
mov rax, qword [rbx]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000b706
and qword [rsp + 0x20], rdi
lea edx, [rdi + 4]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x14000b706
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
cmp dword [rcx], 0x504d444d
jne 0x14000b706
mov eax, 0xa793
cmp word [rcx + 4], ax
jne 0x14000b706
mov edi, 1
jmp 0x14000b726
mov rbx, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000b718
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000b726
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c17c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, ecx
mov rdx, qword [rdx]
mov ebx, 0xc0000004
test rdx, rdx
je 0x14000c1b0
lea r9, [rax + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
jmp 0x14000c1f6
mov edi, 0x1000
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000c1f6
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x14000c1ec
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp ebx, 0xc0000004
je 0x14000c1b5
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ce68
Capabilities:
Create process on windows

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 r15
sub rsp, 0xd0
mov r15d, r8d
mov rsi, rdx
mov edi, ecx
xor ebp, ebp
xor edx, edx
lea rcx, [rax - 0x74]
or r15d, 0x10
lea r8d, [rbp + 0x64]
call fcn.1400e8100
mov dword [rsp + 0x60], SQLExecDirectW
cmp qword [rsp + 0x120], rbp
je 0x14000cebd
mov rbx, qword [rsp + 0x120]
jmp 0x14000ced7
mov edx, reloc.ODBC32.dll_SQLAllocHandle
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000d007
mov rcx, rsi
call fcn.1400cc7ec
mov rsi, rax
test rax, rax
je 0x14000d007
test edi, edi
je 0x14000cf8a
sub edi, 1
je 0x14000cf51
cmp edi, 1
jne 0x14000cfeb
mov r9d, dword [rsp + 0x100]
lea rax, [rsp + 0x60]
mov r8, qword [rsp + 0x118]
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rbp
and qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
jmp 0x14000cfbd
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
xor r9d, r9d
and qword [rsp + 0x40], rbp
mov r8, rsi
and qword [rsp + 0x38], rbp
xor edx, edx
mov dword [rsp + 0x30], r15d
xor ecx, ecx
and dword [rsp + 0x28], ebp
and qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x14000cfbd
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], rbp
xor r8d, r8d
and qword [rsp + 0x30], rbp
mov rdx, rsi
mov dword [rsp + 0x28], r15d
xor ecx, ecx
and dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, eax
test eax, eax
je 0x14000cfeb
cmp dword [rsp + 0x128], 0
jne 0x14000cfd8
cmp qword [rsp + 0x120], 0
jne 0x14000cfff
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x120], 0
jne 0x14000cfff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call fcn.1400cc870
lea r11, [rsp + 0xd0]
mov eax, ebp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x14000d630
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov rbx, rcx
mov dword [rsp + 0x24], 0x60000
xor r15d, r15d
mov dword [rsp + 0x28], 0x860100aa
xor edx, edx
lea rcx, [rsp + 0x2c]
mov r8d, 0xf4
lea edi, [r15 + 1]
mov dword [rsp + 0x20], edi
call fcn.1400e8100
xor dl, dl
xor cl, cl
movzx eax, cl
add cl, dil
xor dl, byte [rsp + rax + 0x2a]
cmp cl, 2
jb 0x14000d683
lea rcx, [0x140109ca0]
mov byte [rsp + 0x2c], dl
mov byte [rsp + 0x2d], 0xbb
call fcn.14000b9e4
mov r8d, edi
lea rcx, [rsp + 0x20]
mov edx, reloc.Cabinet.dll_FCIDestroy
call fcn.140012120
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b9e4
mov esi, 0xa
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14d, 0x100
lea rdx, [rsp + 0x20]
mov r8d, r14d
mov rcx, rbx
call qword [sym.imp.HID.DLL_HidD_SetFeature]
test al, al
je 0x14000d82d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, r14d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.HID.DLL_HidD_GetFeature]
test al, al
je 0x14000d82d
cmp byte [rsp + 0x20], 3
jne 0x14000d82d
movzx ebx, word [rsp + 0x26]
lea edx, [r14 - 0xe]
lea eax, [rbx - 6]
cmp ax, dx
ja 0x14000d82d
lea rcx, [0x140109ca8]
call fcn.14000b9e4
lea edx, [rbx + 8]
mov r8d, edi
lea rcx, [rsp + 0x20]
call fcn.140012120
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b9e4
sub bl, 6
cmp byte [rsp + 0x28], 0xaa
jne 0x14000d82d
movzx eax, byte [rsp + 0x2a]
sub eax, edi
movzx edx, bl
cmp eax, edx
jne 0x14000d82d
xor r8b, r8b
lea r9d, [rdx + 2]
xor cl, cl
test r9d, r9d
je 0x14000d79b
movzx eax, cl
add cl, dil
xor r8b, byte [rsp + rax + 0x2a]
movzx eax, cl
cmp eax, r9d
jb 0x14000d788
cmp r8b, byte [rsp + rdx + 0x2c]
jne 0x14000d82d
mov byte [rsp + rdx + 0x2d], 0xbb
movzx ecx, byte [rsp + 0x2b]
test ecx, ecx
je 0x14000d7da
sub ecx, edi
je 0x14000d82d
sub ecx, edi
je 0x14000d82d
sub ecx, edi
je 0x14000d82d
sub ecx, edi
je 0x14000d82d
sub ecx, edi
je 0x14000d82d
sub ecx, 2
je 0x14000d82d
sub ecx, 3
je 0x14000d82d
cmp ecx, 0xf5
jne 0x14000d82d
mov rsi, qword [rbp + 0x60]
mov r15d, edi
test rsi, rsi
je 0x14000d839
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x14000d839
and qword [rsi], 0
mov byte [rdi], 0
test bl, bl
je 0x14000d839
movzx r14d, bl
mov ecx, 0x40
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000d828
mov r8d, r14d
lea rdx, [rsp + 0x2c]
mov rcx, rax
call fcn.1400e84c0
mov byte [rdi], bl
jmp 0x14000d839
xor r15d, r15d
jmp 0x14000d839
lea rcx, str.BigBad_:_rdm_send_receive___ERROR
call fcn.14000b9e4
lea r11, [rsp + 0x120]
mov eax, r15d
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000db84
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, rdx
mov esi, ecx
mov rdi, r9
mov ebp, r8d
lea edx, [rbx + 0x10]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x14000dcfd
mov dword [rax], esi
test esi, esi
je 0x14000dcf8
cmp esi, 1
jne 0x14000dced
lea edx, [rbx + 0x20]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov rax, qword [rdi]
cmp qword [rax + 8], rbx
je 0x14000dce9
mov eax, ebp
mov rcx, r14
neg eax
sbb r8d, r8d
and qword [rsp + 0x28], rbx
and dword [rsp + 0x20], ebx
and r8d, 2
add r8d, 2
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
test rcx, rcx
je 0x14000dce9
neg ebp
sbb edx, edx
and qword [rsp + 0x20], rbx
and edx, 0xfffffffe
xor r9d, r9d
add edx, 4
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov qword [rcx + 8], rdx
mov rax, qword [rdi]
mov r8, qword [rax + 8]
mov rdx, qword [r8 + 8]
test rdx, rdx
je 0x14000dce9
cmp dword [rdx], 0x66676572
mov rcx, rax
jne 0x14000dccb
cmp dword [rdx + 0x1c], ebx
jne 0x14000dccb
add rdx, 0x1000
cmp dword [rdx], 0x6e696268
jne 0x14000dccb
mov qword [r8 + 0x10], rdx
movsxd rax, dword [rdx + 4]
add rdx, 0x20
add rdx, rax
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov qword [rcx + 0x18], rdx
mov rcx, qword [rdi]
mov rax, qword [rcx + 8]
mov rdx, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [rdx + 4], ax
jne 0x14000dcc7
test byte [rdx + 6], 0xc
je 0x14000dcc7
mov ebx, esi
test ebx, ebx
jne 0x14000dcfd
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14000dcfd
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000dcfd
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e2f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov r9d, dword [rcx]
xor edi, edi
mov r10, r8
mov r11, rdx
mov r14, rcx
test r9d, r9d
je 0x14000e3a1
cmp r9d, 1
jne 0x14000e3db
call fcn.14000e1a0
test rax, rax
mov rcx, rax
setne dil
test rax, rax
je 0x14000e3db
mov ebx, dword [rax + 8]
mov rdx, qword [rsp + 0x60]
btr ebx, 0x1f
test rdx, rdx
je 0x14000e358
mov eax, dword [rax + 0x10]
mov dword [rdx], eax
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x14000e3db
mov r9, qword [rsp + 0x68]
test r9, r9
je 0x14000e39d
xor edi, edi
cmp dword [rsi], ebx
setae dil
jb 0x14000e39d
cmp dword [rcx + 8], 0
lea rdx, [rcx + 0xc]
jl 0x14000e392
mov rax, qword [r14 + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, ebx
mov rcx, r9
call fcn.1400e84c0
mov dword [rsi], ebx
jmp 0x14000e3db
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 dil
test eax, eax
je 0x14000e3db
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop r14
ret

Function at 0x14000e3f4
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 0x14000e482
cmp r9d, 1
jne 0x14000e4b9
call fcn.14000e1a0
mov rdx, rax
test rax, rax
je 0x14000e4b9
mov ecx, dword [rax + 8]
mov r8d, ecx
mov r9d, dword [rsp + 0x70]
btr r8d, 0x1f
cmp r8d, r9d
setae bl
jb 0x14000e47b
mov eax, dword [rsp + 0x60]
and ecx, 0x80000000
or ecx, r9d
mov dword [rdx + 0x10], eax
mov dword [rdx + 8], ecx
lea rcx, [rdx + 0xc]
jl 0x14000e46f
mov rax, qword [rdi + 8]
movsxd rcx, dword [rcx]
mov rax, qword [rax + 0x10]
add rax, 4
add rcx, rax
mov rdx, qword [rsp + 0x68]
call fcn.1400e84c0
jmp 0x14000e4b9
mov ecx, Ordinal_54
jmp 0x14000e4b3
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 0x14000e4b9
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 0x14000e4c8
Capabilities:
Query or enumerate registry key

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, 0x40
mov r10d, dword [rcx]
xor r12d, r12d
mov r14, qword [rsp + 0x80]
mov rsi, r9
mov r11d, r8d
mov rbp, rdx
mov edi, r12d
test r10d, r10d
je 0x14000e604
cmp r10d, 1
jne 0x14000e63c
cmp dword [rdx + 0x18], r12d
je 0x14000e63c
cmp r11d, dword [rdx + 0x18]
jae 0x14000e63c
cmp dword [rdx + 0x20], 0xffffffff
je 0x14000e63c
mov rax, qword [rcx + 8]
movsxd rcx, dword [rdx + 0x20]
mov r8, qword [rax + 0x10]
mov eax, 0x666c
add rcx, r8
cmp word [rcx + 4], ax
je 0x14000e559
mov eax, 0x686c
cmp word [rcx + 4], ax
jne 0x14000e63c
cmp word [rcx + 6], r12w
je 0x14000e63c
movzx eax, word [rcx + 6]
cmp r11d, eax
jae 0x14000e63c
movsxd rdx, dword [rcx + r11*8 + 8]
mov eax, 0x6b6e
add rdx, r8
cmp word [rdx + 4], ax
jne 0x14000e63c
test rsi, rsi
je 0x14000e63c
test r14, r14
je 0x14000e63c
test byte [rdx + 6], 0x20
movzx ebx, word [rdx + 0x4c]
je 0x14000e5da
cmp dword [r14], ebx
seta dil
jbe 0x14000e5f6
lea rcx, [rdx + 0x50]
mov edx, ebx
call fcn.140011f08
mov rbp, rax
test rax, rax
je 0x14000e5f6
lea r8, [rbx + rbx]
mov rdx, rax
mov rcx, rsi
call fcn.1400e84c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000e5f6
shr ebx, 1
cmp dword [r14], ebx
seta dil
jbe 0x14000e5f6
movzx r8d, word [rbp + 0x4c]
add rdx, 0x50
mov rcx, rsi
call fcn.1400e84c0
test edi, edi
je 0x14000e5ff
mov word [rsi + rbx*2], r12w
mov dword [r14], ebx
jmp 0x14000e63c
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 0x14000e63c
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x14000e660
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r11d, r8d
mov r10, rdx
mov r12, r9
mov edx, dword [rcx]
mov ebx, r13d
test edx, edx
je 0x14000e811
cmp edx, 1
jne 0x14000e865
lea r15, [rcx + 8]
test r10, r10
jne 0x14000e6ae
mov rax, qword [r15]
mov r10, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r10 + 4], ax
jne 0x14000e865
cmp dword [r10 + 0x28], r13d
je 0x14000e865
cmp r11d, dword [r10 + 0x28]
jae 0x14000e865
cmp dword [r10 + 0x2c], 0xffffffff
je 0x14000e865
mov rax, qword [r15]
movsxd rcx, dword [r10 + 0x2c]
add rcx, qword [rax + 0x10]
movsxd rdi, dword [rcx + r11*4 + 4]
add rdi, qword [rax + 0x10]
mov eax, 0x6b76
cmp word [rdi + 4], ax
jne 0x14000e865
test r12, r12
je 0x14000e865
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x14000e865
movzx eax, word [rdi + 6]
test ax, ax
je 0x14000e80c
test byte [rdi + 0x14], 1
mov esi, eax
mov edx, eax
je 0x14000e746
lea rcx, [rdi + 0x18]
inc esi
call fcn.140011f08
mov rbp, rax
test rax, rax
je 0x14000e79a
jmp 0x14000e772
shr esi, 1
add rdx, 2
mov ecx, 0x40
inc esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14000e79a
movzx r8d, word [rdi + 6]
lea rdx, [rdi + 0x18]
mov rcx, rax
call fcn.1400e84c0
cmp dword [r14], esi
setae bl
jb 0x14000e791
mov r8d, esi
mov rdx, rbp
add r8, r8
mov rcx, r12
call fcn.1400e84c0
lea eax, [rsi - 1]
mov dword [r14], eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
je 0x14000e865
mov esi, dword [rdi + 8]
mov rdx, qword [rsp + 0xa0]
btr esi, 0x1f
test rdx, rdx
je 0x14000e7bb
mov eax, dword [rdi + 0x10]
mov dword [rdx], eax
mov r14, qword [rsp + 0xb0]
test r14, r14
je 0x14000e865
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14000e807
cmp dword [r14], esi
mov ebx, r13d
setae bl
jb 0x14000e807
lea rdx, [rdi + 0xc]
cmp dword [rdi + 8], r13d
jl 0x14000e7ff
mov rax, qword [r15]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, esi
call fcn.1400e84c0
mov dword [r14], esi
jmp 0x14000e865
mov dword [r14], r13d
jmp 0x14000e865
mov rax, qword [rsp + 0xb0]
mov r8, r12
mov r9, qword [rsp + 0x90]
mov edx, r11d
mov qword [rsp + 0x38], rax
mov rcx, r10
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete bl
test eax, eax
je 0x14000e865
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret