joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000671b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [rsp + 0x40], 0
mov rbx, rcx
lea rdx, [0x10002dab0]
mov ecx, 3
call fcn.1000527a0
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x100067203
mov rcx, rbx
call fcn.100066d54
lea rax, [rsp + 0x40]
lea rdx, [0x1000255f0]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 4
mov edi, 0x208
test eax, eax
jne 0x100067360
and dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
lea rdx, [0x10002dae0]
xor r8d, r8d
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000672eb
cmp dword [rsp + 0x34], 1
jne 0x1000672eb
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x10002db18]
xor r8d, r8d
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000672eb
cmp dword [rsp + 0x30], 1
jne 0x1000672eb
lea rax, [rsp + 0x50]
test rax, rax
je 0x1000672d5
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.100066e7c
lea r8, [rsp + 0x50]
lea rdx, [0x10002db50]
mov ecx, 3
call fcn.1000527f4
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x100026128]
xor r8d, r8d
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100067355
cmp dword [rsp + 0x30], 1
jne 0x100067355
lea rax, [rsp + 0x50]
test rax, rax
je 0x10006733f
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.100066f84
lea r8, [rsp + 0x50]
lea rdx, [0x10002db70]
mov ecx, 3
call fcn.1000527f4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
lea rdx, [0x1000255f0]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100067412
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x10002db90]
xor r8d, r8d
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100067407
cmp dword [rsp + 0x34], 1
jne 0x100067407
lea rsi, [rsp + 0x50]
lea rdi, [0x1000062c0]
lea ecx, [rax + 1]
repe cmpsw word [rsi], word [rdi]
je 0x100067407
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1000670a4
lea r8, [rsp + 0x50]
lea rdx, [0x10002dbc0]
mov ecx, 3
call fcn.1000527f4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100068d78
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x360
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x350], rax
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov rbx, rcx
mov r12, 0xffffffff80000002
lea rdx, [0x1000255f0]
mov r9d, 3
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100068ef9
mov r8, qword [rbx + 0x20]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x100026128]
call fcn.1000642a4
cmp qword [rbx + 0x30], 0
jne 0x100068e34
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x100068eee
lea rdi, [0x1000062c0]
mov rsi, r8
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x100068eee
mov rcx, qword [rsp + 0x50]
lea rdx, [0x10002db90]
call fcn.1000642a4
jmp 0x100068eee
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x5c]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, [0x10002db90]
xor r8d, r8d
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0xc8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100068eee
cmp dword [rsp + 0x58], 1
jne 0x100068eee
lea r9, [rsp + 0x70]
lea r8, [0x10002d350]
lea rcx, [rsp + 0x140]
mov edx, 0x208
call fcn.10003a0f0
test eax, eax
js 0x100068eee
and qword [rsp + 0x40], 0
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x140]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100068eee
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
lea rdx, [0x100026cd0]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov dword [rsp + 0x28], 2
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100068f56
mov r8, qword [rbx + 0x40]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x100026d20]
call fcn.1000642a4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x100068ffc
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x6a0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x690], rax
and qword [rsp + 0x48], 0
mov rbp, rdx
mov r12, rcx
test rcx, rcx
je 0x1000691cf
test rdx, rdx
je 0x1000691cf
lea rdx, [rsp + 0x48]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x1000691b6
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x270]
xor ecx, ecx
xor ebx, ebx
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x54], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x100069105
lea rsi, [0x1000062c0]
lea rdi, [rsp + 0x60]
lea ecx, [rbx + 1]
repe cmpsw word [rsi], word [rdi]
mov r13d, 0x208
jne 0x1000690e6
mov eax, dword [rsp + 0x40]
cmp eax, 6
je 0x10006912b
cmp eax, 8
je 0x10006912b
cmp eax, 9
je 0x10006912b
cmp eax, 3
je 0x10006912b
cmp eax, 7
je 0x10006912b
lea rcx, [rsp + 0x60]
mov r8, r12
mov rdx, r13
call fcn.100039e6c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x480]
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x100069135
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1000691bb
mov ebx, 0x80004005
jmp 0x1000691bb
mov ebx, 0x80070523
jmp 0x1000691bb
lea rsi, [0x1000062c0]
lea rdi, [rsp + 0x270]
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1000691a4
or r9d, 0xffffffff
lea rax, [rsp + 0x480]
lea r8, [rsp + 0x270]
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x1000691a4
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x270]
lea r8, [0x100025e98]
mov rdx, r13
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.10003a0f0
jmp 0x1000691bb
lea r8, [rsp + 0x60]
mov rdx, r13
mov rcx, rbp
call fcn.100039e6c
jmp 0x1000691bb
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1000691cb
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
jmp 0x1000691d4
mov eax, 0x80070057
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x6a0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100069978
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
lea rdx, [0x100025840]
mov r9d, 0x101
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100069a0b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x10002e660]
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000699fb
cmp dword [rsp + 0x48], 4
je 0x100069a00
and dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x100069f04
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edi, edi
xor esi, esi
mov qword [rsp + 0x70], rdx
xor ebp, ebp
mov rax, rcx
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rcx
and qword [rsp + 0x20], 0
mov edx, ebp
mov rcx, rax
mov dword [rsp + 0x6c], 0x104
mov dword [rsp + 0x58], esi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp eax, 0x103
je 0x10006a024
cmp eax, 0xea
jne 0x100069f9e
test rdi, rdi
je 0x100069fa3
mov rcx, rdi
call fcn.10007faa2
xor edi, edi
test rdi, rdi
jne 0x100069fe6
mov esi, dword [rsp + 0x58]
shr esi, 4
inc esi
shl esi, 4
mov ecx, esi
call fcn.10007fa96
mov rdi, rax
test rax, rax
jne 0x10006a01a
lea ebx, [rax + 0xe]
xor ebp, ebp
cmp rdi, rbp
je 0x100069fd0
mov rcx, rdi
call fcn.10007faa2
cmp ebx, ebp
jne 0x10006a0fa
mov rsi, qword [rsp + 0x50]
mov edi, ebp
xor edx, edx
jmp 0x10006a0d1
test ebx, ebx
jne 0x10006a014
mov eax, dword [rsp + 0x58]
mov r9d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
inc ebp
test ebx, ebx
jne 0x100069fc1
mov rax, qword [rsp + 0x50]
jmp 0x100069f38
xor ebp, ebp
mov ebx, ebp
jmp 0x100069fc3
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov r9d, 0x109
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10006a0a8
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x10006a0a8
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call fcn.100069f04
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x10006a0bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rbp
mov rcx, qword [rsp + 0x60]
cmp rcx, rbp
je 0x10006a0cd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov edx, edi
lea r8, [rsp + 0x80]
mov r9d, 0x104
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
cmp eax, ebp
je 0x10006a02a
cmp eax, 0x103
cmove ebx, ebp
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x10006a844
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push r13
sub rsp, 0x6b0
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
and qword [rsp + 0x50], 0
and dword [rsp + 0x60], 0
lea rax, [rsp + 0x50]
mov esi, 0x101
mov r13, 0xffffffff80000002
lea rdx, [0x10002ebb0]
xor r8d, r8d
mov r9d, esi
mov rcx, r13
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x58], 1
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10006a8e6
lea rax, [rsp + 0x50]
lea rdx, [0x10002ec50]
mov r9d, esi
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x58], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006aab2
mov esi, 4
lea rdx, [0x10002ecd0]
mov ecx, esi
call fcn.1000527a0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10006aaa4
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x5c]
lea rdx, [0x10002ae10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006a9aa
mov eax, dword [rsp + 0x5c]
cmp eax, 2
je 0x10006a94a
cmp eax, 1
jne 0x10006a9aa
mov ebx, 1
cmp eax, 2
jne 0x10006a9aa
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x70]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x10006a98c
lea r8, [rsp + 0x280]
lea rcx, [rsp + 0x70]
mov edx, 0x208
call fcn.100039e6c
test eax, eax
jns 0x10006a9aa
lea rdx, [0x10002ecf8]
mov ecx, esi
call fcn.1000527a0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006aab2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10006aaa4
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
lea rdx, [0x100025840]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x28], 0x20106
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10006aa2b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
lea rdx, [0x10002e660]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x58], 2
jne 0x10006aa37
call fcn.10006a594
lea rdx, [0x10002ed30]
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x10006aaa0
lea rdx, [0x10002ed48]
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x10006aaa0
lea r8, [0x10002ed50]
lea rcx, [rsp + 0x490]
mov r9, rax
mov edx, 0x208
call fcn.10003a0f0
test eax, eax
js 0x10006aaa0
lea rdx, [rsp + 0x490]
mov r9d, 0xffff
mov r8d, 1
xor ecx, ecx
call fcn.100056190
mov eax, ebx
jmp 0x10006aab4
lea rdx, [0x10002ecf8]
mov ecx, esi
call fcn.1000527a0
xor eax, eax
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop r13
ret
Function at 0x10006b154
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x250], rax
and qword [rsp + 0x38], 0
mov edi, edx
mov rsi, rcx
mov ebx, 0x80004005
test rcx, rcx
jne 0x10006b195
lea eax, [rbx - 2]
jmp 0x10006b2c9
lea rax, [rsp + 0x38]
lea rdx, [0x100029890]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006b2c7
mov rcx, qword [rsp + 0x38]
mov ebx, 0x208
mov eax, edi
cmp edi, ebx
lea r9, [rsp + 0x30]
lea rdx, [0x10002ee90]
cmova eax, ebx
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006b25e
cmp dword [rsp + 0x30], 1
jne 0x10006b25e
lea rax, [rsp + 0x40]
test rax, rax
je 0x10006b22b
lea rcx, [rsp + 0x40]
call fcn.100053354
jmp 0x10006b22d
xor eax, eax
test eax, eax
je 0x10006b235
xor ebx, ebx
jmp 0x10006b281
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r11, [rsp + 0x40]
test r11, r11
je 0x10006b258
lea rcx, [rsp + 0x40]
call fcn.100053354
jmp 0x10006b25a
xor eax, eax
test eax, eax
jne 0x10006b231
lea rax, [rsp + 0x40]
test rax, rax
jne 0x10006b26f
mov ebx, 0x80004003
jmp 0x10006b2bc
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.10006ae74
mov ebx, eax
test eax, eax
jne 0x10006b2bc
mov rdx, rdi
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
shr rdx, 1
repne scasw ax, word [rdi]
not rcx
cmp rdx, rcx
jbe 0x10006b2ac
lea r8, [rsp + 0x40]
mov rcx, rsi
call fcn.100039df8
jmp 0x10006b2bc
mov ecx, 0x8007007a
mov ebx, 0x8007007a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10007fa70
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10006b2f4
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov rax, qword [0x100086110]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r12d, r12d
mov ebp, edx
mov rsi, rcx
lea r8, [rsp + 0x28]
lea edx, [r12 + 0x23]
xor ecx, ecx
mov qword [rsp + 0x28], r12
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea r13d, [r12 + 1]
cmp eax, r12d
mov ebx, eax
jl 0x10006b398
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea rcx, [rsp + 0x20]
mov edi, r12d
cmp eax, r12d
cmovne edi, r13d
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
cmp eax, r12d
jl 0x10006b393
mov rcx, qword [rsp + 0x20]
cmp rcx, r12
je 0x10006b393
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x28]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp edi, r12d
jne 0x10006b3cd
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp eax, r12d
je 0x10006b3c8
lea r8, [0x10002eeb0]
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.100039ee4
cmp eax, r12d
jge 0x10006b3cd
mov ebx, 0x80070057
cmp ebx, r12d
jl 0x10006b461
lea rax, [rsp + 0x30]
cmp rax, r12
je 0x10006b3ec
lea rcx, [rsp + 0x30]
call fcn.100053354
jmp 0x10006b3ef
mov eax, r12d
cmp eax, r12d
je 0x10006b3f9
mov ebx, r12d
jmp 0x10006b42b
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [rsp + 0x30]
cmp rdx, r12
je 0x10006b41c
lea rcx, [rsp + 0x30]
call fcn.100053354
jmp 0x10006b41f
mov eax, r12d
cmp eax, r12d
cmovne ebx, r12d
cmp ebx, r12d
jne 0x10006b461
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
mov rdx, rbp
not rcx
shr rdx, 1
sub rcx, r13
add rcx, r13
cmp rdx, rcx
jbe 0x10006b45c
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.100039df8
jmp 0x10006b461
mov ebx, 0x8007007a
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.10007fa70
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10006badc
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
je 0x10006bc83
test rdx, rdx
je 0x10006bc83
mov edi, 7
lea rdx, [0x100028258]
mov r8, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x10006bc7c
lea r8d, [rdi + 1]
lea rdx, [0x10002f018]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x10006bc7c
lea rdx, [0x10002f030]
mov r8, rdi
mov rcx, rbx
xor esi, esi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x10006bb5c
add rbx, 0xe
and qword [rsp + 0x30], rsi
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x10006bbb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [r12 + 0x58]
test eax, eax
cmove eax, ecx
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x10006bc68
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x10006bbe4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x57
test eax, eax
cmove eax, ecx
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x10006bc4f
mov rdx, rdi
mov ecx, 0x42
mov rbx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x10006bbc4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x10006bbc4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006bbc4
mov r8, rbp
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, eax
test eax, eax
js 0x10006bc4f
mov rcx, qword [rbp]
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x30]
mov edi, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x10006bc68
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
test edi, edi
jns 0x10006bc88
test rsi, rsi
je 0x10006bc88
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x10006bc88
mov edi, 0x80004001
jmp 0x10006bc88
mov edi, 0x80004003
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x10006ce88
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rsi
push rdi
push r15
sub rsp, 0x80
xor ebx, ebx
lea rax, [r11 - 0x40]
mov rsi, r8
and qword [r11 - 0x58], rbx
and qword [r11 - 0x60], rbx
and qword [r11 - 0x68], rbx
and qword [r11 - 0x30], rbx
and qword [r11 - 0x48], rbx
and qword [r11 - 0x28], rbx
and qword [r11 - 0x40], rbx
mov qword [r11 - 0x70], rax
lea rax, [r11 - 0x28]
lea r9, [r11 - 0x48]
lea r8, [r11 - 0x30]
mov qword [r11 - 0x78], rax
call fcn.10006c730
mov rcx, qword [rsp + 0x68]
and qword [rsp + 0x78], rbx
lea r15d, [rbx + 1]
test rcx, rcx
je 0x10006cf93
cmp qword [rsp + 0x50], rbx
je 0x10006cf93
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x78]
lea r9d, [rbx + 3]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006cf93
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x60], r15d
mov dword [rsp + 0x68], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006cf5b
cmp dword [rsp + 0x60], r15d
cmove ebx, r15d
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x10006cf93
test rsi, rsi
je 0x10006cf79
mov rcx, rsi
call fcn.100053354
jmp 0x10006cf7b
xor eax, eax
test eax, eax
je 0x10006cf93
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, r15
jne 0x10006cfb0
cmp qword [rsp + 0x58], 0
je 0x10006cfb0
mov r8, qword [rsp + 0x58]
mov edx, 0x104
mov rcx, rsi
call fcn.100039df8
mov ebx, r15d
cmp qword [rsp + 0x50], 0
je 0x10006cfc2
mov rcx, qword [rsp + 0x50]
call fcn.10007faa2
cmp qword [rsp + 0x70], 0
je 0x10006cfd4
mov rcx, qword [rsp + 0x70]
call fcn.10007faa2
cmp qword [rsp + 0x58], 0
je 0x10006cfe6
mov rcx, qword [rsp + 0x58]
call fcn.10007faa2
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop r15
pop rdi
pop rsi
ret