joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100008ec8
Capabilities:
Set 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, 0x50
mov r15d, r9d
mov r13, r8
mov r14, rdx
mov r12, rcx
xor esi, esi
mov rdx, r14
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
test r13, r13
je 0x100008f3f
lea r9, [rsp + 0x38]
mov r8d, 0x2001f
mov rdx, r13
mov rcx, r12
call fcn.1000083ac
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x100008f38
mov rbx, qword [rsp + 0x38]
jmp 0x100008f42
mov rbx, qword [rsp + 0x38]
jmp 0x100008f74
mov rbx, r12
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov edi, eax
mov dword [rsp + 0x30], eax
cmp rbx, r12
je 0x100008f86
test rbx, rbx
je 0x100008f86
mov rcx, rbx
call fcn.100008070
cmp edi, 0xc000017d
jne 0x100008fc6
int3
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x10000953c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
and qword [rdx], 0
mov rdi, r8
mov rsi, rdx
xor edx, edx
mov ebx, ecx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov r11, qword gs:[0x30]
xor edx, edx
mov rcx, qword [r11 + 0x60]
lea r8d, [rdx + 0x6a]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
jne 0x100009599
mov eax, 0xc0000017
jmp 0x100009686
and qword [rsp + 0x20], 0
lea r8, [0x10000ff00]
mov r9d, ebx
mov edx, 0x35
mov rcx, rax
call sub.msvcrt.dll_swprintf_s
mov rdx, rsi
mov rcx, rbp
call fcn.1000096a4
mov ebx, eax
test eax, eax
jns 0x10000960b
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.10000996c
mov ebx, eax
test eax, eax
js 0x100009643
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call fcn.1000096a4
xor edx, edx
mov ebx, eax
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
test ebx, ebx
js 0x100009643
mov rax, qword [rsi]
and dword [rdi], 0
cmp dword [rax], 0
jne 0x100009625
mov eax, dword [rax + 8]
mov dword [rdi + 4], 1
mov dword [rdi + 8], eax
jmp 0x10000963f
cmp dword [rax], 1
jne 0x10000963a
movdqu xmm0, xmmword [rax + 8]
and dword [rdi + 4], 0
movdqu xmmword [rdi + 8], xmm0
jmp 0x10000963f
mov ebx, 0xc000000d
test ebx, ebx
jns 0x100009668
mov r8, qword [rsi]
test r8, r8
je 0x100009668
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
and qword [rsi], 0
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x10000a208
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov rdx, rcx
xor ebp, ebp
lea rcx, [rax - 0x58]
mov qword [rax + 0x20], rbp
mov qword [rax - 0x60], rbp
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea edx, [rbp + 1]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jl 0x10000a3e5
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov edi, ebp
mov dword [rsp + 0xa0], ebp
jmp 0x10000a2ed
cmp qword [rsp + 0x28], rbp
je 0x10000a2b4
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
mov eax, dword [rsp + 0xa0]
xor edx, edx
mov word [rsp + 0x22], ax
lea edi, [rax + 2]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x28], rax
cmp rax, rbp
je 0x10000a3f5
mov rcx, qword [rsp + 0xa8]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10000a28f
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, ebp
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
jl 0x10000a3c0
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x40]
mov edx, 1
shr rcx, 1
mov word [rax + rcx*2], bp
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0xa8]
mov word [rsp + 0x22], di
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, ebp
jge 0x10000a2ed
mov rax, qword [rsp + 0x28]
mov ebx, ebp
mov qword [rsi], rax
mov rcx, qword [rsp + 0xa8]
cmp rcx, rbp
je 0x10000a3bc
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa8], rbp
cmp ebx, ebp
jge 0x10000a3e3
cmp rax, rbp
je 0x10000a3e3
mov rax, qword gs:[0x30]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x10000a39c
Function at 0x10000a404
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov ebp, edx
xor edx, edx
mov r12, rcx
mov rsi, r8
lea r9, [rsp + 0x58]
lea ecx, [rdx + 0x62]
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10000a44c
test eax, eax
js 0x10000a4da
mov ebx, 0xc0000001
jmp 0x10000a4da
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x10000a479
mov ebx, 0xc000009a
jmp 0x10000a4b9
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
js 0x10000a4b9
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x10000a4aa
mov ebx, 0xc0000023
jmp 0x10000a4b9
mov rdx, qword [rdi + 8]
mov r8d, eax
mov rcx, r12
call sub.msvcrt.dll_memcpy
test rdi, rdi
je 0x10000a4da
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
test ebx, ebx
jns 0x10000a4f5
lea rcx, [fcn.10000a56c]
mov r9, rsi
mov r8d, ebp
mov rdx, r12
call fcn.10000a5a8
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x13]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x10000a54f
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.10000f6f0
add rsp, 0x40
pop rbx
ret
Function at 0x10000cd2c
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 qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
movzx eax, byte [rcx + 3]
xor edi, edi
mov r14, rdx
shl eax, 8
mov r13, r8
mov r8b, 0x7f
movsxd r9, eax
movzx eax, byte [rcx + 2]
mov rbx, rcx
or r9, rax
mov esi, edi
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
je 0x10000ce7a
cmp dl, 4
jne 0x10000cda2
cmp byte [r9 + 1], dl
jne 0x10000cda2
movzx ecx, byte [r9 + 3]
movzx eax, byte [r9 + 2]
shl ecx, 8
or ecx, eax
cmp ecx, 4
jb 0x10000cdfe
lea eax, [rcx - 4]
add esi, eax
movzx eax, byte [r9 + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [r9 + 2]
or rcx, rax
add r9, rcx
mov dl, byte [r9]
mov al, dl
and al, r8b
cmp al, r8b
jne 0x10000cd7e
cmp esi, edi
je 0x10000ce7a
mov rax, qword gs:[0x30]
add esi, 2
xor edx, edx
mov rcx, qword [rax + 0x60]
mov r8d, esi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
cmp rax, rdi
jne 0x10000ce05
mov eax, 0xc000009a
jmp 0x10000ce7f
mov eax, 0xc0000095
jmp 0x10000ce7f
mov r12, rax
movzx eax, byte [rbx + 3]
shl eax, 8
movsxd rdi, eax
movzx eax, byte [rbx + 2]
or rdi, rax
add rdi, rbx
jmp 0x10000ce60
cmp cl, 4
jne 0x10000ce4c
cmp byte [rdi + 1], cl
jne 0x10000ce4c
movzx ecx, byte [rdi + 3]
movzx eax, byte [rdi + 2]
lea rdx, [rdi + 4]
shl ecx, 8
or ecx, eax
sub ecx, 4
mov ebx, ecx
mov r8d, ecx
mov rcx, r12
call sub.msvcrt.dll_memcpy
add r12, rbx
movzx eax, byte [rdi + 3]
shl eax, 8
movsxd rcx, eax
movzx eax, byte [rdi + 2]
or rcx, rax
add rdi, rcx
mov cl, byte [rdi]
mov al, cl
and al, 0x7f
cmp al, 0x7f
jne 0x10000ce1e
xor eax, eax
mov qword [r14], rbp
mov dword [r13], esi
mov word [r12], ax
jmp 0x10000ce7f
mov eax, 0xc0000225
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x10000dc04
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbp, rcx
xor r12d, r12d
lea rdx, [0x1000102e0]
lea rcx, [rax - 0x58]
mov qword [rax + 0x18], r12
mov rdi, r12
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x20]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x90]
mov edx, 0x20001
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x48], 0x40
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jge 0x10000dc9d
cmp eax, 0xc0000017
je 0x10000dd81
cmp eax, 0xc000009a
je 0x10000dd81
mov ebx, 0xc0000452
jmp 0x10000dd81
mov rsi, qword [rsp + 0x90]
call fcn.10000df78
mov rbx, rax
cmp rax, r12
je 0x10000dcbd
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x10000dcc0
mov rbx, rsi
lea rcx, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x88], r12d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10000dd0d
cmp eax, r12d
jl 0x10000dd81
mov ebx, 0xc0000001
jmp 0x10000dd81
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rax + 0x60]
add r8, 2
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
cmp rax, r12
jne 0x10000dd41
mov ebx, 0xc000009a
jmp 0x10000dd81
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
movzx eax, word [rsp + 0x88]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov word [rsp + 0x22], ax
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
cmp eax, r12d
mov ebx, eax
jl 0x10000dd81
movzx eax, word [rsp + 0x20]
shr rax, 1
mov word [rdi + rax*2], r12w
mov qword [rbp], rdi
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x10000dd94
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, r12d
jge 0x10000ddba
cmp rdi, r12
je 0x10000ddba
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x10000e628
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
xor edi, edi
and qword [rax + 0x18], rdi
and qword [rbp], rdi
and dword [rsi], edi
lea rcx, [rax - 0x28]
mov rbx, r8
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
test rbx, rbx
je 0x10000e688
lea r9, [rsp + 0x70]
mov r8d, 0x20019
mov rdx, rbx
xor ecx, ecx
call fcn.10000e594
mov ebx, eax
test eax, eax
jns 0x10000e68d
jmp 0x10000e785
and qword [rsp + 0x70], rdi
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x10000e6cd
test eax, eax
js 0x10000e785
mov ebx, 0xc0000001
jmp 0x10000e785
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x10000e6fd
mov ebx, 0xc000009a
jmp 0x10000e785
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x10000e785
cmp dword [rdi + 4], 1
je 0x10000e73e
mov ebx, 0xc0000024
jmp 0x10000e785
add dword [rsp + 0x60], 0xfffffff4
mov rax, qword gs:[0x30]
mov r8d, dword [rsp + 0x60]
mov rcx, qword [rax + 0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbp], rax
test rax, rax
je 0x10000e6f3
mov r8d, dword [rsp + 0x60]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x60]
xor ebx, ebx
mov dword [rsi], r11d
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x10000e795
call qword [sym.imp.ntdll.dll_NtClose]
test rdi, rdi
je 0x10000e7b6
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_NtOpenEvent]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000f0e4
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
mov rbx, r9
mov rdi, r8
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10000f15f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x100012120]
lea rax, [0x100012120]
cmp rcx, rax
je 0x10000f1c7
test byte [rcx + 0x1c], 1
je 0x10000f1c7
mov edx, 0xd
jmp 0x10000f1b0
mov rcx, qword [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10000f1c5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x100012120]
lea rax, [0x100012120]
cmp rcx, rax
je 0x10000f1c7
test byte [rcx + 0x1c], 1
je 0x10000f1c7
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001630]
mov r9d, ebx
call fcn.100001cb4
jmp 0x10000f1c7
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10000f1d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140006ae0
Capabilities:
Print debug messages
Terminate process

Disassembly:
sub rsp, 0x28
cmp rcx, qword [section..data]
je 0x140006b59
mov dword [0x140008180], 0x10001f
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rdx, [0x140008150]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140006b1e
lea rcx, [0x1400165c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rsp + 0x28]
lea rdx, [0x140008150]
lea rcx, [0x140008010]
mov qword [0x140008020], rax
lea rax, [rsp + 0x28]
xor r8d, r8d
mov qword [0x140008030], rax
call qword [sym.imp.KERNEL32.dll_RaiseFailFastException]
mov ecx, 0x502
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x28
ret

Function at 0x140006b70
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x448
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rdx, rcx
lea r8, [r11 + 0x10]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wvsprintfA]
test eax, eax
jne 0x140006bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400165f0]
mov edx, eax
call fcn.140006b70
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140006ae0
add rsp, 0x448
ret
mov eax, eax
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140006ae0
add rsp, 0x448
ret
Function at 0x140006c10
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x450], rax
movsxd rdi, ecx
mov ebx, 0x508
lea eax, [rdi - 1]
cmp eax, 2
ja 0x140006d28
lea r8, [r11 + 0x18]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wvsprintfA]
mov esi, eax
test eax, eax
jne 0x140006c79
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1400165f0]
mov ebx, eax
jmp 0x140006d21
shl rdi, 5
lea rbp, [0x1400080b0]
mov eax, dword [rdi + rbp + 0x14]
test eax, eax
jne 0x140006c96
mov eax, 1
jmp 0x140006d32
cmp eax, 3
jne 0x140006cdf
mov rcx, qword [rdi + rbp]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor ebx, ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
je 0x140006cc8
cmp dword [rsp + 0x30], esi
sete bl
mov eax, ebx
jmp 0x140006d32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, dword [rdi + rbp + 0x10]
je 0x140006d28
lea rcx, [0x140016650]
jmp 0x140006d1d
cmp dword [rdi + rbp + 0x18], 1
jne 0x140006d28
mov rcx, qword [rdi + rbp]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor ebx, ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006cbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, dword [rdi + rbp + 0x10]
je 0x140006d28
lea rcx, [0x140016620]
mov dword [rdi + rbp + 0x10], eax
mov edx, eax
call fcn.140006b70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140006ae0
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140006d50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
lea eax, [rcx - 1]
mov edi, r8d
mov rbp, rdx
mov ebx, 0x508
cmp eax, 2
ja 0x140006ebf
movsxd rsi, ecx
lea r12, [0x1400080b0]
shl rsi, 5
mov eax, dword [rsi + r12 + 0x14]
test eax, eax
jne 0x140006d9a
mov eax, 1
jmp 0x140006ec9
cmp eax, 3
jne 0x140006e28
test r8d, r8d
jns 0x140006dba
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
test edi, edi
je 0x140006d90
mov rcx, qword [rsi + r12]
lea r9, [rsp + 0x50]
xor ebx, ebx
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
je 0x140006e09
nop dword [rax + rax]
mov eax, dword [rsp + 0x50]
sub edi, eax
je 0x140006d90
mov rcx, qword [rsi + r12]
add rbp, rax
lea r9, [rsp + 0x50]
mov rdx, rbp
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
test eax, eax
jne 0x140006de0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, dword [rsi + r12 + 0x10]
je 0x140006ebf
lea rcx, [0x140016650]
jmp 0x140006eb3
cmp dword [rsi + r12 + 0x18], 1
jne 0x140006ebf
test r8d, r8d
jns 0x140006e4a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea edi, [rcx - 1]
test edi, edi
je 0x140006d90
mov rcx, qword [rsi + r12]
lea r9, [rsp + 0x50]
xor ebx, ebx
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140006e9d
nop
mov eax, dword [rsp + 0x50]
sub edi, eax
je 0x140006d90
mov rcx, qword [rsi + r12]
add rbp, rax
lea r9, [rsp + 0x50]
mov rdx, rbp
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140006e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, dword [rsi + r12 + 0x10]
je 0x140006ebf
lea rcx, [0x140016620]
mov edx, eax
mov dword [rsi + r12 + 0x10], eax
call fcn.140006b70
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140005e80
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14008a190]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140005ef3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Desktop_Path:
call fcn.1400101f0
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400101f0
lea rdx, [0x1400103d0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x140005f16
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_desktop_path.
call fcn.140010020
lea rdx, [0x14000ffe0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005f40
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140010990
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140047580
add rsp, 0x260
pop rbx
ret