joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017a30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1800aa930]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5eec], ecx
test rbx, rbx
je 0x180017a9f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.180017ab0
lea rdx, [0x1800751e4]
mov rcx, rbx
mov rdi, rax
call fcn.18000c230
mov rbx, rax
test rax, rax
je 0x180017a9a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1800315c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18000b300
test rax, rax
je 0x1800315de
call fcn.18000b680
mov rbx, qword [rax + 0x88]
jmp 0x1800315e0
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18003160b
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x180032e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800aa930]
mov rcx, qword [rax + 0x4da8]
mov r10, qword [rax + 0x4008]
movsxd rax, dword [rcx + 0x74]
vmovss xmm4, dword [rcx + 0x170]
vmovss xmm3, dword [rcx + 0x174]
vmovss xmm2, dword [rcx + 0x178]
vmovss xmm1, dword [rcx + 0x17c]
vmovups xmm0, xmmword [rcx + 0x170]
vmovss dword [rsp + 0x20], xmm4
vmovss dword [rsp + 0x24], xmm3
vmovss dword [rsp + 0x28], xmm2
vmovss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
vmovups xmmword [r10 + 0x248], xmm0
vmovss dword [rax + 0x88], xmm4
vmovss dword [rax + 0x8c], xmm3
vmovss dword [rax + 0x90], xmm2
vmovss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
vmovups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
vmovups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.180026e90

Function at 0x180032f40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800aa930]
mov rcx, qword [rax + 0x4da8]
mov r9, qword [rax + 0x4008]
vmovups xmm0, xmmword [r9 + 0x248]
vmovups xmmword [rcx + 0x170], xmm0
vmovss xmm4, dword [rcx + 0x150]
vmovss xmm3, dword [rcx + 0x154]
vmovss xmm2, dword [rcx + 0x158]
vmovss xmm1, dword [rcx + 0x15c]
vmovups xmm0, xmmword [rcx + 0x150]
mov rax, qword [r9 + 0x2a8]
vmovups xmmword [r9 + 0x248], xmm0
vmovss dword [rsp + 0x20], xmm4
vmovss dword [rsp + 0x24], xmm3
vmovss dword [rsp + 0x28], xmm2
vmovss dword [rsp + 0x2c], xmm1
vmovss dword [rax + 0x88], xmm4
vmovss dword [rax + 0x8c], xmm3
vmovss dword [rax + 0x90], xmm2
vmovss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
vmovups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
vmovups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.180026e90
Function at 0x1800490a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800490e0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800ab6d0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004911e
cmp rsi, r14
jb 0x180049116
cmp rsi, r15
jae 0x180049116
cmp qword [rsi + 8], 0
jne 0x1800492e7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180049101
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800491b2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800491a9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800491a9
cmp dword [rsp + 0x70], 0x10000
je 0x18004922b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800491a9
sub rbx, rbp
cmp rbx, r14
jae 0x180049170
test rsi, rsi
jne 0x180049290
cmp rdi, r15
ja 0x1800492cf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800492cf
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800492cf
cmp dword [rsp + 0x70], 0x10000
je 0x180049261
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800491e2
jmp 0x1800492cf
test rbx, rbx
je 0x1800491a9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049290
cmp rbx, r14
jae 0x180049150
jmp 0x1800491b2
test rdi, rdi
je 0x1800492cf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180049290
cmp rdi, r15
jbe 0x1800491c0
jmp 0x1800492cf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800492a0
mov rax, qword [0x1800ab6d0]
mov qword [rsi], rax
mov qword [0x1800ab6d0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180049b60
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1800ab6cc]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x180049ba7
mov rax, qword [0x1800ab6c0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180049bb4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180049b90
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x180049ba7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.18004a050
mov edi, eax
test eax, eax
jne 0x180049c9d
mov r9d, dword [0x1800ab6cc]
cmp ebx, r9d
jae 0x180049c2c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800ab6c0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180049c25
mov edx, esi
mov ecx, ebx
call fcn.180049dd0
mov edi, eax
test eax, eax
jne 0x180049c2c
mov r9d, dword [0x1800ab6cc]
inc ebx
cmp ebx, r9d
jb 0x180049bf0
cmp qword [rsp + 0x20], 0
je 0x180049c9b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180049c87
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180049c78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180049c50
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800aa988]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180049dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800ab6c0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180049e34
mov eax, 0xa
jmp 0x180049ec7
test esi, esi
je 0x180049e56
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180049e79
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180049e79
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180049e72
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180049e79
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180049ee0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800aa700]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18004a02c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18004a023
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x180049fda
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180049fda
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180049fda
mov rdx, qword [rdi]
test rdx, rdx
jne 0x180049f9b
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800aa988]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x18004a002
lea rbx, [rdi + 0xc]
jmp 0x180049fcf
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x180049fcf
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x1800aa988]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18004a002
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180049f41
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18004a01e
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x18004a01e
mov rcx, qword [0x1800aa988]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18006ee90
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x18004a050
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.180049ee0
test eax, eax
jne 0x18004a097
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x18004a10e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18004a0f6
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004a0ea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.18004a6f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18004a0b0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18004a8a0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18004a90f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18004a8f8
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18004a8ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18004a8c0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800aa988]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800527d0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0xe
call fcn.180052850
lea rcx, str.Starting_main_loop.._n
call fcn.18006ec70
cmp byte [0x1800aaa59], 0
je 0x180052849
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x180052811
mov ecx, 0x24
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x18005281f
cmp byte [0x1800aaa5a], 0
sete byte [0x1800aaa5a]
mov ecx, 0x23
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180052835
mov byte [0x1800aaa59], 0
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x1800aaa59], 0
jne 0x1800527f3
call fcn.18004dfa0
int3

Function at 0x180052c80
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180052d2a
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x1800aa348], 0
je 0x180052cb3
lea rcx, str.d3d12.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180052d04
cmp dword [0x1800aa344], 0
je 0x180052cce
lea rcx, str.d3d11.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180052d04
cmp dword [0x1800aa340], 0
je 0x180052ce9
lea rcx, str.d3d10.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180052d04
cmp dword [0x1800aa33c], 0
je 0x180052d2a
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180052d2a
xor eax, eax
mov qword [0x1800aaa68], rbx
mov qword [rsp + 0x28], rax
lea r8, [0x18004d350]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18006feb0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18006feea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18006feef
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18006ff38
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18009e6a0]
cmp byte [rcx + rax], 0
je 0x18006ff38
dec r8
sub rdx, 1
jne 0x18006ff1e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x100011e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x44], 0x20019
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x100011e7a
xor eax, eax
jmp 0x100011ed6
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x100011ebb
mov dword [rsp + 0x4c], 0
jmp 0x100011ec3
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
add rsp, 0x68
ret

Function at 0x100011ef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x3c], 0x208
mov dword [rsp + 0x38], 0x20019
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x100011f9a
call fcn.100010250
test rax, rax
je 0x100011f90
call fcn.100010250
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x20], ecx
lea r9, [0x10000d5f0]
mov r8d, 0xc0
lea rdx, [0x10000d570]
mov rcx, rax
call fcn.100010300
mov eax, 0xffffffff
jmp 0x10001205d
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xea
jne 0x100011fdc
mov dword [rsp + 0x44], 0xffffffff
jmp 0x100011ffc
cmp dword [rsp + 0x40], 2
jne 0x100011fed
mov dword [rsp + 0x44], 0xffffffff
jmp 0x100011ffc
cmp dword [rsp + 0x40], 0
je 0x100011ffc
mov dword [rsp + 0x44], 0xffffffff
call fcn.100010250
test rax, rax
je 0x10001204a
mov rcx, qword [rsp + 0x70]
call fcn.100019fd0
mov qword [rsp + 0x48], rax
call fcn.100010250
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x20], rcx
lea r9, [0x10000d640]
mov r8d, 0xcc
lea rdx, [0x10000d570]
mov rcx, rax
call fcn.100010300
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x44]
add rsp, 0x58
ret
Function at 0x100012070
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0xf003f
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x100012138
call fcn.100010250
test rax, rax
je 0x10001212e
call fcn.100010250
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov ecx, dword [rsp + 0x5c]
mov dword [rsp + 0x20], ecx
lea r9, [0x10000d680]
mov r8d, 0xdf
lea rdx, [0x10000d570]
mov rcx, rax
call fcn.100010300
mov eax, 0xffffffff
jmp 0x1000121fc
call fcn.100010250
test rax, rax
je 0x10001218c
mov rcx, qword [rsp + 0x90]
call fcn.100019fd0
mov qword [rsp + 0x68], rax
call fcn.100010250
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rcx
lea r9, [0x10000d6d0]
mov r8d, 0xe3
lea rdx, [0x10000d570]
mov rcx, rax
call fcn.100010300
mov rcx, qword [rsp + 0x90]
call fcn.100019fd0
lea rax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x1000121de
mov dword [rsp + 0x60], 0xffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x60]
add rsp, 0x78
ret

Function at 0x100012300
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x10002c580]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x118
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100012367
cmp dword [rsp + 0x34], 5
ja 0x100012360
cmp dword [rsp + 0x34], 5
jne 0x100012367
cmp dword [rsp + 0x38], 0
jbe 0x100012367
mov eax, 1
jmp 0x100012369
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.100019c20
add rsp, 0x160
pop rdi
ret
Function at 0x1000126b0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x68], 0x80004005
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1000127ba
mov eax, dword [rsp + 0x40]
and eax, 0xfffffff8
mov dword [rsp + 0x6c], eax
mov r9d, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x80]
lea rcx, [0x10000d760]
call fcn.100019ff0
call fcn.100010250
test rax, rax
je 0x100012769
call fcn.100010250
mov ecx, dword [rsp + 0x6c]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [0x10000d790]
mov r8d, 0x1ba
lea rdx, [0x10000d570]
mov rcx, rax
call fcn.100010300
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000127ba
lea rcx, [0x10000d7e0]
call fcn.100019ff0
call fcn.100010250
test rax, rax
je 0x1000127b6
call fcn.100010250
lea r9, [0x10000d810]
mov r8d, 0x1be
lea rdx, [0x10000d570]
mov rcx, rax
call fcn.100010300
xor eax, eax
jmp 0x10001280b
mov rdx, qword [rsp + 0x80]
lea rcx, [0x10000d860]
call fcn.100019ff0
call fcn.100010250
test rax, rax
je 0x100012806
call fcn.100010250
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [0x10000d890]
mov r8d, 0x1c3
lea rdx, [0x10000d570]
mov rcx, rax
call fcn.100010300
mov eax, 0x80004005
add rsp, 0x70
pop rdi
ret