joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001c5d0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
lea rbx, [0x18002d754]
xor r14d, r14d
mov r13, rcx
cmp rdx, r14
mov rdi, rbx
lea rcx, [0x1800379c2]
cmovne rdi, rdx
cmp r8, r14
cmovne rbx, r8
call fcn.1800087b4
cmp rax, r14
mov rsi, rax
je 0x18001c703
mov qword [rsp + 0x30], rbx
lea r9, [0x180037ab2]
lea r8, [0x180037d80]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll__snwprintf]
cmp eax, r14d
jle 0x18001c6ea
mov rcx, qword [0x1800339a8]
lea r12d, [rax + 1]
xor edx, edx
lea r8d, [r12 + r12]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r14
mov rbp, rax
je 0x18001c6e3
mov qword [rsp + 0x30], rbx
lea r9, [0x180037ab2]
lea r8, [0x180037d80]
movsxd rdx, r12d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll__snwprintf]
lea rdx, [0x1800366e0]
mov r9, rbp
mov r8, rsi
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [0x1800339a8]
cmp eax, 0x20
mov rbx, rax
cmovg ebx, r14d
mov eax, 0x3e5
mov r8, rbp
cmp ebx, r14d
cmove ebx, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001c6ef
mov ebx, 8
jmp 0x18001c6ef
mov ebx, 0x57
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001c708
mov ebx, 8
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x18001c750
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov eax, dword [0x180033b9c]
and dword [rsp + 0x48], 0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov rdi, rcx
call fcn.180012f70
lea rdx, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x48]
test edx, edx
je 0x18001c7e0
mov rcx, qword [0x1800339a8]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001c7e0
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x18001c7ce
mov edx, dword [rsp + 0x48]
mov rcx, rbx
add edx, edx
call fcn.180014d10
xor dword [rdi], eax
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and dword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x48]
test edx, edx
je 0x18001c84c
mov rcx, qword [0x1800339a8]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18001c84c
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x18001c83a
mov edx, dword [rsp + 0x48]
mov rcx, rbx
add edx, edx
call fcn.180014d10
xor dword [rdi + 0xc], eax
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
cpuid
mov r8d, eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x24], ebx
mov rbx, qword [rsp + 0x50]
xor eax, edx
xor eax, ecx
xor eax, r8d
mov dword [rdi + 4], eax
add rsp, 0x30
pop rdi
ret
Function at 0x18001ca18
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
test byte [0x18003212c], 4
je 0x18001ca4c
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x121
call fcn.18000d3c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x120
call fcn.18000d3c8
mov rcx, qword [0x180033bb0]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180033b30]
lea rdx, [0x180016888]
mov r9d, 1
xor r8d, r8d
call fcn.1800204e8
xor edi, edi
cmp eax, edi
mov ebp, eax
jne 0x18001cb69
mov ecx, 0xd3
call fcn.180015180
cmp rax, rdi
mov rbx, rax
je 0x18001cb69
xor edx, edx
mov rcx, rax
call fcn.180024ac0
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rsi, rdi
je 0x18001cb69
lea rax, [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea r8, [rsp + 0x30]
lea rdx, [0x180037f10]
xor r9d, r9d
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov word [rax], di
mov dword [rsp + 0x20], edi
call fcn.18001537c
cmp eax, edi
mov r12d, eax
je 0x18001cb57
mov rdi, qword [rsp + 0x30]
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 8]
mov r11, qword [rbx]
mov qword [rcx], r11
mov qword [r11 + 8], rcx
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add r12d, 0xffffffff
jne 0x18001cb21
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop r12
ret
Function at 0x18001dfb8
Capabilities:
Access pe header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
cmp edx, 0x1000
mov eax, dword [0x180033b9c]
mov r12d, edx
mov dword [rsp + 0x88], eax
mov r13, rcx
jbe 0x18001e161
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
mov rbp, rax
je 0x18001e161
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.180018a50
test eax, eax
mov ebx, eax
jne 0x18001e166
mov rdi, qword [0x1800339c8]
test rdi, rdi
je 0x18001e03d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x18001e03d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi + 0x28], 0
bt word [rbp + 0x16], 0xd
mov rsi, qword [rsp + 0x30]
mov rdx, qword [0x180033e68]
lea rax, [0x180037ea8]
lea r14, [0x180037ef0]
mov r9, r13
cmovae r14, rax
lea rax, [rsp + 0x98]
mov rcx, rsi
mov qword [rsp + 0x28], rax
mov r8, r14
mov dword [rsp + 0x20], r12d
call fcn.180019b8c
test eax, eax
mov ebx, eax
je 0x18001e0d8
lea rdx, [rsp + 0x88]
lea rcx, [0x180033e68]
call fcn.180029ae4
test eax, eax
je 0x18001e0d4
mov eax, dword [rsp + 0x90]
mov r9, r13
mov r8, r14
and word [rsi + rax*2], 0
mov rdx, qword [0x180033e68]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.180019b8c
mov ebx, eax
test ebx, ebx
jne 0x18001e13a
test rdi, rdi
je 0x18001e0e9
mov rax, qword [rsp + 0x98]
mov qword [rdi + 0x28], rax
bt word [rbp + 0x16], 0xd
jae 0x18001e10d
lea rdx, [0x18003774d]
mov rcx, rsi
call fcn.180003d54
test rax, rax
mov rbp, rax
jne 0x18001e112
lea ebx, [rax + 8]
jmp 0x18001e112
mov rbp, rsi
xor esi, esi
test ebx, ebx
jne 0x18001e13a
lea edx, [rbx + 1]
mov rcx, rbp
call fcn.1800206d8
cmp rbp, rsi
mov ebx, eax
je 0x18001e13a
mov rcx, qword [0x1800339a8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x18001e148
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x18001e166
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001e166
mov ebx, 0xb
mov eax, ebx
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001e71c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
mov rbp, r8
mov r12, rdx
mov rdx, rcx
lea r8, [rax - 0x18]
mov rcx, 0xffffffff80000001
mov esi, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov ebx, eax
jne 0x18001e817
test rbp, rbp
je 0x18001e7e8
test esi, esi
je 0x18001e7e8
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18001e7e1
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x70], ebx
je 0x18001e7ab
mov r8d, dword [0x180033b9c]
xor r9d, r9d
mov edx, esi
mov rcx, rdi
call fcn.180015164
mov rcx, qword [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001e80c
mov ebx, 8
jmp 0x18001e80c
and dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r9d, 3
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x18001ee14
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [0x180033b20]
mov r12d, r8d
mov rdi, rdx
lea r8, [rax - 0x18]
mov edx, 1
mov ebp, r9d
call fcn.18002a0d4
test eax, eax
mov ebx, eax
jne 0x18001ee8c
test rdi, rdi
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
je 0x18001ee79
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x18001ee7f
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret
Function at 0x18001eeac
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov ebx, 8
mov dword [rsp + 0x78], 0x104
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x1800339a8]
xor edx, edx
mov r8d, 0x208
mov esi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18001f091
mov rcx, qword [0x1800339a8]
lea r8d, [rsi + rsi + 0xa]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
mov qword [rsp + 0x30], rax
je 0x18001f07a
mov rcx, qword [0x1800339a8]
xor edx, edx
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18001f068
mov r8, qword [0x180033bd0]
mov rdx, qword [rsp + 0x60]
lea rcx, [0x180036df8]
add r8, rcx
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
jne 0x18001ef80
lea ebx, [rax + 4]
jmp 0x18001f056
xor ebx, ebx
lea rax, [rsi + 0x2c]
cmp word [rax], 0x2e
je 0x18001f02b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [rsp + 0x20]
lea ebp, [rax + rcx + 2]
cmp dword [rsp + 0x78], ebp
jae 0x18001efd9
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800339a8]
lea r8d, [rbp + rbp]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x18001f042
mov dword [rsp + 0x78], ebp
mov rdx, qword [rsp + 0x60]
lea r8, [rsi + 0x2c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [rsi], 0x10
mov rcx, rdi
je 0x18001f01b
mov ebp, dword [rsp + 0x70]
mov edx, 1
mov r8d, ebp
call fcn.18001eeac
test eax, eax
mov ebx, eax
jne 0x18001f051
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18001f02b
test ebp, ebp
jmp 0x18001f029
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001f02b
cmp dword [rsp + 0x70], eax
je 0x18001f049
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x18001f051
jmp 0x18001ef82
mov ebx, 8
jmp 0x18001f051
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x30]
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800339a8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x18001f091
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001f0a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x18001f101
lea rcx, [0x18003691e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18003728f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001f16f
lea rdx, [0x18001abf8]
mov r9, rdi
mov r8, rsi
xor ecx, ecx
call rax
test eax, eax
jne 0x18001f16f
jmp 0x18001f166
cmp qword [0x180033c40], 0
jne 0x18001f11c
call fcn.180001950
test rax, rax
mov qword [0x180033c40], rax
je 0x18001f16f
mov rcx, qword [0x1800339a8]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18001f16a
mov rdx, qword [0x180033c40]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rax + 0x18], rsi
lea rcx, [0x18001abf8]
mov qword [rax + 0x10], rcx
mov qword [rdi], rax
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov qword [rax], rdx
mov qword [rcx], rax
mov qword [rdx + 8], rax
xor ebx, ebx
jmp 0x18001f16f
mov ebx, 8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001f3cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rdx, qword [0x180033b38]
lea r8, [rsp + 0x50]
xor ebx, ebx
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x18001f4a2
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800373f9]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x40], ebx
je 0x18001f497
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x18001f497
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x1800373f9]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x18001f485
mov edx, dword [rsp + 0x40]
mov rcx, rdi
call fcn.180014d10
not eax
mov ebx, eax
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18001f65c
Capabilities:
Create process on windows

Disassembly:
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, 0x30
mov r14, rdx
xor r15d, r15d
xor edx, edx
mov rsi, r9
mov r13d, r8d
mov r12, rcx
mov rbx, r15
mov edi, 8
call fcn.180024ac0
cmp rax, r15
mov rbp, rax
je 0x18001f72c
cmp rsi, r15
je 0x18001f6b9
xor edx, edx
mov rcx, rsi
call fcn.180024ac0
cmp rax, r15
mov rbx, rax
je 0x18001f71a
mov r9d, 1
mov r8d, r13d
mov rdx, r14
mov rcx, r12
call fcn.180012328
cmp eax, r15d
mov edi, eax
jne 0x18001f703
mov ecx, dword [rsp + 0x80]
lea rdx, [0x1800366e0]
mov r9, rbx
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov r8, rbp
mov qword [rsp + 0x20], r15
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdi, rax
cmp eax, 0x20
cmovg edi, r15d
cmp rbx, r15
je 0x18001f71a
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800339a8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x18001fd94
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rbp, rcx
mov ecx, 0x929
mov esi, r9d
mov r12d, r8d
mov r13, rdx
mov edi, 0x3ee
call fcn.180015180
test rax, rax
mov rbx, rax
je 0x18001fe14
mov r9d, 1
mov r8d, r12d
mov rdx, r13
mov rcx, rax
call fcn.180012328
test eax, eax
mov edi, eax
jne 0x18001fdf9
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call fcn.180013980
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1800201ec
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12d, r8d
mov r13d, edx
mov r14, rcx
mov rbx, qword [0x180033a40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
test rbx, rbx
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsp + 0x20]
bswap r11d
mov byte [rsp + 0x28], r12b
bswap eax
mov dword [rsp + 0x20], r11d
mov dword [rsp + 0x24], eax
je 0x180020252
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x180020254
xor edi, edi
mov rcx, qword [0x1800339a8]
lea ebp, [rdi + 1]
xor edx, edx
mov r8d, ebp
add r8, 0x13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18002030b
test rbx, rbx
je 0x1800202c9
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rsi
call fcn.1800087b4
test rax, rax
mov rbx, rax
je 0x1800202c1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800202af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov edi, ebp
mov byte [rax + rsi], 0x5c
mov ebx, edi
lea rcx, [rsp + 0x20]
mov edx, 9
add rbx, rsi
mov r8, rbx
call fcn.18000ebdc
xor r9d, r9d
mov r8d, r13d
mov rdx, r14
mov rcx, rsi
mov byte [rbx + 0x12], 0
call fcn.180012328
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180020310
mov ebx, 8
cmp ebx, 0x50
je 0x180020212
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x1800203cc
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8d, [rdi + 3]
mov qword [rsp + 0x30], rdi
lea r9, [0x180033bd8]
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x1800204c8
lea r9d, [rdi + 1]
lea rdx, [0x1800364dd]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.18001c904
cmp rax, rdi
mov rbx, rax
je 0x1800204b8
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r8d, [rdi + 2]
lea rdx, [0x180033bd8]
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov r12d, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp rax, rdi
je 0x18002049c
mov rcx, rbx
mov dword [rsi + 0x10], edi
mov qword [rsi], rax
mov dword [rsi + 8], r12d
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsi + 0x14]
mov rdx, rbx
mov dword [rsi + 0xc], eax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x1800204a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800204bd
mov edi, 8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800204d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1800204e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor r15d, r15d
mov r13, r8
mov r14, rdx
lea r8, [rax - 0x38]
xor edx, edx
mov r12d, r9d
mov dword [rax - 0x44], r15d
mov dword [rax - 0x48], r15d
mov dword [rax - 0x40], r15d
call fcn.18002a0d4
cmp eax, r15d
mov ebx, eax
jne 0x1800206b8
mov rcx, qword [0x1800339a8]
mov edi, 0x105
xor edx, edx
mov r8, rdi
lea ebx, [r15 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rsi, rax
je 0x1800206ad
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
mov ebp, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
je 0x18002069b
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
mov r8, rsi
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x48], 0x105
mov dword [rsp + 0x40], ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
mov ebx, eax
jne 0x18002061b
cmp dword [rsp + 0x48], 0x105
jbe 0x1800205da
add dword [rsp + 0x44], 1
mov ebx, r15d
jmp 0x180020664
cmp dword [rsp + 0x40], ebp
jbe 0x180020689
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [rsp + 0x40]
mov rcx, qword [0x1800339a8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r15
mov rdi, rax
jne 0x1800205d2
mov ebx, 8
jmp 0x180020689
cmp eax, r15d
jne 0x18002067f
cmp r12d, r15d
je 0x18002063b
mov r8d, dword [0x180033b9c]
mov edx, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
call fcn.180015e14
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call r14
cmp eax, r15d
mov ebx, eax
jne 0x18002067f
mov rcx, qword [0x180033bb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180020689
jmp 0x180020579
cmp ebx, 0x103
cmove ebx, r15d
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x60]
mov eax, ebx
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