joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2ba161370
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x2ba1613d8
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptAcquireContextW___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2ba161553
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x2ba16142a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptCreateHash___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2ba161553
mov rax, qword [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x2ba161472
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptHashData___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2ba161553
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x2ba1614c5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDeriveKey___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2ba161553
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x2ba16151d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_in_CryptDecrypt___u__n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x2ba161553
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x2ba161573
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0xa8f0
call fcn.2ba1624c0
sub rsp, rax
lea rbp, [rsp + 0x80]
movabs rax, 0x540dfde795cc5c41
movabs rdx, 0x5998c10966077a95
mov qword [rbp + 0xa840], rax
mov qword [rbp + 0xa848], rdx
lea rax, [rbp - 0x40]
lea rdx, [0x2ba1690e8]
mov ecx, 0xa880
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0xa86c], 0xa880
mov r9d, 4
mov r8d, 0x3000
mov edx, 0xa880
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0xa860], rax
cmp qword [rbp + 0xa860], 0
jne 0x2ba161624
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x2ba161756
lea rcx, [rbp + 0xa840]
mov edx, dword [rbp + 0xa86c]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.DecryptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0xa860]
mov r8d, 0xa880
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0xa860]
mov r9, rdx
mov r8d, 0x20
mov edx, 0xa880
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x2ba1616b1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x2ba161756
mov rax, qword [rbp + 0xa860]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0xa858], rax
cmp qword [rbp + 0xa858], 0
jne 0x2ba161717
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x2ba161756
mov rax, qword [rbp + 0xa860]
mov rdx, rax
lea rax, str._n_nalmem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0xa858]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0xa860]
call rax
mov eax, 0
add rsp, 0xa8f0
pop rbp
ret

Function at 0x2ba161900
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x2ba161970
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2ba177064]
mov rbx, rcx
test esi, esi
jle 0x2ba161aa0
mov rax, qword [0x2ba177068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2ba1619bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2ba161a45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2ba1619a0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2ba161ac2
mov rax, qword [0x2ba177068]
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 [0x2ba177068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2ba161aa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2ba161a3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2ba161a50
add dword [0x2ba177064], 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 [0x2ba177068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2ba161a3e
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 0x2ba1619c8
mov rax, qword [0x2ba177068]
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 0x2ba161e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2ba1770a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2ba177080]
test rbx, rbx
je 0x2ba161e9c
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 eax, eax
jne 0x2ba161e93
test rsi, rsi
je 0x2ba161e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2ba161e78
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 0x2ba1620b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2ba1620c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2ba1620d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x2ba1620e0
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 0x2ba16212d
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 0x2ba162124
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2ba16212f
add rax, 0x28
cmp rax, r9
jne 0x2ba162110
xor eax, eax
ret

Function at 0x2ba162130
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2ba1621c0
mov rdx, qword [0x2ba173f10]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2ba1621ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2ba1621ae
cmp word [rax + 0x18], 0x20b
jne 0x2ba1621ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2ba1621c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2ba162199
add rbx, 0x28
cmp rbx, rdi
je 0x2ba1621c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2ba162190
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 0x2ba1621d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2ba173f10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2ba1621f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2ba1621f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2ba1621f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2ba16224d
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 0x2ba162244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2ba1621f0
add rax, 0x28
cmp rax, r9
jne 0x2ba162230
xor eax, eax
ret

Function at 0x2ba162250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2ba173f10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2ba16226f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2ba162278
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2ba16226f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2ba162290
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2ba173f10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2ba1622b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2ba1622b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2ba1622b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2ba162300
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2ba1622f7
test rcx, rcx
je 0x2ba1622b0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x2ba1622e8
xor eax, eax
ret
Function at 0x2ba162310
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x2ba173f10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2ba162370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2ba162378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2ba162370
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2ba162370
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 0x2ba1623c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2ba1623d0
add rdx, 0x28
cmp r9, rdx
jne 0x2ba1623b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x2ba173f10]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2ba162402
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2ba162410
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2ba162402
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2ba162402
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2ba162402
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 0x2ba162465
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2ba162478
add rdx, 0x28
cmp rdx, r10
jne 0x2ba162450
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2ba162487
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2ba162497
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2ba16246e
test ecx, ecx
jg 0x2ba162480
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x100007734
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r10d, r10d
xor r13d, r13d
xor r12d, r12d
cmp dword [rcx], 2
mov r14, r9
mov r15, r8
mov qword [rsp + 0x38], r10
mov rax, rdx
jne 0x100007775
lea rbp, [rcx + 0x10]
xor esi, esi
lea rbx, [rbp + 0x10]
jmp 0x100007788
cmp dword [rcx], 6
jne 0x100007923
lea rsi, [rcx + 0x10]
xor ebp, ebp
lea rbx, [rsi + 0x10]
cmp dword [rbx], r10d
je 0x1000078c4
cmp dword [rbx], 6
jne 0x100007923
cmp dword [rcx + 8], 0x5c
mov r13d, 0x38
jb 0x100007923
mov eax, dword [rcx + 0x40]
add eax, r13d
cmp dword [rcx + 8], eax
jb 0x100007923
cmp dword [rcx + 0x38], r10d
jne 0x100007923
cmp dword [rcx + 0x48], 5
jne 0x100007923
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
add rcx, r13
mov qword [rsp + 0x20], rax
call fcn.100005b1c
mov r10, qword [rsp + 0x38]
mov edi, eax
test eax, eax
js 0x1000078fe
cmp dword [rsp + 0x90], 0x2e
jb 0x100007816
cmp dword [r10], 3
jne 0x100007816
mov eax, dword [r10 + 0x14]
cmp dword [rax + r10], 2
je 0x100007820
mov edi, 0xc000000d
jmp 0x1000078fe
lea rdx, [rax + r10 + 0x14]
xor eax, eax
or r8, 0xffffffffffffffff
mov rdi, rdx
mov qword [rsp + 0x48], rdx
mov rcx, r8
repne scasw ax, word [rdi]
lea rdi, [r10 + 0x18]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasw ax, word [rdi]
add edx, edx
not rcx
mov qword [rsp + 0x40], rdx
lea eax, [rcx + rcx]
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
lea r8d, [rdx + rax]
xor edx, edx
mov rcx, qword [rcx + 0x30]
mov dword [rsp + 0x30], eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
test rax, rax
jne 0x10000788c
mov r10, qword [rsp + 0x38]
mov edi, 0xc0000017
jmp 0x1000078fe
mov edi, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
lea rcx, [rdi + r12]
add rdx, 0x18
call sub.msvcrt.dll_memcpy
mov r10, qword [rsp + 0x38]
mov rax, qword [rsp + 0x98]
xor edi, edi
test rax, rax
je 0x1000078ce
mov qword [rax], rsi
test r15, r15
je 0x1000078d6
mov qword [r15], rbp
test r14, r14
je 0x1000078de
mov qword [r14], rbx
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x1000078ee
mov dword [rax], r13d
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x1000078fe
mov qword [rax], r12
test r10, r10
je 0x100007928
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100007928
mov edi, 0xc000000d
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100008a70
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov r13, rcx
xor edi, edi
mov r12d, edi
mov rsi, rdi
mov dword [rsp + 0x88], edi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, 0xc0000023
je 0x100008ae5
cmp eax, edi
jl 0x100008ba5
mov ebx, 0xc000000d
mov dword [rsp + 0x80], ebx
jmp 0x100008ba5
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x88]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
cmp rax, rdi
jne 0x100008b1f
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x100008ba5
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x88]
mov r8, rsi
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtQueryKey]
mov ebx, eax
mov dword [rsp + 0x80], eax
cmp eax, edi
jl 0x100008ba5
mov rcx, qword gs:[0x30]
mov r8d, dword [rsi + 0xc]
add r8, 2
mov rcx, qword [rcx + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
cmp rax, rdi
jne 0x100008b86
mov ebx, 0xc000009a
mov dword [rsp + 0x80], ebx
jmp 0x100008ba5
mov r8d, dword [rsi + 0xc]
lea rdx, [rsi + 0x10]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsi + 0xc]
shr r11, 1
mov word [r14 + r11*2], di
mov qword [r15], r14
cmp rsi, rdi
je 0x100008bc6
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x100008bf6
int3
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x100008c10
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rsi, rcx
lea rdx, [0x10000fe40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
lea rdx, [0x10000fe00]
mov r8d, 0x2001f
mov rcx, rsi
call fcn.1000083ac
mov edi, eax
test eax, eax
js 0x100008c6c
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov edi, eax
cmp qword [rsp + 0x50], rsi
je 0x100008c86
cmp qword [rsp + 0x50], 0
je 0x100008c86
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x100008c9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14d, r9d
mov r13, r8
mov r15, rdx
mov r12, rcx
xor esi, esi
xor edi, edi
and qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xc0]
and qword [rax], rdi
mov rax, qword [rsp + 0xc8]
and dword [rax], edi
mov rdx, r15
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test r13, r13
je 0x100008d20
lea r9, [rsp + 0x40]
mov r8d, 0x20019
mov rdx, r13
mov rcx, r12
call fcn.1000083ac
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x100008d25
jmp 0x100008e3a
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x34], eax
cmp eax, 0xc0000023
jne 0x100008e3a
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x100008d8f
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x100008e3a
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
js 0x100008e3a
cmp dword [rdi + 4], r14d
je 0x100008dd5
mov ebx, 0xc0000024
mov dword [rsp + 0x34], ebx
jmp 0x100008e3a
add dword [rsp + 0x30], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx], rax
test rax, rax
jne 0x100008e13
mov ebx, 0xc000009a
mov dword [rsp + 0x34], ebx
jmp 0x100008e3a
mov r8d, dword [rsp + 0x30]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x30]
mov rax, qword [rsp + 0xc8]
mov dword [rax], r11d
xor ebx, ebx
mov dword [rsp + 0x34], ebx
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x100008e4f
test rcx, rcx
je 0x100008e4f
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x100008e70
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp ebx, 0xc000017d
jne 0x100008eb0
int3
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret