joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400038b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x20], 1
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400038fa
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movsxd rsi, eax
test eax, eax
je 0x14000394e
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call fcn.140003d80
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140003927
mov rdx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140003931
mov rdi, qword [rdi]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea eax, [rsi - 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140003d80
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140003970
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x3f]
sub rsp, 0xb0
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
mov dword [rbp - 0x41], 0x70
mov dword [rbp - 0x3d], 0x440
cmp qword [rdx + 0x18], 8
jb 0x1400039c0
mov rdx, qword [rdx]
mov qword [rbp - 0x29], rdx
mov dword [rbp - 0x11], eax
lea rax, str.runas
mov qword [rbp - 0x31], rax
cmp qword [r8 + 0x10], 0
je 0x1400039e7
cmp qword [r8 + 0x18], 8
jb 0x1400039e3
mov r8, qword [r8]
mov qword [rbp - 0x21], r8
cmp qword [r9 + 0x10], 0
je 0x1400039fc
cmp qword [r9 + 0x18], 8
jb 0x1400039f8
mov r9, qword [r9]
mov qword [rbp - 0x19], r9
lea rax, [rbp - 0x41]
mov qword [rbp + 0x4f], rax
lea r8, [rbp + 0x4f]
lea rcx, [rbp + 0x2f]
call fcn.140004180
nop
lea rcx, [rbp - 0x41]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140003a56
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x140003a48
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140003a44
cmp eax, 0xffffffff
je 0x140003a56
mov ebx, 6
jmp 0x140003a63
mov rcx, qword [rbp + 0x27]
lea rdx, [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140003a60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140003a63
mov ebx, dword [rbp + 0x6f]
lea rcx, [rbp + 0x2f]
call fcn.140003d50
mov eax, ebx
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rbp
ret
Function at 0x140003a80
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0xe0
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov dword [rax - 0x78], 0x68
xorps xmm0, xmm0
movups xmmword [rax - 0x70], xmm0
movups xmmword [rax - 0x60], xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
movups xmmword [rax - 0x20], xmm0
mov dword [rax - 0x3c], 1
mov word [rax - 0x38], r9w
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
call fcn.140001af0
mov rcx, rax
test rax, rax
je 0x140003c62
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
cmp qword [rbx + 0x18], 8
jb 0x140003b00
mov rbx, qword [rbx]
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140003b0d
mov r8, qword [rdi]
mov r9, rbx
lea rdx, str.__s___s
lea rcx, [rsp + 0x50]
call fcn.140002570
xor r9d, r9d
cmp qword [rsi + 0x10], r9
jne 0x140003b2f
mov esi, r9d
jmp 0x140003b39
cmp qword [rsi + 0x18], 8
jb 0x140003b39
mov rsi, qword [rsi]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 0x10]
test rcx, rcx
jne 0x140003b4f
mov rax, r9
jmp 0x140003b59
cmp qword [rax + 0x18], 8
jb 0x140003b59
mov rax, qword [rax]
neg rcx
sbb edx, edx
and edx, 0x400
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
cmp dword [rbx - 0x10], r9d
cmove rcx, r9
cmp qword [rdi + 0x10], r9
jne 0x140003b7f
mov rdi, r9
jmp 0x140003b89
cmp qword [rdi + 0x18], 8
jb 0x140003b89
mov rdi, qword [rdi]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x48], r8
lea r8, [rsp + 0x70]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r9d
xor r8d, r8d
mov rdx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140003bcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140003c2e
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140003bed
cmp eax, 0xffffffff
je 0x140003c1d
mov edi, 6
jmp 0x140003c2e
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140003c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140003c2e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140003c27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140003c2e
mov edi, dword [rsp + 0x108]
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140003c4b
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400019c0
int3
Function at 0x140004b10
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x140004bc7
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x140004b92
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004bb2
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004bb2
mov qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x140004bb2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x14008df90], 0
jne 0x140004c12
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004c02
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008df88], rax
mov byte [0x14008df90], 1
jmp 0x140004c19
mov rax, qword [0x14008df88]
mov byte [0x14008df90], 1
jmp 0x140004c19
mov rax, qword [0x14008df88]
mov rdx, rsi
mov rcx, qword [rbx]
test rax, rax
je 0x140004b9b
xor r9d, r9d
mov r8d, dword [rbx + 8]
call rax
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140005400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140005485
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140005485
call fcn.140004890
mov ebx, eax
jmp 0x1400055a7
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400054a6
call fcn.140004890
jmp 0x140005596
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400054c9
call fcn.140004890
jmp 0x140005596
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400054eb
mov ebx, 0x8007000e
jmp 0x140005598
mov ecx, eax
test eax, eax
je 0x140005520
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400055df
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140005520
lea rcx, [rsp + 0x60]
call fcn.140009a40
jmp 0x14000552a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000553d
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x14000554e
mov ebx, 0x8007000e
jmp 0x140005598
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140005573
call fcn.140004890
jmp 0x140005596
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400062f0
mov ebx, eax
test rdi, rdi
je 0x1400055a7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x1400055be
lea rcx, [rsp + 0x60]
call fcn.1400098d0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003d1d0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1400019c0
int3
Function at 0x140009e20
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140009fd3
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [rsi + 8]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [rsi + 0x18]
call fcn.1400098f0
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rdi
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x140009f91
movabs rbp, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdx]
movzx r9d, byte [rcx + 0x10]
xor r9, rbp
imul r9, rdi
movzx eax, byte [rcx + 0x11]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x12]
xor r9, rax
imul r9, rdi
movzx eax, byte [rcx + 0x13]
xor r9, rax
imul r9, rdi
mov r11, qword [rsi + 0x30]
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140009f10
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x140009f85
mov rax, qword [r11 + 8]
mov r8d, dword [rcx + 0x10]
cmp r8d, dword [rax + 0x10]
jne 0x140009f4d
mov r8, qword [rax]
cmp r8, rcx
je 0x140009f47
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x140009f85
cmp r9, rax
je 0x140009f61
mov rax, qword [rax + 8]
cmp r8d, dword [rax + 0x10]
je 0x140009fad
cmp r9, rax
jne 0x140009f52
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x140009ec0
mov qword [rsp + 0x48], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
jmp 0x140009f85
lea rcx, str.invalid_hash_bucket_count
call fcn.14003b4e8
int3
Function at 0x140010010
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rbp - 8], rax
mov rsi, rcx
mov qword [rbp - 0x30], rcx
xor r14d, r14d
mov dword [rbp - 0x60], r14d
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400656b8]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400101e4
mov rbx, qword [rbp - 0x58]
mov qword [rbp - 0x28], rbx
mov rcx, qword [rbp - 0x58]
movzx ecx, word [rcx]
call fcn.14004a068
movzx edx, ax
mov rcx, qword [rbp - 0x58]
mov word [rcx], ax
mov rdi, qword [rbp - 0x58]
mov dword [rbp - 0x18], 0x5c005c
mov dword [rbp - 0x14], 0x5c003f
mov word [rbp - 0x10], r14w
mov rax, qword [rbp - 0x18]
cmp rax, qword [rdi]
je 0x140010137
mov dword [rbp - 0x18], 0x5c005c
mov dword [rbp - 0x14], 0x5c002e
mov word [rbp - 0x10], r14w
mov rax, qword [rbp - 0x18]
cmp rax, qword [rdi]
je 0x140010137
cmp dx, 0x5c
je 0x1400100fe
cmp dx, 0x2f
je 0x1400100fe
movzx ecx, dx
call fcn.140049e70
test eax, eax
je 0x14001013f
cmp word [rdi + 2], 0x3a
jne 0x14001013f
movzx eax, word [rdi + 4]
cmp ax, 0x5c
je 0x1400100f3
cmp ax, 0x2f
lea eax, [r14 + 3]
jne 0x1400100f8
mov eax, 2
mov rdi, qword [rbp - 0x58]
jmp 0x140010132
movzx eax, word [rdi + 2]
cmp ax, 0x5c
je 0x14001010e
cmp ax, 0x2f
jne 0x14001013f
cmp word [rdi + 4], 0x2e
jne 0x14001013f
movzx eax, word [rdi + 6]
cmp ax, 0x5c
je 0x140010129
cmp ax, 0x2f
je 0x140010129
xor al, al
jmp 0x14001012b
mov al, 1
neg al
sbb eax, eax
and eax, 6
cmp eax, 6
jne 0x14001013f
add rdi, 8
mov qword [rbp - 0x58], rdi
lea rax, [rbp - 0x50]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x58]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140010160
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
lea rcx, [rbp - 0x50]
call fcn.140004560
mov edi, 4
mov dword [rbp - 0x60], edi
and edi, 0xfffffffb
mov dword [rbp - 0x60], edi
or edi, 2
mov dword [rbp - 0x60], edi
and edi, 0xfffffffd
mov dword [rbp - 0x60], edi
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.14000fdc0
or edi, 1
mov dword [rbp - 0x60], edi
test rbx, rbx
je 0x1400101bd
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14003d1d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, str.Failed_to_get_known_folder_path
lea rcx, [rbp - 0x50]
call fcn.14000a4d0
lea rdx, [0x140088b78]
lea rcx, [rbp - 0x50]
call fcn.14003fdc8
int3
Function at 0x140010ce0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [r11 - 0x48], r14d
cmp byte [rdx + 0x90], r14b
je 0x140010e65
lea rax, [r11 - 0x40]
mov qword [r11 + 0x10], rax
lea rdi, [rdx + 0x50]
mov rdx, rdi
lea rcx, [r11 - 0x40]
call fcn.140003f50
nop
mov rbp, qword [rsp + 0x78]
lea r8, [rsp + 0x38]
mov rdx, rbx
call fcn.140012670
test al, al
je 0x140010e9d
mov byte [rsp + 0x88], r14b
lea r8, [rsp + 0x88]
movzx edx, byte [rbx + 0x44]
call fcn.140012860
mov rcx, qword [rsp + 0x78]
test eax, eax
js 0x140010eb1
cmp byte [rsp + 0x88], r14b
je 0x140010e65
mov rbp, qword [rsi + 0x138]
cmp byte [rbx + 0x4c], r14b
je 0x140010dca
mov eax, dword [rbx + 0x40]
cmp qword [rdi + 0x18], 8
jb 0x140010d8e
mov rdi, qword [rdi]
lea rdx, [rbx + 0x20]
cmp qword [rdx + 0x18], 8
jb 0x140010d9c
mov rdx, qword [rdx]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0x48]
mov r8, rdi
xor ecx, ecx
call fcn.14000fb60
cmp byte [rbx + 0x4d], 0
je 0x140010e65
test eax, eax
js 0x140010e8a
jmp 0x140010e65
cmp qword [rdi + 0x18], 8
jb 0x140010dd4
mov rdi, qword [rdi]
lea rsi, [rbx + 0x20]
cmp qword [rsi + 0x18], 8
jb 0x140010de2
mov rsi, qword [rsi]
mov ecx, 0x38
call fcn.14003d910
mov qword [rax], rbp
mov ecx, dword [rbx + 0x40]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0x48]
mov dword [rax + 0x10], ecx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x28], r14
lea rcx, [fcn.14000fb60]
mov qword [rax + 0x30], rcx
mov qword [rsp + 0x88], rax
mov ebx, 1
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14001ebe0]
xor edx, edx
xor ecx, ecx
call fcn.1400498b8
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140010e7a
mov qword [rsp + 0x88], r14
and ebx, 0xfffffffe
mov dword [rsp + 0x30], ebx
cmp dword [rsp + 0x40], 0
jne 0x140010ebf
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov dword [rsp + 0x40], r14d
mov ecx, 6
call fcn.14003b8b8
nop
mov rcx, qword [rsp + 0x78]
mov r9d, eax
mov edx, 0xd2
call fcn.14000fa00
int3
mov edx, 0xc2
mov r9d, 0x80070002
mov rcx, rbp
call fcn.14000fa00
int3
mov r9d, eax
mov edx, 0xc5
call fcn.14000fa00
int3
call fcn.140049e10
int3
Function at 0x14001f8a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
lea rax, [0x140070f58]
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 8], rsi
mov dword [rcx + 0x10], esi
mov edx, 0x105
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x14001f9e0
call fcn.140001af0
mov rcx, rax
test rax, rax
je 0x14001fa33
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x30]
lea rbp, [rsi - 1]
cmp rax, 0x10000
lea rax, [rsp + 0x30]
jae 0x14001f946
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140001ef0
jmp 0x14001f96b
mov r8, rbp
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14001f950
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1400023e0
nop
lea rdx, [0x140076f8c]
mov r8, rbp
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001f975
lea rcx, [rsp + 0x20]
call fcn.140002220
mov r8d, 0xc
lea rdx, str.kernel32.dll
lea rcx, [rsp + 0x20]
call fcn.140002220
mov edx, 0x5c
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14003f274
test rax, rax
je 0x14001f9c9
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x14001f9e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi + 8]
cmp rsi, rax
je 0x14001f9f9
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov qword [rdi + 8], rsi
mov rax, rsi
test rax, rax
jne 0x14001fa07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x10], eax
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14003d1d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400019c0
int3
Function at 0x14002a900
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14008b020]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, [rbp + 0x2f]
call fcn.140025560
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov r8d, 4
lea rdx, [0x140072a88]
lea rcx, [rbp - 0x11]
call fcn.140004560
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov r8d, 0x10
lea rdx, str.UserDataMigrated
lea rcx, [rbp + 0xf]
call fcn.140004560
nop
xor ebx, ebx
mov qword [rbp - 0x19], rbx
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002aa0b
mov eax, dword [rbp - 1]
lea eax, [rax*2 + 2]
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [rbx + 1]
xor r8d, r8d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14002aa4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aa46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ab1d
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x1f], xmm0
mov word [rbp + 0xf], bx
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x14002aa9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aa97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ab23
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp - 1], xmm0
mov word [rbp - 0x11], bx
mov rdx, qword [rbp + 0x47]
cmp rdx, 8
jb 0x14002aae9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002aae4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002ab17
call fcn.14003d1f0
movdqa xmm0, xmmword [0x14007dc60]
movdqu xmmword [rbp + 0x3f], xmm0
mov word [rbp + 0x2f], bx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14003d1d0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
call fcn.14004930c
nop
call fcn.14004930c
nop
call fcn.14004930c
int3