joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d2d0
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rbx
mov rbx, rcx
mov qword [rbp + 0x28], rsi
mov edi, edx
test edx, edx
jle 0x14000d3ac
mov byte [rcx], 0
movabs rax, 0x706d65545c3a43
xor ecx, ecx
mov qword [rbp + 0x30], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r8d, eax
add r8, r8
mov r14d, eax
lea rax, [r8 + 0xf]
cmp rax, r8
ja 0x14000d32a
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400112c0
sub rsp, rax
mov ecx, r14d
lea rsi, [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [r14 - 1]
cmp eax, edx
jne 0x14000d35d
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
call fcn.14000d5e0
cmp byte [rbx], 0
jne 0x14000d3a2
lea eax, [rdi - 1]
xor edx, edx
movsxd r9, eax
test eax, eax
jle 0x14000d39b
lea r8, [rbp + 0x30]
mov rcx, rbx
sub r8, rbx
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
test al, al
je 0x14000d39b
mov byte [rcx], al
inc edx
inc rcx
mov rax, rcx
sub rax, rbx
cmp rax, r9
jl 0x14000d380
movsxd rax, edx
mov byte [rax + rbx], 0
mov edx, edi
mov rcx, rbx
call fcn.14000da00
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rsp, rbp
pop r14
pop rdi
pop rbp
ret

Function at 0x14000eb70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov eax, r9d
mov r10, r8
mov rdi, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
mov r8d, eax
mov rdx, r10
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
mov dword [r8], ecx
test eax, eax
jne 0x14000ec5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14000db20
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000ebef
mov rdx, qword [rcx + 0x10]
jmp 0x14000ebf2
mov rdx, rsi
mov qword [rsp + 0x20], rdx
lea r9, [0x140019904]
mov r8d, ebx
lea rdx, str.PFileStream::Read
mov rcx, rdi
call fcn.14000d7f0
mov dword [rsp + 0x30], 1
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14000ec69
or eax, 0xffffffff
lock xadd dword [rbx + 0x18], eax
cmp eax, 1
jne 0x14000ec46
mov rcx, qword [rbx + 0x10]
call qword [rbx + 8]
mov qword [rbx + 0x10], rsi
mov eax, dword [rbx + 0x18]
mov dword [rbx + 0x18], esi
mov rcx, rbx
call qword [rbx + 8]
mov qword [rsp + 0x70], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov qword [rdi], rsi
mov dword [rsp + 0x30], 1
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14000f180
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x28]
lea rdx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x14000f1af
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14000f1af
or rax, 0xffffffffffffffff
add rsp, 0x28
ret
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x14000f1c0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rdi, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14000f28c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.14000db20
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000f21d
mov rdx, qword [rcx + 0x10]
jmp 0x14000f220
mov rdx, rsi
mov qword [rsp + 0x20], rdx
lea r9, [0x140019980]
mov r8d, ebx
lea rdx, str.PFileStream::Truncate
mov rcx, rdi
call fcn.14000d7f0
mov dword [rsp + 0x30], 1
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000f297
or eax, 0xffffffff
lock xadd dword [rbx + 0x18], eax
cmp eax, 1
jne 0x14000f274
mov rcx, qword [rbx + 0x10]
call qword [rbx + 8]
mov qword [rbx + 0x10], rsi
mov eax, dword [rbx + 0x18]
mov dword [rbx + 0x18], esi
mov rcx, rbx
call qword [rbx + 8]
mov qword [rsp + 0x50], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov qword [rdi], rsi
mov dword [rsp + 0x30], 1
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14000f300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov eax, r9d
mov r10, r8
mov rdi, rdx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
mov r8d, eax
mov rdx, r10
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x50]
mov dword [r8], ecx
test eax, eax
jne 0x14000f3ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14000db20
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000f37f
mov rdx, qword [rcx + 0x10]
jmp 0x14000f382
mov rdx, rsi
mov qword [rsp + 0x20], rdx
lea r9, [0x1400198ec]
mov r8d, ebx
lea rdx, str.PFileStream::Write
mov rcx, rdi
call fcn.14000d7f0
mov dword [rsp + 0x30], 1
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14000f3f9
or eax, 0xffffffff
lock xadd dword [rbx + 0x18], eax
cmp eax, 1
jne 0x14000f3d6
mov rcx, qword [rbx + 0x10]
call qword [rbx + 8]
mov qword [rbx + 0x10], rsi
mov eax, dword [rbx + 0x18]
mov dword [rbx + 0x18], esi
mov rcx, rbx
call qword [rbx + 8]
mov qword [rsp + 0x70], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov qword [rdi], rsi
mov dword [rsp + 0x30], 1
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400019a0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1400100a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov rsi, qword [r8]
test rsi, rsi
jne 0x140001a06
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], rdi
mov byte [rcx], dil
xor r8d, r8d
lea rdx, [0x14000d9a0]
call fcn.140002550
jmp 0x140001bca
mov r12, rdi
mov rax, rsi
and eax, 3
jne 0x140001a1d
cmp byte [rsi + rdx - 1], 0x3d
je 0x140001a1d
mov r13, rdi
jmp 0x140001a30
mov r13d, 1
cmp rax, 2
ja 0x140001a35
cmp byte [rsi + rdx - 2], 0x3d
jne 0x140001a35
mov r14, rdi
jmp 0x140001a38
mov r14, r13
sub rsi, r13
and rsi, 0xfffffffffffffffc
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x30], dil
mov rdx, rsi
shr rdx, 2
lea rax, [r14 + rdx*2]
add rdx, rax
add rdx, r13
lea rcx, [rsp + 0x30]
call fcn.140001fa0
nop
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
lea r10, [0x14000d5a0]
test rsi, rsi
je 0x140001af1
lea r9, [rbp + 1]
lea rdx, [rsi - 1]
shr rdx, 2
inc rdx
nop word [rax + rax]
movzx eax, byte [r9 - 1]
mov ecx, dword [r10 + rax*4]
shl ecx, 6
movzx eax, byte [r9]
or ecx, dword [r10 + rax*4]
shl ecx, 6
movzx eax, byte [r9 + 1]
or ecx, dword [r10 + rax*4]
shl ecx, 6
movzx eax, byte [r9 + 2]
or ecx, dword [r10 + rax*4]
mov eax, ecx
sar eax, 0x10
mov byte [r8 + r12], al
mov eax, ecx
sar eax, 8
mov byte [r8 + r12 + 1], al
mov byte [r8 + r12 + 2], cl
add r12, 3
add r9, 4
dec rdx
jne 0x140001aa0
test r13, r13
je 0x140001b31
movzx eax, byte [rsi + rbp]
mov edx, dword [r10 + rax*4]
shl edx, 6
movzx eax, byte [rsi + rbp + 1]
or edx, dword [r10 + rax*4]
shl edx, 0xc
mov eax, edx
sar eax, 0x10
mov byte [r8 + r12], al
test r14, r14
je 0x140001b31
movzx eax, byte [rsi + rbp + 2]
mov ecx, dword [r10 + rax*4]
shl ecx, 6
or edx, ecx
sar edx, 8
mov byte [r8 + r12 + 1], dl
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov byte [rbx], 0
lea rax, [rsp + 0x30]
cmp rbx, rax
je 0x140001bb5
cmp qword [rbx + 0x18], 0x10
jb 0x140001b59
mov rcx, qword [rbx]
call fcn.140003b4c
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov byte [rbx], 0
mov rcx, qword [rsp + 0x48]
cmp rcx, 0x10
jae 0x140001b8f
mov r8, qword [rsp + 0x40]
inc r8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140003640
mov rcx, qword [rsp + 0x48]
jmp 0x140001b9c
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rcx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
jmp 0x140001bba
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x10
jb 0x140001bca
mov rcx, qword [rsp + 0x30]
call fcn.140003b4c
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003470
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140003f3f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400100a8]
jne 0x14000348a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003486
repz ret
ror rcx, 0x10
jmp 0x140003e98
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400af3c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400af4b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003f1d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400af3c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140003f3f
mov rax, qword [rsp + 0x88]
mov qword [0x1400af4b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400af458], rax
mov rax, qword [0x1400af4b8]
mov qword [0x1400af330], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400af440], rax
mov dword [0x1400af320], 0xc0000409
mov dword [0x1400af324], 1
mov rax, qword [0x1400100a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400100b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400af3b8], eax
mov ecx, 1
call fcn.140005c28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000b390]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400af3b8], 0
jne 0x140003fc6
mov ecx, 1
call fcn.140005c28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140004720
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004590
Function at 0x1400073c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400100a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140004980
xor ebx, ebx
cmp qword [0x1400b0470], rbx
mov rdi, rax
jne 0x1400074d3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400075aa
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400075aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400b0470], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400b0478], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400b0480], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400b0490], rax
test rax, rax
je 0x1400074ca
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400b0488], rax
jmp 0x1400074da
mov rax, qword [0x1400b0488]
jmp 0x1400074e1
mov rax, qword [0x1400b0488]
mov r11, qword [0x1400b0490]
cmp rax, rdi
je 0x140007548
cmp r11, rdi
je 0x140007548
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400b0490]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140007548
test rax, rax
je 0x140007548
call rsi
test rax, rax
je 0x140007542
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140007542
test byte [rsp + 0x40], 1
jne 0x140007548
bts ebp, 0x15
jmp 0x140007588
mov rcx, qword [0x1400b0478]
cmp rcx, rdi
je 0x140007588
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007588
call rax
mov rbx, rax
test rax, rax
je 0x140007588
mov rcx, qword [0x1400b0480]
cmp rcx, rdi
je 0x140007588
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140007588
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400b0470]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400075aa
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400075ac
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003470
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001df4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001e3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001e3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001e3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001e3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001e40
xor al, al
add rsp, 0x28
ret
Function at 0x1400030c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x468
mov rax, qword [0x140116948]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rcx, qword [rsp + 0x470]
call fcn.1400021e0
mov rcx, qword [rsp + 0x470]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x14000315c
mov r9d, 0xff
lea r8, [rsp + 0x240]
mov edx, 0x7d1
mov rcx, qword [0x140117c10]
call qword [sym.imp.USER32.dll_LoadStringA]
xor r9d, r9d
lea r8, str.GUIDGen
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x470]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1400031ff
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x470]
call fcn.140002ce0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [rsp + 0x20], eax
movsxd rdx, dword [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x230], rax
cmp qword [rsp + 0x230], 0
je 0x1400031f7
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x340], rax
movsxd r8, dword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x340]
call fcn.14004bdc0
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, qword [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rsp + 0x230]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14004b2c0
add rsp, 0x468
ret
Function at 0x140009e10
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x140009e1e
xor eax, eax
test eax, eax
jne 0x140009e1e
movzx eax, byte [0x140117b20]
test eax, eax
jne 0x140009e6f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140009e68
lea rdx, str.RegDeleteKeyExA
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140117b18], rax
mov byte [0x140117b20], 1
cmp qword [0x140117b18], 0
je 0x140009e9a
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [0x140117b18]
jmp 0x140009ead
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
add rsp, 0x38
ret
Function at 0x14000a0b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1c8
mov rax, qword [0x140116948]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x1d0]
mov r9d, dword [rax + 8]
or r9d, 0x2001f
mov r8, qword [rsp + 0x1d8]
mov rdx, qword [rsp + 0x1d0]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call fcn.140009fe0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14000a16c
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x170], eax
mov dword [rsp + 0x190], 0
cmp qword [rsp + 0x50], 0
je 0x14000a158
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x190], eax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x170]
jmp 0x14000a2b7
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x14000a228
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14000a0b0
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14000a21b
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x174], eax
mov dword [rsp + 0x194], 0
cmp qword [rsp + 0x50], 0
je 0x14000a207
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x194], eax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x174]
jmp 0x14000a2b7
mov dword [rsp + 0x40], 0x100
jmp 0x14000a174
mov dword [rsp + 0x198], 0
cmp qword [rsp + 0x50], 0
je 0x14000a256
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x198], eax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov rdx, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1d0]
call fcn.140009e10
mov dword [rsp + 0x178], eax
mov dword [rsp + 0x1a8], 0
cmp qword [rsp + 0x50], 0
je 0x14000a2a8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x1a8], eax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x178]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14004b2c0
add rsp, 0x1c8
ret
Function at 0x14000acc0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x14000acd3
xor eax, eax
test eax, eax
jne 0x14000acd3
cmp qword [rsp + 0x70], 0
je 0x14000acf1
mov dword [rsp + 0x48], 1
jmp 0x14000acf9
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14000ad0f
mov eax, 0xd
jmp 0x14000ad8e
xor eax, eax
test eax, eax
jne 0x14000acdf
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
add rax, rcx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x14000ad27
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x58
ret

Function at 0x14000b000
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x14000b07d
xor eax, eax
jmp 0x14000b09a
cmp dword [rsp + 0x60], 0
jbe 0x14000b08e
mov dword [rsp + 0x64], 1
jmp 0x14000b096
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
add rsp, 0x78
ret
Function at 0x14004a814
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140117bf8]
test rcx, rcx
jne 0x14004a763
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x14004a75c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14004a78e
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x14004a758
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x140117bf8], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x14004a801
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14004a7b1
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x140117bf8]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14004a7de
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x14004a801
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140117bf8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x14004a7e5
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x14004a6e8