joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006cd44
Capabilities:
Encrypt data using dpapi

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x120
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rbx, rdx
mov qword [r11 - 0x98], rdx
xor r13d, r13d
mov dword [rsp + 0x44], r13d
cmp dword [rcx], r13d
jne 0x10006cdc0
mov qword [rdx + 0x20], 7
mov qword [rdx + 0x18], r13
mov word [rdx + 8], r13w
xor r8d, r8d
lea rdx, [0x100002010]
mov rcx, rbx
call fcn.10002cf94
nop
mov dword [rsp + 0x44], 1
mov rax, rbx
jmp 0x10006cf9f
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x60], r13d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, r13d
jne 0x10006ce5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
cmp eax, r13d
cmovle edi, eax
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r13
mov word [rsp + 0x78], r13w
lea rdx, [0x100002010]
lea rcx, [rsp + 0x70]
call fcn.10002c1f4
nop
lea r8, [rsp + 0x70]
mov edx, edi
lea rcx, [rsp + 0xa8]
call fcn.10006d224
lea rdx, [0x10013edc0]
lea rcx, [rsp + 0xa8]
call sub.msvcrt.dll__CxxThrowException
nop
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r13
mov word [rsp + 0xf8], r13w
cmp dword [rsp + 0x50], r13d
jbe 0x10006cf15
mov edi, dword [rsp + 0x50]
shr rdi, 1
mov word [rsp + 0x40], r13w
lea rdx, [rdi + 1]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.100060550
nop
add rdi, rdi
mov r8, rdi
mov rdx, qword [rsp + 0x58]
mov r12, qword [rsp + 0x78]
mov rcx, r12
call sub.msvcrt.dll_memcpy
mov word [rdi + r12], r13w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0xf0]
call fcn.10002cf94
nop
cmp r12, r13
je 0x10006cf00
mov rcx, r12
call sub.msvcrt.dll_free
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r13
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], r13
mov word [rbx + 8], r13w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call fcn.10002cd2c
nop
mov dword [rsp + 0x44], 1
cmp qword [rsp + 0x110], 8
jb 0x10006cf63
mov rcx, qword [rsp + 0xf8]
cmp rcx, r13
je 0x10006cf63
call sub.msvcrt.dll_free
mov qword [rsp + 0x110], 7
mov qword [rsp + 0x108], r13
mov word [rsp + 0xf8], r13w
cmp dword [rsp + 0x50], r13d
jbe 0x10006cf92
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x58], r13
mov rax, rbx
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop r13
pop r12
pop rdi
ret
Function at 0x10006cfcc
Capabilities:
Encrypt data using dpapi

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rcx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], edi
mov rcx, qword [rdx + 0x18]
cmp rcx, rdi
je 0x10006d0b7
cmp qword [rdx + 0x20], 8
jb 0x10006d011
mov rax, qword [rdx + 8]
mov qword [rsp + 0x58], rax
jmp 0x10006d01a
lea rax, [rdx + 8]
mov qword [rsp + 0x58], rax
lea eax, [rcx + rcx]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
cmp eax, edi
jne 0x10006d0b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, edi
cmovle ebx, eax
mov qword [rsp + 0x88], 7
mov qword [rsp + 0x80], rdi
mov word [rsp + 0x70], di
lea rdx, [0x100002010]
lea rcx, [rsp + 0x68]
call fcn.10002c1f4
nop
lea r8, [rsp + 0x68]
mov edx, ebx
lea rcx, [rsp + 0x90]
call fcn.10006d224
lea rdx, [0x10013edc0]
lea rcx, [rsp + 0x90]
call sub.msvcrt.dll__CxxThrowException
nop
cmp dword [rbx], edi
jbe 0x10006d0c5
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movdqu xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rbx], xmm0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret

Function at 0x100071c74
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
and qword [rax - 0x18], 0
and qword [rax + 0x20], 0
xor ebx, ebx
mov eax, dword [0x1001475d4]
test eax, eax
je 0x100071cb0
lea rcx, [0x100004f18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1001475d4]
test eax, eax
jne 0x100071cbd
call fcn.100049184
test eax, eax
je 0x100071cd9
lea rdx, [rsp + 0x58]
mov rcx, qword [0x100142150]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x100071ce1
xor eax, eax
jmp 0x100071d2c
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
test rax, rax
sete bl
test ebx, ebx
je 0x100071d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100071d10
xor esi, esi
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x100071d29
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x100072884
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x290
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
cmp eax, ebp
jne 0x100072a04
mov ebx, ebp
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x10007290b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov qword [rsp + 0x48], rbp
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
cmp ebx, ebp
jne 0x100072a04
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
jne 0x1000729c9
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.100072884
mov ebx, eax
cmp eax, ebp
jne 0x1000729b0
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
je 0x100072957
jmp 0x1000729c9
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x1000729c5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov eax, ebx
jmp 0x100072a1b
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x1000729de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov rcx, rdi
call fcn.100072a6c
mov ebx, eax
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x100072a00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov eax, ebx
jmp 0x100072a1b
mov rcx, qword [rsp + 0x48]
cmp rcx, rbp
je 0x100072a19
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop rdi
pop rsi
pop rbp
ret
Function at 0x100073884
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call fcn.100071c74
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x1000738f7
call fcn.1000a2290
mov ebx, eax
jmp 0x100073a33
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x10007391a
call fcn.1000a2290
mov ebx, eax
jmp 0x100073a29
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x10007393f
call fcn.1000a2290
mov ebx, eax
jmp 0x100073a29
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x100073978
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x10007396e
lea rcx, [rsp + 0x70]
call fcn.100071c64
nop
mov eax, 0x8007000e
jmp 0x100073a4c
mov ecx, eax
cmp rcx, rbx
je 0x1000739b1
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1000739a7
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1000739b1
lea rcx, [rsp + 0x70]
call fcn.1000722cc
jmp 0x1000739bb
mov ecx, 0x80070057
call fcn.10002c1d4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1000739cd
mov rax, qword [rsp + 0x70]
cmp rax, rbx
jne 0x1000739de
mov ebx, 0x8007000e
jmp 0x100073a29
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x100073a05
call fcn.1000a2290
mov ebx, eax
jmp 0x100073a29
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1000736c4
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x100073a4a
lea rcx, [rsp + 0x70]
call fcn.100071c64
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x10009e7f8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rcx, rsi
call sub.msvcrt.dll_malloc
test rax, rax
jne 0x10009e8eb
cmp byte [0x100147690], al
jne 0x10009e882
mov rdi, qword [0x100147268]
test rdi, rdi
je 0x10009e8ae
lea r8, [0x100145e50]
mov r9d, 0x200
mov edx, 0xe1
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [0x100145a50]
mov r9d, 0x200
mov edx, 0xe2
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.USER32.dll_LoadStringW]
test ebx, ebx
je 0x10009e882
movzx ecx, byte [0x100147690]
mov edx, 1
test eax, eax
cmovne ecx, edx
mov byte [0x100147690], cl
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea r8, [0x100145a50]
lea rdx, [0x100145e50]
mov rcx, rax
mov r9d, 0x1015
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 4
je 0x10009e80a
lea rcx, [0x100008990]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x10000dca0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x1001475a8]
lea rcx, [rsp + 0x20]
call fcn.10002a3b8
lea rdx, [0x10013ebd8]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll__CxxThrowException
int3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x10009f954
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x110
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor edi, edi
mov dword [rsp + 0x20], edi
mov rbx, qword [0x100147288]
test rbx, rbx
jne 0x10009fb77
cmp byte [0x100147691], dil
jne 0x10009fb77
mov ecx, 0xa0
call fcn.1000c85bc
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x10009fb50
lea rdx, [0x100008990]
lea rcx, [rsp + 0x38]
call fcn.10002d07c
nop
mov edi, 1
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.10002d1f0
nop
or rax, 0xffffffffffffffff
mov qword [rbx + 0x28], rax
and dword [rbx + 0x30], 0
mov qword [rbx + 0x38], rax
lea rcx, [rbx + 0x40]
call fcn.10002dbe8
nop
and dword [rbx + 0x68], 0
and dword [rbx + 0x98], 0
mov rcx, rbx
call fcn.10009fba4
lea rcx, [rbx + 0x70]
call fcn.1000a08b0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 0x98], eax
mov eax, dword [rbx + 0x30]
bt eax, 0x10
jae 0x10009fac0
bt eax, 0x14
jb 0x10009fac0
lea rcx, [rsp + 0xb0]
call fcn.10002dbe8
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
call fcn.1000a02f0
mov qword [rbx + 0x28], rax
lea r8, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r8, qword [rsp + 0xb8]
lea rdx, [0x10000dec0]
lea rcx, [rsp + 0x88]
call fcn.10009ef30
nop
lea edx, [rdi + 0xf]
mov r8, rax
mov rcx, rbx
call fcn.1000a1180
nop
lea rcx, [rsp + 0x88]
call fcn.10002d0d8
nop
lea rcx, [rsp + 0xb0]
call fcn.10002d0d8
jmp 0x10009fb45
bt eax, 0x13
jb 0x10009facc
bt eax, 0x14
jae 0x10009fb45
lea rcx, [rsp + 0xd8]
call fcn.10002dbe8
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x38]
call fcn.1000a06bc
mov qword [rbx + 0x28], rax
lea r8, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae r8, qword [rsp + 0xe0]
lea rdx, [0x10000dee8]
lea rcx, [rsp + 0x60]
call fcn.10009ef30
nop
mov edx, 0x10
mov r8, rax
mov rcx, rbx
call fcn.1000a1180
nop
lea rcx, [rsp + 0x60]
call fcn.10002d0d8
nop
lea rcx, [rsp + 0xd8]
call fcn.10002d0d8
mov rcx, rbx
call fcn.1000a0a44
nop
jmp 0x10009fb52
xor ebx, ebx
mov qword [0x100147288], rbx
test dil, 1
je 0x10009fb70
lea rcx, [rsp + 0x38]
call fcn.10002d0d8
mov rbx, qword [0x100147288]
mov byte [0x100147691], 1
mov rax, rbx
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1000c8b30
mov rbx, qword [rsp + 0x120]
add rsp, 0x110
pop rdi
ret
Function at 0x10009fba4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rbx, rcx
mov eax, dword [0x1001477c8]
xor edi, edi
test al, 1
jne 0x10009fc52
or eax, 1
mov dword [0x1001477c8], eax
mov rdx, qword [0x100147280]
lea rcx, [r11 - 0x38]
call fcn.10002d07c
nop
lea r8, [0x100008990]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.100039e4c
nop
mov rdx, rax
lea rcx, [0x1001477a0]
call fcn.10002d1f0
nop
cmp qword [rsp + 0x78], 8
jb 0x10009fc25
mov rcx, qword [rsp + 0x60]
cmp rcx, rdi
je 0x10009fc25
call sub.msvcrt.dll_free
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
lea rcx, [rsp + 0x80]
call fcn.10002d0d8
lea rcx, [0x10010bc28]
call fcn.1000c8c9c
nop
mov qword [rsp + 0xd8], rdi
lea rdx, [0x1001477a8]
cmp qword [0x1001477c0], 8
cmovae rdx, qword [0x1001477a8]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x10009fd77
mov dword [rsp + 0xc8], 4
add rbx, 0x30
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x10000dd70]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x10009fd42
mov eax, dword [0x100147278]
mov dword [rbx], eax
and eax, 0xffcfffff
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [0x10000dd70]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [0x100147278]
jmp 0x10009fd5a
mov r11d, dword [0x100147278]
bt r11d, 0x14
jae 0x10009fd56
bts dword [rbx], 0x14
jmp 0x10009fd5a
btr dword [rbx], 0x14
shr r11d, 0x15
and r11b, 1
mov byte [0x100147290], r11b
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x1000a022c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx + 0x20], 8
jb 0x1000a023f
mov rcx, qword [rcx + 8]
jmp 0x1000a0243
add rcx, 8
mov al, byte [0x100147290]
mov edx, 0xc0000000
neg al
sbb r8d, r8d
and qword [rsp + 0x30], 0
xor r9d, r9d
and r8d, 2
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
or r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1000a02de
xor edx, edx
xor eax, eax
lea r8, [rsp + 0x60]
lea r9d, [rdx + 2]
mov rcx, rbx
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp qword [rsp + 0x60], 0
jne 0x1000a02de
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov r8d, 2
mov rcx, rbx
mov byte [rsp + 0x50], 0xff
mov byte [rsp + 0x51], 0xfe
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000a02de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, rbx
add rsp, 0x40
pop rbx
ret
Function at 0x1000a0a44
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x430
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rcx
xor edx, edx
call fcn.1000a08c8
mov rdx, qword [0x100147268]
test rdx, rdx
je 0x1000a0a89
mov rcx, rbx
call fcn.1000a08c8
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r11d, word [rsp + 0x5e]
movzx eax, word [rsp + 0x5c]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, [0x10000dfb0]
lea rcx, [rsp + 0x70]
call fcn.10009ef30
nop
mov edx, 0x10
mov r8, rax
mov rcx, rbx
call fcn.1000a1180
nop
lea rcx, [rsp + 0x70]
call fcn.10002d0d8
mov dword [rsp + 0xf0], 0x114
lea rcx, [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [rsp + 0xc8]
call fcn.10002dbe8
nop
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x10000e040]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a0be8
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x210]
call sub.msvcrt.dll_memset
and dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0x208
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x210]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x10000e0a0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000a0be8
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x70]
call fcn.10002d07c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xc8]
call fcn.10002cd2c
nop
lea rcx, [rsp + 0x70]
call fcn.10002d0d8
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa0]
call fcn.10009fe34
nop
lea rcx, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rcx, qword [rsp + 0xd0]
cmp qword [rax + 0x20], 8
jb 0x1000a0c25
mov r8, qword [rax + 8]
jmp 0x1000a0c29
lea r8, [rax + 8]
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x104]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xf4]
lea rdx, [0x10000e0c0]
lea rcx, [rsp + 0x70]
call fcn.10009ef30
nop
mov edx, 0x10
mov r8, rax
mov rcx, rbx
call fcn.1000a1180
nop
lea rcx, [rsp + 0x70]
call fcn.10002d0d8
nop
lea rcx, [rsp + 0xa0]
call fcn.10002d0d8
mov r8d, dword [rbx + 0x30]
lea rdx, [0x10000e138]
lea rcx, [rsp + 0xa0]
call fcn.10009ef30
nop
mov edx, 0x10
mov r8, rax
mov rcx, rbx
call fcn.1000a1180
nop
lea rcx, [rsp + 0xa0]
call fcn.10002d0d8
nop
lea rcx, [rsp + 0xc8]
call fcn.10002d0d8
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1000c8b30
add rsp, 0x430
pop rbx
ret
Function at 0x1000a0cf8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ecx, dword [rcx + 0x98]
movsxd rbp, edx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
cmp rax, rbx
jne 0x1000a0d35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
cmp eax, ebx
jne 0x1000a0d52
mov ecx, dword [rdi + 0x98]
lea rdx, [rsi + rbp]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x1000a0d63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
cmp r11d, ebx
cmovle eax, r11d
mov ebx, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000a0d80
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x100142128]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rdi, r8
mov r14, rdx
mov r12, rcx
mov qword [rsp + 0x70], rdx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov ecx, dword [rcx + 0x98]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
cmp rax, rbx
jne 0x1000a0ddf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1000a0de2
mov rbx, rsi
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rsp + 0xf0]
call fcn.10009f880
nop
lea rcx, [rsp + 0xc8]
call fcn.10002dbe8
nop
mov eax, dword [r12 + 0x30]
shr eax, 6
or rbx, 0xffffffffffffffff
test al, 1
je 0x1000a0e75
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r11d, word [rsp + 0x66]
movzx eax, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], eax
lea rdx, [0x10000e170]
lea rcx, [rsp + 0x78]
call fcn.10009ef30
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.10002cd2c
nop
lea rcx, [rsp + 0x78]
call fcn.10002d0d8
lea rcx, [rsp + 0xa0]
call fcn.10002dbe8
nop
mov eax, dword [r12 + 0x30]
shr eax, 7
test al, 1
je 0x1000a0f40
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov eax, 0x31b5d43b
mul r11d
mov r8d, edx
shr r8d, 0x18
mov eax, r8d
imul eax, eax, 0xfad9a400
add r11d, eax
mov eax, 0x95217cb1
mul r11d
mov r9d, edx
shr r9d, 0x15
mov eax, r9d
imul eax, eax, 0xffc91180
add r11d, eax
mov eax, 0x45e7b273
mul r11d
mov ecx, edx
shr ecx, 0xe
mov eax, ecx
imul eax, eax, 0xffff15a0
add r11d, eax
mov eax, 0x10624dd3
mul r11d
shr edx, 6
mov eax, edx
imul eax, eax, 0xfffffc18
add r11d, eax
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, [0x10000e1c0]
lea rcx, [rsp + 0x78]
call fcn.10009ef30
nop
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.10002cd2c
nop
lea rcx, [rsp + 0x78]
call fcn.10002d0d8
cmp qword [rdi + 0x20], 8
jb 0x1000a0f4d
mov r13, qword [rdi + 8]
jmp 0x1000a0f51
lea r13, [rdi + 8]
lea rbp, [rsp + 0xf8]
cmp qword [rsp + 0x110], 8
cmovae rbp, qword [rsp + 0xf8]
lea rsi, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rsi, qword [rsp + 0xa8]
lea rdi, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rdi, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
mov eax, dword [r12 + 0x68]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebx
lea r8, [0x100008990]
lea rdx, [0x10000dd20]
mov rcx, r14
call fcn.10009ef30
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0xa0]
call fcn.10002d0d8
nop
lea rcx, [rsp + 0xc8]
call fcn.10002d0d8
nop
lea rcx, [rsp + 0xf0]
call fcn.10002d0d8
mov rax, r14
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1000c8b30
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret