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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x80
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx]
call qword [rax + 0x28]
test al, al
je 0x140028f69
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + htons]
nop
mov qword [rsp + 0x68], shutdown
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], r14b
xor bpl, bpl
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140028eaf
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rdi
call qword [rax + htons]
movzx ebp, al
mov rcx, rsi
call fcn.140028f90
mov qword [rsp + 0x30], r14
mov r9d, 2
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test bpl, bpl
je 0x140028eef
mov rax, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
jmp 0x140028f02
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140028eff
mov rdx, qword [rdi]
jmp 0x140028f02
mov rdx, rdi
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x38]
mov r8d, eax
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140028f3b
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rdi
call qword [rax + 0x10]
nop
cmp qword [rsp + 0x68], 0x10
jb 0x140028f4d
mov rcx, qword [rsp + 0x50]
call fcn.14007f05c
mov qword [rsp + 0x68], shutdown
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], 0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14002a090
Capabilities:
Get file version info
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x260], rax
lea rdx, [rbp + 0x50]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r14d, r14d
test eax, eax
jne 0x14002a0dc
xor eax, eax
jmp 0x14002a24f
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test eax, eax
je 0x14002a0d5
mov ecx, ebx
call fcn.140055b1c
mov rdi, rax
test rax, rax
je 0x14002a0d5
mov edx, dword [rsp + 0x38]
lea rcx, [rbp + 0x50]
mov r9, rax
mov r8d, ebx
mov esi, r14d
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14002a245
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002a245
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov r8d, dword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
or r10, 0xffffffffffffffff
shr r8, 2
mov rcx, r14
mov rbx, r10
mov rdx, r10
test r8, r8
je 0x14002a19a
cmp word [r9 + rcx*4], ax
jne 0x14002a170
mov rbx, rcx
jmp 0x14002a179
cmp word [r9 + rcx*4], r14w
cmove rdx, rcx
inc rcx
cmp rcx, r8
jb 0x14002a164
cmp rbx, r10
jne 0x14002a1a6
cmp rdx, r10
je 0x14002a190
mov rbx, rdx
jmp 0x14002a19d
test r8, r8
je 0x14002a19a
mov rbx, r14
jmp 0x14002a1a6
mov rbx, r10
cmp rbx, r10
je 0x14002a245
movzx eax, word [r9 + rbx*4 + 2]
movzx r9d, word [r9 + rbx*4]
lea r8, str.StringFileInfo_04x_04xProductName
lea rcx, [rsp + 0x50]
mov edx, pe_nt_image_headers64
mov dword [rsp + 0x20], eax
call fcn.1400807f0
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002a245
mov rcx, qword [rsp + 0x30]
mov esi, 1
call fcn.14002a028
mov rcx, qword [rsp + 0x48]
lea r8, str.StringFileInfo_04x_04xProductVersion
movzx eax, word [rcx + rbx*4 + 2]
movzx r9d, word [rcx + rbx*4]
lea edx, [rsi + 0x7f]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], eax
call fcn.1400807f0
lea r9, [rsp + 0x3c]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14002a23e
mov rcx, qword [rsp + 0x30]
jmp 0x14002a240
xor ecx, ecx
call fcn.14002a064
mov rcx, rdi
call fcn.14007efdc
mov eax, esi
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002b5dc
Capabilities:
Terminate process

Disassembly:
mov edx, 1
jmp 0x14002bd88
sub rsp, 0x78
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
cmp dword [rax], 0xc00000fd
je 0x14002be0b
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400376c4
lea rcx, [rsp + 0x20]
call fcn.14002bc4c
lea rcx, [rsp + 0x48]
call fcn.14002e2d8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14002bdda
mov rax, qword [rcx]
call qword [rax + 0x10]
test dword [0x1400e9488], 0x200
je 0x14002bdeb
call fcn.14002bce4
mov ecx, dword [0x1400e9698]
dec ecx
je 0x14002be0b
dec ecx
je 0x14002be1f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007e1c0
add rsp, 0x78
ret
mov eax, 1
jmp 0x14002be0d

Function at 0x14002b610
Capabilities:
Terminate process

Disassembly:
mov edx, 2
jmp 0x14002bd88

Function at 0x14002b644
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
cmp dword [0x1400ea930], ebx
jne 0x14002b660
lea eax, [rbx + 1]
jmp 0x14002b73b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002b739
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea rax, [rsp + 0x40]
lea edx, [r9 + 3]
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14002b72e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002b72e
mov ecx, dword [rsp + 0x40]
call fcn.140055b1c
mov rdi, rax
test rax, rax
je 0x14002b72e
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r8, rdi
mov edx, 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002b726
mov ecx, ebx
cmp dword [rdi], ebx
jbe 0x14002b707
mov eax, ecx
inc ecx
inc rax
lea rax, [rax + rax*2]
or dword [rdi + rax*4], 2
cmp ecx, dword [rdi]
jb 0x14002b6f4
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ebx, eax
mov rcx, rdi
call fcn.14007efdc
mov rcx, qword [rsp + 0x48]
call qword [0x1400b4580]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002bce4
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
mov rbx, rax
call fcn.1400809a0
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x18]
mov dword [rsp + 0x70], WSAGetLastError
call fcn.1400809a0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14002bd78
mov rcx, qword [rsp + 0x58]
call qword [0x1400b4580]
mov rcx, qword [rsp + 0x50]
call qword [0x1400b4580]
mov eax, 1
add rsp, 0xe0
pop rbx
ret

Function at 0x14002bd88
Capabilities:
Terminate process

Disassembly:
mov edx, 1
jmp 0x14002bd88
sub rsp, 0x78
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
cmp dword [rax], 0xc00000fd
je 0x14002be0b
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400376c4
lea rcx, [rsp + 0x20]
call fcn.14002bc4c
lea rcx, [rsp + 0x48]
call fcn.14002e2d8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14002bdda
mov rax, qword [rcx]
call qword [rax + 0x10]
test dword [0x1400e9488], 0x200
je 0x14002bdeb
call fcn.14002bce4
mov ecx, dword [0x1400e9698]
dec ecx
je 0x14002be0b
dec ecx
je 0x14002be1f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007e1c0
add rsp, 0x78
ret
mov eax, 1
jmp 0x14002be0d

Function at 0x14002bf34
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x458
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r9d, 1
lea rdx, [rsp + 0x230]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002bfb3
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov r8d, 1
call fcn.14002eb14
test rax, rax
je 0x14002bfb3
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x230]
lea rcx, [0x1400ea300]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, str.reports
lea rcx, [0x1400ea300]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14007e1c0
add rsp, 0x458
ret

Function at 0x14002c390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8d, dword [rcx + 0xa18]
mov rbx, rcx
test r8d, r8d
je 0x14002c3ce
and qword [rsp + 0x20], 0
lea rdx, [rcx + 0x218]
mov rcx, qword [rcx + 0x210]
lea r9, [rsp + 0x40]
add r8d, r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
and dword [rbx + 0xa18], 0
add rsp, 0x30
pop rbx
ret
Function at 0x14002c5e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, dword [rcx + 0xa2c]
xor ebp, ebp
lea rsi, [rcx + 0xa28]
lea r15, [rcx + 0xc38]
mov r13, rdx
mov dword [rsi], eax
mov rax, qword [rcx + 0xa20]
mov rdi, rcx
mov r12d, ebp
mov dword [r15], 0x104
lea r14, [rcx + 0xa30]
xor edx, edx
jmp 0x14002c7ae
cmp eax, 0xea
jne 0x14002c6ab
mov ebx, dword [rsi]
add ebx, 0x3ff
and ebx, 0xfffffc00
mov ecx, ebx
call fcn.140080fc8
mov rbp, rax
test rax, rax
je 0x14002c790
mov rcx, qword [rdi + 0xa20]
call fcn.14007ed08
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x70]
mov qword [rdi + 0xa20], rbp
xor ebp, ebp
mov qword [rsp + 0x28], rax
mov r9, r15
mov r8, r14
mov edx, r12d
mov rcx, r13
mov dword [rdi + 0xa2c], ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14002c792
mov rcx, rdi
cmp word [r14], bp
je 0x14002c6ea
lea rdx, [0x1400b53b4]
call fcn.14002c450
mov rdx, r14
mov rcx, rdi
mov ebx, eax
call fcn.14002c450
lea rdx, [0x1400b53b8]
mov rcx, rdi
add ebx, eax
call fcn.14002c450
add ebx, eax
jmp 0x14002c6f8
lea rdx, [0x1400b53c0]
call fcn.14002c450
mov ebx, eax
mov edx, dword [rsp + 0x70]
mov eax, edx
dec eax
je 0x14002c752
dec eax
je 0x14002c73a
dec eax
je 0x14002c738
dec eax
jne 0x14002c73a
mov rax, qword [rdi + 0xa20]
lea rbx, [rdi + 0xc3c]
lea r8, str.dword:_08x
mov r9d, dword [rax]
mov edx, pe_nt_image_headers64
mov rcx, rbx
call fcn.1400807f0
mov rdx, rbx
jmp 0x14002c777
xor edx, edx
mov r9d, dword [rsi]
mov r8, qword [rdi + 0xa20]
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.14002c4c8
jmp 0x14002c77f
lea rdx, [0x1400b53b4]
mov rcx, rdi
call fcn.14002c450
mov rdx, qword [rdi + 0xa20]
mov rcx, rdi
call fcn.14002c450
lea rdx, [0x1400b53b4]
mov rcx, rdi
call fcn.14002c450
lea rdx, [0x1400b53e0]
mov rcx, rdi
call fcn.14002c450
jmp 0x14002c792
xor ebp, ebp
mov dword [r15], 0x104
mov eax, dword [rdi + 0xa2c]
inc r12d
mov dword [rsi], eax
mov rax, qword [rdi + 0xa20]
mov edx, r12d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, r15
mov r8, r14
mov rcx, r13
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x14002c63d
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002c808
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [0x1400b53e8]
mov ebx, r8d
mov rsi, rcx
call fcn.14002c450
mov rdx, qword [rsi + 0x208]
mov rcx, rsi
call fcn.14002c450
lea rdx, [0x1400c83e4]
mov rcx, rsi
call fcn.14002c450
mov rdx, rsi
mov rcx, rsi
call fcn.14002c450
lea rdx, [0x1400b53f0]
mov rcx, rsi
call fcn.14002c450
mov rdx, rdi
mov rcx, rsi
call fcn.14002c5e4
lea rdx, [0x1400b53e0]
mov rcx, rsi
call fcn.14002c450
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14002c8a4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea edi, [r8 + 1]
mov rbp, rdx
mov rbx, rcx
cmp edi, 0x104
jae 0x14002c9aa
mov eax, r8d
mov ecx, 0x5c
mov r13d, edi
mov word [rbx + rax*2], cx
xor eax, eax
lea rsi, [rbx + 0xc38]
lea r12, [rbx + 0xd3c]
lea r15, [rbx + 0xa30]
xor edx, edx
mov r14d, eax
jmp 0x14002c96d
test eax, eax
jne 0x14002c965
mov edx, 0x104
lea rcx, [rbx + rdi*2]
mov r8, r15
sub rdx, r13
call fcn.140080bcc
lea rax, [rsp + 0x88]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c965
mov r8d, dword [rsi]
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
add r8d, edi
call fcn.14002c808
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
xor eax, eax
mov edx, r14d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsi], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14002c903
lea ecx, [rdi - 1]
xor eax, eax
mov word [rbx + rcx*2], ax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002c8a4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
lea rdx, [0x1400b53e8]
mov ebx, r8d
mov rsi, rcx
call fcn.14002c450
mov rdx, qword [rsi + 0x208]
mov rcx, rsi
call fcn.14002c450
lea rdx, [0x1400c83e4]
mov rcx, rsi
call fcn.14002c450
mov rdx, rsi
mov rcx, rsi
call fcn.14002c450
lea rdx, [0x1400b53f0]
mov rcx, rsi
call fcn.14002c450
mov rdx, rdi
mov rcx, rsi
call fcn.14002c5e4
lea rdx, [0x1400b53e0]
mov rcx, rsi
call fcn.14002c450
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14002c8a4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea edi, [r8 + 1]
mov rbp, rdx
mov rbx, rcx
cmp edi, 0x104
jae 0x14002c9aa
mov eax, r8d
mov ecx, 0x5c
mov r13d, edi
mov word [rbx + rax*2], cx
xor eax, eax
lea rsi, [rbx + 0xc38]
lea r12, [rbx + 0xd3c]
lea r15, [rbx + 0xa30]
xor edx, edx
mov r14d, eax
jmp 0x14002c96d
test eax, eax
jne 0x14002c965
mov edx, 0x104
lea rcx, [rbx + rdi*2]
mov r8, r15
sub rdx, r13
call fcn.140080bcc
lea rax, [rsp + 0x88]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c965
mov r8d, dword [rsi]
mov rdx, qword [rsp + 0x88]
mov rcx, rbx
add r8d, edi
call fcn.14002c808
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r14d
xor eax, eax
mov edx, r14d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8, r15
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsi], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14002c903
lea ecx, [rdi - 1]
xor eax, eax
mov word [rbx + rcx*2], ax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14002e7ec
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rbx, rcx
mov rdx, rcx
lea r8, [0x1400b5514]
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x380]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14002e8e9
test byte [rsp + 0x20], 0x10
je 0x14002e8a4
lea rdx, [0x1400c8ae4]
lea rcx, [rsp + 0x4c]
call fcn.1400812e8
test eax, eax
je 0x14002e8ca
lea rdx, [0x1400b5518]
lea rcx, [rsp + 0x4c]
call fcn.1400812e8
test eax, eax
je 0x14002e8ca
lea r8, [rsp + 0x4c]
lea rcx, [rbp + 0x170]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x170]
call fcn.14002e7ec
jmp 0x14002e8c6
lea r8, [rsp + 0x4c]
lea rcx, [rbp + 0x170]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14002e8e0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14002e850
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14002e91c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002e957
xor eax, eax
jmp 0x14002e9c9
mov r9, rax
lea rcx, [rsp + 0x20]
mov r8, rdi
sub r9, rdi
mov edx, 0x104
sar r9, 1
call fcn.14008140c
cmp word [rbx], si
je 0x14002e9c4
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindNextComponentW]
lea rcx, [rsp + 0x20]
mov r8, rbx
mov r9, rax
mov edx, 0x104
mov rdi, rax
sub r9, rbx
sar r9, 1
call fcn.140081324
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002e9bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002e953
cmp word [rdi], si
mov rbx, rdi
jmp 0x14002e975
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002ea54
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [rsp + 0x20], eax
jmp 0x14002eaba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002eb0a
inc ebx
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x30]
lea r8, str._sTEMP_lu
mov rdx, rsi
mov rcx, rdi
call fcn.1400807f0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002eaa7
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e1c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x14002eae5

Function at 0x14002ec90
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x660
mov rax, qword [0x1400e5430]
xor rax, rsp
mov qword [rsp + 0x650], rax
xor r15d, r15d
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x14002ecef
cmp word [rdx], r15w
je 0x14002ecef
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x14002ecef
mov r8, rbx
mov edx, 0x104
mov rcx, rsi
call fcn.140080bcc
mov eax, 1
jmp 0x14002edca
mov r9d, 1
lea rdx, [rsp + 0x440]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002edc8
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov r8d, 1
call fcn.14002eb14
test rax, rax
je 0x14002edc8
lea rdx, [rsp + 0x230]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14002edc8
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
mov r14, rax
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp word [rsp + 0x20], r15w
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x440]
cmove r8, r14
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test rbx, rbx
je 0x14002ed9f
cmp word [rbx], r15w
je 0x14002ed9f
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x14002ece5
test rbp, rbp
je 0x14002edc8
cmp word [rbp], 0x2e
jne 0x14002edc8
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
jmp 0x14002ece5
xor eax, eax
mov rcx, qword [rsp + 0x650]
xor rcx, rsp
call fcn.14007e1c0
add rsp, 0x660
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x14002f260
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rcx
lea r8, [fcn.140030ff4]
xor edx, edx
xor ecx, ecx
call fcn.14008020c
add rsp, 0x38
ret