joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400293ac
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001ca74
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ca74
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400294fc
cmp rax, 0xffffffffffffffff
je 0x1400294fc
xor edi, edi
test rbp, rbp
jle 0x1400294a7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f3a0
mov rbx, rax
test rax, rax
jne 0x140029434
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002949d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a3a8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d750
cmp eax, 0xffffffff
je 0x14002947d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029444
mov edx, r15d
mov ecx, r14d
call fcn.14001a3a8
jmp 0x14002949d
cmp byte [rsi + 0x38], dil
je 0x140029494
cmp dword [rsi + 0x34], 5
jne 0x140029494
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002949d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b13c
jmp 0x140029510
jns 0x140029510
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ca74
cmp rax, 0xffffffffffffffff
jne 0x1400294c8
cmp byte [rsi + 0x30], dil
je 0x140029510
mov edi, dword [rsi + 0x2c]
jmp 0x140029510
mov ecx, r14d
call fcn.140018864
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029510
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029510
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029509
mov eax, dword [rsi + 0x2c]
jmp 0x14002950e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ca74
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400020ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400020f8
xor al, al
add rsp, 0x28
ret
Function at 0x1400058a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3e0]
sub rsp, 0x4e0
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov rsi, r8
mov rdi, rdx
mov qword [rbp - 0x70], rdx
xor r14d, r14d
mov dword [rsp + 0x64], r14d
mov qword [rdx], r14
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], r14
mov dword [rsp + 0x64], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.140027ea0
mov dword [rsp + 0x68], 0x104
mov dword [rsp + 0x60], r14d
lea rax, [rbp - 0x78]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x1c0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140005a87
mov ebx, r14d
nop dword [rax + rax]
mov dword [rsp + 0x6c], 0xff
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x6c]
lea r8, [rbp - 0x40]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140005a7b
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r14w
lea rax, [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400059f0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140006e00
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140005a33
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rbp - 0x68], r14w
add qword [rdi + 8], 0x20
jmp 0x140005a43
lea r8, [rbp - 0x68]
mov rcx, rdi
call fcn.140007180
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140005a7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ab1
call fcn.140025900
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140005990
mov rax, rdi
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.1400258e0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14002e1d4
int3
Function at 0x140005ac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x81e0]
mov eax, 0x82e0
call fcn.140026520
sub rsp, rax
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rbp + 0x81d0], rax
mov rsi, r8
mov rdi, rdx
mov qword [rbp - 0x78], rdx
xor r14d, r14d
mov dword [rsp + 0x64], r14d
mov qword [rdx], r14
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], r14
mov dword [rsp + 0x64], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.140027ea0
mov dword [rsp + 0x6c], 0x104
mov dword [rsp + 0x68], r14d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x6c]
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140005cba
mov ebx, r14d
nop dword [rax + rax]
mov dword [rsp + 0x70], 0x3fff
mov word [rbp + 0x1d0], r14w
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x1d0]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140005cae
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r14w
lea rax, [rbp + 0x1d0]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005c20
lea rdx, [rbp + 0x1d0]
lea rcx, [rbp - 0x68]
call fcn.140006e00
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140005c66
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rbp - 0x68], r14w
add qword [rdi + 8], 0x20
jmp 0x140005c76
lea r8, [rbp - 0x68]
mov rcx, rdi
call fcn.140007180
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140005cae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005ca9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ce4
call fcn.140025900
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x140005bb0
mov rax, rdi
mov rcx, qword [rbp + 0x81d0]
xor rcx, rsp
call fcn.1400258e0
lea r11, [rsp + 0x82e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.14002e1d4
int3
Function at 0x14000ff20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x400d0
call fcn.140026520
sub rsp, rax
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rsp + 0x400c0], rax
mov rbp, r9
mov rdi, r8
mov dword [rsp + 0x70], edx
mov rbx, qword [0x14006d5f0]
mov qword [rsp + 0x88], rbx
mov rcx, rbx
call fcn.140023ce4
test eax, eax
jne 0x140010133
xor ecx, ecx
call fcn.14002e9dc
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x90]
call fcn.14002e654
mov ecx, 0x8000
call fcn.14002ea1c
mov rsi, rax
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call fcn.140027ea0
mov edx, dword [rsp + 0xa0]
inc edx
mov r9d, dword [rsp + 0xa4]
add r9d, 0x76c
mov ecx, dword [rsp + 0x90]
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x58], 0x3a
mov ecx, dword [rsp + 0x94]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x48], 0x3a
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x9c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x3a
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 0x3a
lea r8, str._04d_c_02d_c_02d__02d_c_02d_c_02d
mov edx, 0x4000
mov rcx, rsi
call fcn.14000f580
xor edx, edx
mov r8d, 0x20000
lea rcx, [rsp + 0xc0]
call fcn.140027ea0
call fcn.140003510
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, 0x10000
lea rdx, [rsp + 0xc0]
mov rcx, qword [rax]
call fcn.14002de58
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x78]
call fcn.140010400
mov rdi, qword [rax]
add rdi, 0x18
cmp qword [rdi + 0x18], 8
jb 0x140010088
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
mov r9d, eax
lea r8, str.Thread_Id:_d_t_s_t_s_t_s_n
mov edx, 0x10000
lea rcx, [rsp + 0x200c0]
call fcn.14000f580
mov rcx, qword [0x14006d5f8]
test rcx, rcx
je 0x1400100ef
lea r8, [rsp + 0x200c0]
lea rdx, [0x14005a9b8]
call fcn.14000f530
mov rcx, qword [0x14006d5f8]
call fcn.14002e810
jmp 0x1400100fd
lea rcx, [rsp + 0x200c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call fcn.14002dfa0
nop
mov rcx, rbx
call fcn.140023d08
mov al, 1
mov rcx, qword [rsp + 0x400c0]
xor rcx, rsp
call fcn.1400258e0
mov rbx, qword [rsp + 0x400f0]
add rsp, 0x400d0
pop rdi
pop rsi
pop rbp
ret
mov ecx, eax
call fcn.1400239d8
int3
Function at 0x1400107b0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14006d610]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x14006d638]
js 0x1400107d4
cvtsi2ss xmm0, rcx
jmp 0x1400107e9
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14006d600]
call fcn.14004702c
movss xmm1, dword [0x14005e354]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14001081b
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14001081b
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14001084d
cmp rbx, 0x200
jae 0x14001084a
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14001084d
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400109c0
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140010b80
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14006d608]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14006d618]
lea rdx, [rdi + rdi]
call fcn.1400101e0
mov rcx, qword [0x14006d608]
lea r9, [rdi - 1]
mov qword [0x14006d630], r9
mov qword [0x14006d638], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140010b75
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r11d, byte [rcx + 0x10]
mov rdx, qword [rdx]
xor r11, rsi
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x12]
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x13]
imul r11, rdi
xor r11, rax
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14006d618]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140010ab2
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140010b36
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140010aef
mov r10, qword [rax]
cmp r10, rcx
je 0x140010ae9
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140010b36
mov r8, rax
cmp r10, rax
je 0x140010b12
nop word [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x140010b4a
cmp r10, rax
jne 0x140010b00
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
je 0x140010b70
mov r9, qword [0x14006d630]
jmp 0x140010a60
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140010b36
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140022f8c
int3
Function at 0x1400109c0
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14006d610]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x14006d638]
js 0x1400107d4
cvtsi2ss xmm0, rcx
jmp 0x1400107e9
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x14006d600]
call fcn.14004702c
movss xmm1, dword [0x14005e354]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14001081b
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14001081b
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14001084d
cmp rbx, 0x200
jae 0x14001084a
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14001084d
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x1400109c0
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140010b80
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x14006d608]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x14006d618]
lea rdx, [rdi + rdi]
call fcn.1400101e0
mov rcx, qword [0x14006d608]
lea r9, [rdi - 1]
mov qword [0x14006d630], r9
mov qword [0x14006d638], rdi
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140010b75
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r11d, byte [rcx + 0x10]
mov rdx, qword [rdx]
xor r11, rsi
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x12]
imul r11, rdi
xor r11, rax
movzx eax, byte [rcx + 0x13]
imul r11, rdi
xor r11, rax
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x14006d618]
mov r10, qword [r11]
cmp r10, rbx
jne 0x140010ab2
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140010b36
mov rax, qword [r11 + 8]
mov r9d, dword [rcx + 0x10]
cmp r9d, dword [rax + 0x10]
jne 0x140010aef
mov r10, qword [rax]
cmp r10, rcx
je 0x140010ae9
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140010b36
mov r8, rax
cmp r10, rax
je 0x140010b12
nop word [rax + rax]
mov rax, qword [rax + 8]
mov r8, rax
cmp r9d, dword [rax + 0x10]
je 0x140010b4a
cmp r10, rax
jne 0x140010b00
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
je 0x140010b70
mov r9, qword [0x14006d630]
jmp 0x140010a60
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x140010b36
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140022f8c
int3
Function at 0x140012fc0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140012fe2
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140012ff4
movzx eax, ax
or eax, 0x80070000
add rsp, 0x38
ret

Function at 0x140013000
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140013022
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140013034
movzx eax, ax
or eax, 0x80070000
add rsp, 0x38
ret

Function at 0x1400130c0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
add rdx, 0x10
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400130ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1400130ef
movzx eax, ax
or eax, 0x80070000
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400139a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
lea rax, [rsp + 0x38]
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rsi, r8
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013a65
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov word [rsp + 0x40], ax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x28], rax
mov rdx, rdi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013a5a
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140013a40
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140006e00
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400258e0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret

Function at 0x140013a90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
lea rax, [rsp + 0x38]
mov rdx, rcx
mov qword [rsp + 0x20], rax
mov rsi, r8
mov rcx, 0xffffffff80000001
mov r9d, 0x20019
xor r8d, r8d
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013b55
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x34]
mov word [rsp + 0x40], ax
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x28], rax
mov rdx, rdi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013b4a
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140013b30
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140006e00
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400258e0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x140016cc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x850
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rdi, rcx
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAMD_Catalyst_Install_Manager
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140016da5
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.140027ea0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.InstallDir
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140016d9a
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140016d80
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140006e00
mov bl, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400258e0
mov rbx, qword [rsp + 0x868]
add rsp, 0x850
pop rdi
ret
Function at 0x140020460
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400691d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov dword [rsp + 0x58], r9d
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r8d, r8d
test eax, eax
jne 0x1400204da
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x140020516
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov rdx, rsi
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140020514
xor r8d, r8d
jmp 0x1400204a5
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400258e0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret