joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1417a3f7c
Capabilities:
Encode data using base64

Disassembly:
shl al, 0xa2
inc edx
mov qword [rsp + rdi*4], r8
and r8b, cl
or qword [rsp + rdi*2 + 8], rax
bswap edx
ja 0x141812ec9
mov eax, 0xc43b51b9
movzx r8d, ax
lea r9, [r9 + r8*8 - 0x28dcc]
jmp 0x1417f9784
mov word [r11 + rdx - 0x4aeea104], di
mov qword [rsp + rax - 0x2c260370], rsi
ret 0x10
mov word [r10 + rsi - 0xa91990c], r8w
call fcn.1417cffbf
dec r8b
mov edi, dword [r8 + r9 - 0x51b8]
movsx ebp, r8b
xor edi, r10d
shr ax, 0x2f
add bpl, 0xd
ror edi, 1
movzx ecx, ax
movsx ebx, cx
xor edi, 0xc632591a
dec edi
add rax, r8
rol r8w, 0x44
not ax
bswap edi
inc r8d
bswap ebp
movsx edx, cx
push r10
sal bp, 0x41
xor dword [rsp + r8*8 - 0xdc30], edi
jmp 0x1417a5d12
jno 0x141841eae
add rsi, rbx
movzx edx, word [rsp + rbp - 0x28]
mov bx, word [r11 + rbp*2 - 0x5c]
sar rbp, 0x56
push rbp
mov cl, byte [r11 + rbp*2 + 2]
lea rax, [rdx + r8 - 0x15c8bc72]
call fcn.1417acb7f
mov r10d, 0xa91248b
mov r11d, 0x8fbe990d
mov ecx, r11d
movzx r8w, byte [rsi + r10*2 - 0x15224916]
dec r11
xchg r11w, r10w
lea rdi, [rcx + r10*2 + 0x5d120dbe]
mov cl, byte [r10 + rsi - 0xa91990a]
lea rsi, [r10 + rsi - 0xa91990a]
shr r8b, cl
movzx edx, r11w
xor r11w, 0xa3af
jle 0x1417f8bc1
xor cl, bpl
xor rbp, qword [rsp + rax - 0x2c260366]
and ebx, r8d
or dil, cl
dec r8
jg 0x1417ebcf5
jmp 0x141802a9f
lea edx, [rdx + r8*2 - 0x4e8560b0]
push rcx
bswap edx
mov ebp, dword [rsp + rdi + 0xc]
mov qword [rsp + r8*2 - 0x325211f4], r10
add r8b, r8b
xor dword [rsp + rdi*2 + 0xc], edi
xor dword [rsp + r8 - 0x192908f4], edx
ror byte [rsp + rdi*2 + 0xd], 0x84
sar cx, cl
shr ecx, 0x3a
mov r10, qword [rsp + r8 - 0x192908f4]
setnp bpl
xor rdi, rax
movsxd rdx, edx
inc bp
adc rsi, rdx
lea rdx, [rax*2 - 0xd5d65db]
sal bp, 0x85
movzx di, byte [r11 + r8 - 0x19290904]
dec dl
lea rbx, [rcx*2 - 0x26dd6145]
xor cl, byte [r8 + r11 - 0x19290902]
ror r8, 0xf9
lea rbx, [rax + r8*4 - 0x7aee92c5]
lea r11, [r11 + rbp*2 - 0x3e]
jb 0x14184e1c6
mov qword [rsp + rbp - 0x10], 0xffffffff8e07b112
not dil
xadd r8d, ebx
cmovle bp, word [rsp + rbp*2 - 0x2c]
jne 0x141821560
not eax
inc eax
sar bx, cl
xor eax, 0x629a11bc
rol bp, 0x81
sub rdi, rdx
bswap rbp
push r10
call fcn.1417d3e6b
lea rax, [rbp + rbp*8 - 0x7ceaf94d]
movzx r9w, byte ss:[rsi + rbp*2 - 0x7117b326]
lea r11, [r11 + rbp*2 - 0x7117b320]
mov word [r11 + rbp - 0x388bd993], r9w
movsx r9d, ax
not ebp
mov r8d, dword [rdi]
call fcn.141793e00
mov r8d, dword [r10]
mov edx, 0x4786d08c
lea r10, [rdx + r10 - 0x4786d088]
lea rax, [rdx*2 - 0x235f57ce]
xor r8d, r9d
not dl
lea r8d, [rdx + r8 + 0x631ffd16]
xor r8d, 0x939a5d2c
not r8d
movzx edi, dl
neg r8d
jmp 0x14182ceee

Function at 0x1417f006a
Capabilities:
Parse pe header

Disassembly:
mov rsp, qword [rbp + riz - 0x10]
mov r9d, 0x2d37bb84
mov rbp, qword [rbp + r9*2 - 0x5a6f7710]
movsx ebx, r9b
movsx edi, r9b
xadd r9b, bl
mov qword [rbp + r9 - 0x2d37bb08], rax
jl 0x1417c23e4

Function at 0x1417ff058
Capabilities:
Parse pe header

Disassembly:
lea r8, [rax - 0x4569cbd7]
xor ecx, 0xc632591a
inc r8
dec ecx
bswap ecx
mov qword [rsp], r10
lea rbx, [rdi*2 - 0x167943d9]
xor dword [rsp], ecx
push rdi
mov r10, qword [rsp + 8]
inc word [rsp + 6]
jns 0x14183531d
Function at 0x1418125a8
Capabilities:
Authenticate hmac

Disassembly:
mov ax, word [rsi + rdi*8 - 0x6e2159b8]
xadd r10d, r11d
mov qword [rsp + r8 - 0x29700040], 0xffffffffb72bb386
dec edi
mov dx, word [rsi + rdi*2 - 0x1b88566a]
lea rsi, [rsi + rdi*4 - 0x3710acd6]
not ax
dec dword [rsp + rdi*2 - 0x1b885666]
not dx
movzx ecx, r8w
jne 0x141868b0c
mov r9d, 0x7e9b2382
or ax, dx
call fcn.1417f3063
Function at 0x141835302
Capabilities:
Parse pe header

Disassembly:
shl ebx, 0xa7
mov eax, dword [r11]
cpuid
movzx ebp, di
lea r11, [rbp + r11 - 0xbe79]
pop r8
sar ebp, 0xef
mov dword [r11 + rbp*2 + 0xa], eax
call fcn.14180e426
mov ebx, 0x86bc52a4
mov edx, dword [r10]
movsx eax, bl
or rax, rax
adc r10, 4
ror rax, 0xb1
lea rcx, [rbx + rbx*2 - 0x20439151]
xor edx, r9d
not edx
movzx r8d, cx
sal r8b, 0xa5
jbe 0x14182d953
rol edx, 3
rol bl, 0x85
lea edx, [r8 + rdx - 0x4398a63]
inc rcx
movsx edi, bx
xor edx, 0x51866f8a
not ecx
push r9
xor dword [rsp + r8 - 0x6660], edx
call fcn.14184faef
mov qword [rsp + rcx - 0x292da9f3], rbx
not rax
xadd eax, ecx
sal r9w, 0x4d
xor dword [rsp + r9 - 0x173effe0], r8d
mov rbx, qword [rsp + rcx - 0x190e0e18]
mov qword [rsp + rcx - 0x190e0e38], rbp
movsxd r8, r8d
mov rdx, qword [rsp + 0x18]
add rdx, 0xfffffffffff71651
jmp rdx
add word [rsp + rax*2 - 0x3e78b3fd], r8w
mov r11d, dword [r11 + rax*4 - 0x7cf16814]
pop rcx
pop rcx
pop r9
jae fcn.1417bf550
movsxd rcx, ecx
mov qword [rsp + 8], rdi
lea rdx, [rax*8 - 0x73ecfae7]
or eax, r8d
adc rsi, rcx
jmp 0x1417995c2
Function at 0x141866b2e
Capabilities:
Parse pe header

Disassembly:
not eax
sal rsi, 0xbd
push rbx
neg dx
xor dword [rsp + r8 - 0x1ddf5d], eax
xadd rbp, rsi
pop rbx
push r8
movsxd rax, eax
adc r10, rax
movzx r8d, byte [rdi + r8*4 - 0x777d74]
lea rdi, [rdi + rdx*2 + 0x536ba191]
shl bpl, 0x25
pop rdx
xor r8b, bl
shl edx, 0x9b
not r8b
mov ecx, 0x67950c80
adc r8b, bpl
not bp
mov ebx, 0xd1216d39
movzx ebx, byte [r10]
jmp 0x14186602a
jmp 0x14182420e
lea r8, [r8 + 0x379e8a16]
xadd rsi, r8
xor eax, 0xd02420ad
inc r9
jne 0x14178b6fe
mov qword [rsp], 0xffffffffd0988fb1
dec r11
lea rsp, [rsp + 0x10]
jne 0x1417b2a41
mov r10d, 0xc3955f08
pop rbx
mov r10d, 0xf1b9e38e
not ecx
mov dword [rsi], ecx
sub rbp, 4
lea rax, [r10 + r10*8 + 0x41a18a2]
movsx ecx, r10b
jmp 0x141819fe2
xor dword [rsp + rdx + 4], ebx
shl ecx, 0xed
push rcx
sbb ebp, r8d
mov r9, qword [rsp + rdx*4 - 0x30]
ror dword [rsp + r8 - 0x5fd346e9], 0xd5
ror bp, 0xa7
pop rax
movsxd rbx, ebx
sal dword [rsp + r8 - 0x5fd346e0], 0x50
movzx edi, bp
add r11, rbx
lea rbx, [rax + rdi*4 - 0x4d5916fe]
pop r8
pop rbp
pop rdi
pop rbx
jmp fcn.1417df0dc
and ebx, 0xff
push 0xffffffffc6bfcc9d
mov ebx, dword [rdx + rbx*4]
sar qword [rsp], 3
shr ecx, 8
xor ecx, ebx
rol qword [rsp], 0xa3
inc r10
shr byte [rsp + 4], 0xc7
ror word [rsp + 1], 0x6a
xor ecx, 0xcb22028a
call 0x1417fb81f
mov ecx, dword [r10]
call fcn.141806786
jmp 0x14183524e
jmp 0x1417e32ba
mov edi, 0x17bf2505
mov edx, edi
mov edi, dword [r10 + rdx - 0x17bf2505]
lea r10, [r10 + rdx - 0x17bf2501]
xor edi, r9d
movsx ebx, dl
mov ebp, 0xb21531ac
neg edi
neg bpl
mov ecx, ebx
ror edi, 1
ror rdx, 0x19
xadd dx, bx
dec edi
movsx eax, bx
rol edi, 3
dec dx
call fcn.141816178
mov rbx, qword [r11]
mov ebp, 0x41886c0d
mov edx, ebp
xor dx, 0x31bf
mov r8w, word [r11 + rdx - 0x41885daa]
movzx edi, dx
sub edx, edi
jns 0x141860cd5
mov r8, qword [rsi + r8*2 - 0x1ff1e]
mov dx, word ss:[r8 + rdi - 0x1f9200]
call fcn.141821817
mov r8d, 0x2e1933a4
xor ebx, ecx
jmp 0x141830118
bswap ebx
mov qword [rsp + rdx - 0x14], rdx
not r8
inc word [rsp + rdx + 5]
mov qword [rsp + rdx*8 - 0x88], r9
inc r8d
jnp 0x1417ff735
mov ebp, 0xdc3adf0d
push rbp
mov edi, dword [rsp + 3]
mov rbx, qword [rsi + rdi*2 - 0x1b8]
mov r8d, 0xeaf6995
rol ebp, 0xf6
push rbp
movzx cx, byte ss:[rbx + rdi - 0xdc]
call fcn.14181c213
ror eax, 2
jmp 0x1417fb806

Function at 0x14186775f
Capabilities:
Parse pe header

Disassembly:
lea rbp, [rbx + rbx - 0x70da5363]
mov r9, qword [rsp + 8]
lea rsp, [rsp + 0x10]
Function at 0xe22058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e221df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xe22089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe2206f
add dl, dl
jne 0xe22096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe220f6
xor eax, eax
add dl, dl
jne 0xe220a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe221ad
add dl, dl
jne 0xe220b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe220c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe220d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe220dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xe220ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xe2207e
mov eax, 1
add dl, dl
jne 0xe22106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe22113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe220fb
sub eax, ebx
mov ebx, 1
jne 0xe2214c
mov ecx, 1
add dl, dl
jne 0xe2212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe2213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe22123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe2207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe22168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe22175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe2215d
cmp eax, 0x7d00
jae 0xe2219b
cmp eax, 0x500
jb 0xe22196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe2207e
cmp eax, 0x7f
ja 0xe2219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe2207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xe221d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xe2207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003c4c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xfe0
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rsp + 0xfd0], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140003d27
test al, 0x10
jne 0x140003d27
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0xfa0
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rdx, [rsp + 0x30]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
je 0x140003d27
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
nop dword [rax + rax]
mov r8, rax
lea rcx, [rsp + 0x30]
call fcn.140004360
test eax, eax
js 0x140003d27
lea r8, str..png
lea rcx, [rsp + 0x30]
call fcn.140004360
test eax, eax
js 0x140003d27
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140012b34
test al, al
je 0x140003d27
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x140003d27
lea rdx, [rsp + 0x30]
test al, 0x10
je 0x140003d2e
lea rdx, [0x14001def0]
mov rcx, rbx
call fcn.140004164
mov rax, rbx
mov rcx, qword [rsp + 0xfd0]
xor rcx, rsp
call fcn.1400199f0
mov rbx, qword [rsp + 0x1000]
add rsp, 0xfe0
pop rdi
ret

Function at 0x1400049e4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
and qword [rcx], 0
mov rsi, rcx
lea rcx, [rsp + 0x40]
mov edx, 0x104
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x140004a6a
lea rdx, [0x14001e3a8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
nop dword [rax + rax]
test eax, eax
je 0x140004a6a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140004aab
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, 0x20
lea r9, str.Failed_to_load_module_resources___d_
lea rdx, str.AppHelpResources::LoadLibraryPcaModule
mov dword [rsp + 0x20], eax
mov ebx, eax
lea ecx, [r8 - 0x1f]
call fcn.14000ac0c
movzx ebp, bx
or ebp, 0x80070000
test ebx, ebx
cmovle ebp, ebx
test ebp, ebp
js 0x140004adb
mov qword [rsi], rdi
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400199f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov r8d, 0x21
mov dword [rsp + 0x20], ebp
lea r9, str.Failed:__0x_x_
lea rdx, str.AppHelpResources::LoadLibraryPcaModule
lea ecx, [r8 - 0x20]
call fcn.14000ac0c
lea rdx, [0x140024410]
mov dword [rsp + 0x30], ebp
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
Function at 0x140007794
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov edx, 8
mov rsi, rcx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x58]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400077da
mov edi, 0xc0000017
jmp 0x1400078ef
mov rcx, rbx
call fcn.14000ace0
mov r8, qword [rbx + 0x28]
test r8, r8
je 0x1400077fc
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x30]
mov qword [rbx], rcx
mov qword [rbx + 0x20], 0x10
mov qword [rbx + 8], 8
lea rdi, [rbx + 0x30]
mov rcx, rdi
call fcn.14000ace0
mov r8, qword [rdi + 0x28]
test r8, r8
je 0x140007850
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x30]
and qword [rdi + 0x10], 0
and qword [rdi + 0x18], 0
and qword [rdi + 0x28], 0
mov qword [rdi], rcx
mov qword [rdi + 0x20], 0x10
mov qword [rdi + 8], 8
mov rcx, rbx
call fcn.14000af28
mov edi, eax
test eax, eax
js 0x1400078b0
mov rcx, rbx
call fcn.14000b204
mov edi, eax
test eax, eax
js 0x1400078b0
mov qword [rsi], rbx
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x1400078e4
mov rcx, rbx
call fcn.14000ace0
lea rcx, [rbx + 0x30]
call fcn.14000ace0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test edi, edi
js 0x1400078ef
mov dword [rsi + 8], 1
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400085f4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov r13, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
lea rcx, [rsi + 0x58]
mov dword [rsp + 0x78], eax
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
nop dword [rax + rax]
mov r9, qword [rsi + 0xc0]
xor r15d, r15d
test r9, r9
je 0x140008746
xor eax, eax
xor ebx, ebx
cmp rax, r9
jae 0x140008672
mul qword [rsi + 0xb8]
test rdx, rdx
jne 0x140008670
mov rcx, qword [rsi + 0xd8]
lea rbx, [rcx + rax]
cmp rbx, rcx
jae 0x140008672
xor ebx, ebx
cmp dword [rbx], edi
jne 0x140008730
cmp qword [rbx + 0x20], 0
jne 0x14000872d
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdx + r13], 0
jne 0x140008689
test r14, r14
je 0x1400086ac
or rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax], 0
jne 0x14000869c
movzx r8d, ax
jmp 0x1400086b2
mov r8d, 0x10
mov rax, qword gs:[0x60]
lea rbp, [r8 + 2]
mov rcx, qword [rax + 0x30]
movzx eax, dx
mov edx, 8
add rbp, rax
mov r8, rbp
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140008746
mov r9, r13
mov rdx, rbp
mov rcx, rax
test r14, r14
je 0x140008701
mov qword [rsp + 0x20], r14
lea r8, [0x14001ebc4]
jmp 0x14000870d
and dword [rsp + 0x20], 0
lea r8, str._s_d
call fcn.140007224
test eax, eax
js 0x140008746
lea rcx, [rbx + 0x18]
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov edi, dword [rsp + 0x78]
inc dword [rbx + 0x28]
mov r9, qword [rsi + 0xc0]
inc r15d
mov eax, r15d
cmp rax, r9
jb 0x14000864d
lea rcx, [rsi + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
Function at 0x140008778
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
test rcx, rcx
je 0x14000896c
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, 0x80
mov rdi, r8
mov dword [rax - 0x68], 2
mov r14, rdx
mov rbp, rcx
xor ebx, ebx
lea rcx, [rax - 0x60]
xor edx, edx
mov r15, r9
lea r8d, [rbx + 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword gs:[0x60]
lea edx, [rbx + 8]
mov r8d, 0x100
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140008950
mov r9, r14
mov dword [rsp + 0x20], edi
lea r8, str.ERROR_s_d
mov edx, 0x100
mov rcx, rax
call fcn.140007224
test eax, eax
js 0x14000890f
mov rax, qword gs:[0x60]
lea edx, [rbx + 8]
mov r8d, 0x400
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000890f
mov r9, qword [rsp + 0xc0]
mov edi, 0x3ff
mov edx, edi
mov r8, r15
mov rcx, rax
call fcn.14001aaec
test eax, eax
js 0x140008908
movsxd rcx, eax
cmp rcx, rdi
ja 0x140008908
jne 0x140008876
mov byte [rbx + 0x3ff], 0
mov rdx, rsi
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov edx, 0x5b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strchr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400088eb
mov edx, 0x5d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strchr]
nop dword [rax + rax]
test rax, rax
je 0x1400088eb
lea rdx, [rdi + 1]
mov byte [rax], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.1400085f4
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140008378
jmp 0x14000890f
mov byte [rbx + 0x3ff], 0
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rbx, rbx
je 0x140008950
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x80]
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 0x140008bcc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9d, ecx
mov r10, rdx
not r9d
test r8d, r8d
je 0x140008c07
mov r11d, r8d
movzx eax, byte [r10]
mov edx, r9d
xor rdx, rax
inc r10
mov eax, r9d
movzx ecx, dl
shr eax, 8
lea rdx, [0x14001f040]
mov r9d, dword [rdx + rcx*4]
xor r9d, eax
sub r11, 1
jne 0x140008bdd
not r9d
mov eax, r9d
ret
Function at 0x140008d7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400277a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
and dword [rcx], 0
lea r9, [r11 - 0x30]
and dword [rsp + 0x30], 0
mov rdi, rcx
lea rcx, [r11 - 0x38]
mov r10, r8
mov rax, rdx
mov qword [r11 - 0x40], rcx
mov rcx, rax
mov dword [rsp + 0x20], 0x14
mov r8d, 2
mov rdx, r10
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140008e05
cmp eax, 0xc0000034
je 0x140008e40
lea r9, str.Failed_to_query_key_value___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x3a1
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.14000ac0c
jmp 0x140008e40
cmp dword [rsp + 0x3c], 4
jne 0x140008e1d
cmp dword [rsp + 0x40], 4
jne 0x140008e1d
mov eax, dword [rsp + 0x44]
xor ebx, ebx
mov dword [rdi], eax
jmp 0x140008e40
lea r9, str.Invalid_value_type
mov r8d, 0x3a8
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.14000ac0c
mov ebx, 0xc0000024
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400199f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x140008ee8
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebp, ebp
mov rsi, rdx
mov qword [rcx], rbp
mov r14, rcx
xorps xmm0, xmm0
mov dword [rax + 8], ebp
lea rcx, [rax - 0x28]
mov rdx, r8
movups xmmword [rax - 0x28], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 2]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x80000005
je 0x140008f8c
cmp eax, 0xc0000023
je 0x140008f8c
cmp eax, 0xc0000034
je 0x1400090b5
lea r9, str.Failed_to_query_key_value___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x494
lea rdx, str.AslRegistryGetString
lea ecx, [rbp + 1]
call fcn.14000ac0c
jmp 0x1400090b5
mov ecx, dword [rsp + 0x60]
mov edx, 8
add ecx, 2
mov dword [rsp + 0x60], ecx
mov rax, qword gs:[0x60]
mov r8d, ecx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140008fe6
lea r9, str.Out_of_memory
mov r8d, 0x4a2
lea rdx, str.AslRegistryGetString
mov ebx, 0xc0000017
lea ecx, [rax + 1]
call fcn.14000ac0c
jmp 0x1400090b5
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x60]
mov r8d, 2
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000902a
lea r9, str.Failed_to_query_key_value___x_
mov r8d, 0x4ae
jmp 0x140009082
mov eax, dword [rdi + 4]
dec eax
cmp eax, 1
jbe 0x140009059
lea r9, str.Invalid_value_type
mov r8d, 0x4b6
lea rdx, str.AslRegistryGetString
mov ecx, 1
call fcn.14000ac0c
mov ebx, 0xc0000024
jmp 0x140009097
mov eax, dword [rdi + 8]
lea rdx, [rdi + 0xc]
shr rax, 1
mov rcx, r14
mov word [rdx + rax*2], bp
call fcn.14000bd94
mov ebx, eax
test eax, eax
jns 0x140009097
lea r9, str.Out_of_memory___x_
mov r8d, 0x4c0
lea rdx, str.AslRegistryGetString
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.14000ac0c
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140009340
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
lea rdx, str.RegistryMachine
lea rcx, [rax - 0x18]
movups xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
xor edi, edi
mov word [rbx], di
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140009381
mov ebp, 1
add ax, bp
add ax, ax
add ax, word [rsp + 0x30]
movzx r8d, ax
lea edx, [rbp + 7]
mov word [rbx + 2], r8w
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400093f2
movzx eax, word [rbx + 2]
lea r9, str.Failed_to_allocate__d_bytes_for_user_key_buffer
mov r8d, 0x58c
mov dword [rsp + 0x20], eax
lea rdx, str.AslRegistryBuildMachinePath
mov ecx, ebp
mov edi, 0xc0000017
call fcn.14000ac0c
jmp 0x140009439
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
test rsi, rsi
je 0x140009427
cmp word [rsi], 0x5c
je 0x140009427
lea rdx, [0x14001ce94]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret