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

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, r9
call fcn.140009580
mov qword [rsp + 0x38], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r12d, eax
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x14000e757
mov dword [rsp + 0x34], 1
mov ecx, 0x100
mov dword [rsp + 0x30], ecx
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.14002560c
mov rbp, rax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
cmp eax, 0xea
jne 0x14000e71d
mov rcx, rbp
call fcn.1400268f8
mov edx, dword [rsp + 0x30]
mov eax, 2
mul rdx
cmovo rax, rsi
mov rcx, rax
call fcn.14002560c
mov rbp, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test r12d, r12d
jne 0x14000e744
test rbp, rbp
je 0x14000e744
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbp
mov rcx, r13
call fcn.14000a480
mov rcx, rbp
call fcn.1400268f8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r12d, r12d
sete dil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14000e776
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, dil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x14000eba0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x58
xor edx, edx
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000ec34
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x68]
lea rdx, str.Flags
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret

Function at 0x14000ec40
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
xor edx, edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor r9d, r9d
mov rcx, 0xffffffff80000001
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000eccf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x78]
lea rdx, str.Version
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140010250
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140010440
sub rsp, 0x28

Function at 0x140010440
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140010440
sub rsp, 0x28

Function at 0x140010910
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [str.__t], rax
test rax, rax
jne 0x140010935
add rsp, 0x38
ret
lea rax, [rsp + 0x40]
lea r9, str.w9CY
lea r8, [0x140010990]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140010979
mov rcx, qword [str.__t]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140010c40
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x30280
call fcn.1400296b0
sub rsp, rax
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x30270], rax
mov rbp, rdx
mov rsi, rcx
xor edi, edi
mov rcx, rbp
xor edx, edx
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x20272]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0x20270], di
call fcn.140029480
lea rdx, str.__s
lea rcx, [rsp + 0x20270]
mov r8, rsi
call fcn.14001d7d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140010d9e
cmp word [rsp + 0x4c], 0x2e
je 0x140010d7f
xor eax, eax
lea rcx, [rsp + 0x10272]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0x10270], ax
call fcn.140029480
xor eax, eax
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0xfffc
mov word [rsp + 0x270], ax
call fcn.140029480
lea r9, [rsp + 0x4c]
lea rdx, str._s_s
lea rcx, [rsp + 0x10270]
mov r8, rsi
call fcn.14001d7d0
lea r9, [rsp + 0x4c]
lea rdx, str._s_s
lea rcx, [rsp + 0x270]
mov r8, rbp
call fcn.14001d7d0
test byte [rsp + 0x20], 0x10
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x10270]
je 0x140010d70
call fcn.140010c40
jmp 0x140010d7f
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140010d7f
inc ebx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140010cd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rsp + 0x30270]
xor rcx, rsp
call fcn.140025aa0
mov rbx, qword [rsp + 0x302b0]
add rsp, 0x30280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0xc0], edi
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
mov dword [rsp + 0xc0], 1
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140043fe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012d3c
mov dword [rsp + 0xb8], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [rsp + 0xb8]
test eax, eax
je 0x140012d31
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rsi, 0xffffffffffffffff
cmovo rax, rsi
mov rcx, rax
call fcn.14002560c
mov rbx, rax
test rax, rax
je 0x140012d31
mov word [rax], di
mov dword [rsp + 0xc8], 1
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xc8]
xor r8d, r8d
lea rdx, str.useLocale
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012d29
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
test rbx, 0xffffffffffff0000
jne 0x140012cde
movzx edi, bx
mov ecx, edi
call fcn.140003200
test rax, rax
je 0x140012cfe
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000a630
jmp 0x140012cfe
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14000a480
nop
lea rdx, [rsp + 0x68]
mov rcx, rbp
call fcn.1400066b0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140012d29
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, rbx
call fcn.1400268f8
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbp
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012d50
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
cmp eax, 0xffffffff
je 0x140012e01
xor ecx, ecx
mov dword [rsp + 0x48], ecx
mov word [rsp + 0x4c], cx
mov ecx, 0x409
mov word [rsp + 0x20], cx
mov r9d, 6
lea r8, [rsp + 0x48]
lea edx, [r9 - 2]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x48]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14000a480
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140025aa0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140012e20
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x268], rbx
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
mov word [rsp + 0x40], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov r9d, 0x200
lea r8, [rsp + 0x40]
mov edx, 0x59
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
test rax, 0xffffffffffff0000
jne 0x140012eca
movzx edi, cx
mov ecx, edi
call fcn.140003200
test rax, rax
je 0x140012ec8
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.14000a630
nop
jmp 0x140012eed
jmp 0x140012eed
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14000a480
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140025aa0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140013080
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rbx, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
xor ebp, ebp
or rsi, 0xffffffffffffffff
test rbx, rbx
je 0x140013104
test rbx, 0xffffffffffff0000
jne 0x1400130f1
movzx edi, bx
mov ecx, edi
call fcn.140003200
test rax, rax
je 0x14001311a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.14000a630
jmp 0x14001311a
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x140013106
mov ecx, ebp
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.14000a480
nop
lea rcx, [rsp + 0x88]
call fcn.140019b40
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000aac0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x90], rbx
test rbx, rbx
je 0x140013156
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
mov r8d, ebp
mov rdx, rbx
lea rcx, [rsp + 0x88]
call fcn.14000a480
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013184
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax - 0x10]
add ecx, 2
movsxd rdi, ecx
add rdi, rdi
mov rcx, rdi
call fcn.140026094
mov rbx, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140029480
mov rdx, qword [rsp + 0x88]
mov rax, rbx
nop dword [rax + rax]
movzx ecx, word [rdx]
mov word [rax], cx
add rdx, 2
add rax, 2
test cx, cx
jne 0x1400131c0
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 3
mov qword [rsp + 0x38], rbx
mov eax, 0x614
mov word [rsp + 0x48], ax
lea rcx, [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
mov rcx, rbx
call fcn.140026010
nop
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x140013245
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013260
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push rbx
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
lea r8d, [r9 + 0x1b]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140013305
lea r9, [0x140056980]
lea r8, [rsp + 0x40]
lea rdx, str._s_s
mov rcx, rbx
call fcn.14000b330
mov rcx, qword [rbx]
call qword [0x140040530]
test eax, eax
jne 0x140013305
xor r8d, r8d
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140025aa0
add rsp, 0x260
pop rbx
ret

Function at 0x140013330
Capabilities:
Create directory

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
mov dword [rsp + 0x50], 0
mov rax, qword [0x1400599e8]
cmp dword [rax - 0x10], 0
jne 0x14001340c
lea rcx, [rsp + 0x50]
call fcn.140013260
nop
mov rax, qword [rsp + 0x50]
or ebx, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x1400133ef
lea rcx, [rsp + 0x58]
call fcn.140013060
nop
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [0x140043f88]
mov r8, qword [rsp + 0x50]
lea rdx, str._s_s_s
lea rcx, [0x1400599e8]
call fcn.14000b330
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400133cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x1400599e8]
call qword [0x140040530]
test eax, eax
jne 0x1400133ef
xor r8d, r8d
mov rdx, qword [0x1400599e8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14001340c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [0x1400599e8]
mov rcx, rdi
call fcn.140009610
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140013430
Capabilities:
Create directory

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
mov dword [rsp + 0x50], 0
mov rax, qword [0x140059978]
cmp dword [rax - 0x10], 0
jne 0x14001350c
lea rcx, [rsp + 0x50]
call fcn.140013260
nop
mov rax, qword [rsp + 0x50]
or ebx, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x1400134ef
lea rcx, [rsp + 0x58]
call fcn.140013060
nop
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
lea r9, [0x140043fa0]
mov r8, qword [rsp + 0x50]
lea rdx, str._s_s_s
lea rcx, [0x140059978]
call fcn.14000b330
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400134cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x140059978]
call qword [0x140040530]
test eax, eax
jne 0x1400134ef
xor r8d, r8d
mov rdx, qword [0x140059978]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14001350c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [0x140059978]
mov rcx, rdi
call fcn.140009610
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140013530
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
push rbx
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x20], 1
mov r9d, 1
lea r8d, [r9 + 0x22]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400135d5
lea r9, [0x140056980]
lea r8, [rsp + 0x40]
lea rdx, str._s_s
mov rcx, rbx
call fcn.14000b330
mov rcx, qword [rbx]
call qword [0x140040530]
test eax, eax
jne 0x1400135d5
xor r8d, r8d
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140025aa0
add rsp, 0x260
pop rbx
ret
Function at 0x140013600
Capabilities:
Create directory

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
mov dword [rsp + 0x50], 0
mov rax, qword [0x140059a10]
cmp dword [rax - 0x10], 0
jne 0x1400136ec
lea rcx, [rsp + 0x50]
call fcn.140013530
nop
mov rax, qword [rsp + 0x50]
or ebx, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x1400136cf
lea rcx, [rsp + 0x58]
call fcn.140013060
nop
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [0x140043f70]
mov qword [rsp + 0x20], rax
lea r9, [0x140043fa0]
mov r8, qword [rsp + 0x50]
lea rdx, str._s_s_s_s
lea rcx, [0x140059a10]
call fcn.14000b330
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400136ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [0x140059a10]
call qword [0x140040530]
test eax, eax
jne 0x1400136cf
xor r8d, r8d
mov rdx, qword [0x140059a10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400136ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [0x140059a10]
mov rcx, rdi
call fcn.140009610
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140013710
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movzx esi, r8b
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x58], 0
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x58], 1
lea rcx, [rsp + 0x20]
call fcn.140013330
nop
mov r9, rbx
mov r8, qword [rax]
lea rdx, str._swidgets_s_
mov rcx, rdi
call fcn.14000b330
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400137a0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test sil, sil
je 0x1400137c0
mov rcx, qword [rdi]
call qword [0x140040530]
test eax, eax
jne 0x1400137c0
xor r8d, r8d
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140013870
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rcx
mov rcx, qword [rcx]
call qword [0x140040530]
test eax, eax
je 0x140013898
mov al, 1
jmp 0x1400139d8
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov edx, 0x5c
mov rcx, qword [rdi]
call fcn.14002788c
test rax, rax
je 0x140013968
sub rax, qword [rdi]
sar rax, 1
cmp eax, 0xffffffff
je 0x140013968
mov r8d, eax
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.14000ed10
nop
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000aac0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
or rsi, 0xffffffffffffffff
test rbx, rbx
jne 0x14001390a
xor ecx, ecx
jmp 0x14001391b
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14000a480
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013947
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140013996
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140013996
mov rdx, qword [rdi]
or rsi, 0xffffffffffffffff
test rdx, rdx
jne 0x140013978
xor ecx, ecx
jmp 0x140013989
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
lea rcx, [rsp + 0x50]
call fcn.14000a480
xor bl, bl
xor r8d, r8d
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x1400139bb
cmp eax, 0xb7
je 0x1400139bb
cmp eax, 0x50
jne 0x1400139bd
mov bl, 1
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400139d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx eax, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014150
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140053100]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x48]
xor esi, esi
mov r9d, 0x20019
xor r8d, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014256
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001423f
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.140014150
test eax, eax
jne 0x140014256
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400141f0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140025aa0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret