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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rcx, qword [0x180029648]
mov r12, r8
xor edx, edx
mov r8d, 0x208
mov ebx, 8
xor edi, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180001cf9
lea r8, [rsp + 0x50]
lea rdx, [0x18002c23d]
mov rcx, 0xffffffff80000001
lea rbp, [rax + 0x104]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180001ce7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r8, rsi
mov edx, edi
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x98], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov ebx, eax
jne 0x180001cdc
cmp dword [rsp + 0x44], 1
jne 0x180001cd4
mov eax, dword [rsp + 0x98]
mov rdx, r12
mov rcx, rbp
mov byte [rax + rbp], bl
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x180001cd4
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [0x18002c23d]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180001cd1
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xffffffff
add edi, 1
jmp 0x180001c23
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180029648]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180001e20
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp edx, 0x20
mov esi, r8d
mov rbx, rcx
jb 0x180001ee1
mov r9d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x10]
add r9d, dword [rcx + 0x14]
lea r9d, [r9 + rax + 0x20]
cmp edx, r9d
jne 0x180001ee1
add qword [rcx], rcx
add qword [rcx + 8], rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180001eda
mov eax, dword [0x180029874]
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x28], rax
call fcn.180011d18
test eax, eax
mov edi, eax
jne 0x180001ee6
test esi, esi
je 0x180001ee6
mov rcx, qword [rsp + 0x50]
lea rdx, [0x18002cfe9]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001ee6
lea rcx, [0x180029028]
xor edx, edx
call rax
jmp 0x180001ee6
mov edi, 0xb
jmp 0x180001ee6
mov edi, 0x57
mov rcx, qword [0x180029648]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x18002d01c]
mov r8d, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor r9d, r9d
mov rdx, rbx
mov r8d, eax
mov ecx, 0x10d
call fcn.18000d868
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x1800022e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x180029648]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180002380
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x22]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, 1
test eax, eax
jne 0x180002334
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.1800133c4
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x20]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x18000235c
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.1800133c4
lea rcx, [0x18002c3df]
mov edx, ebx
call fcn.180001f54
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002385
mov ebx, 8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002818
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
mov rsi, r8
mov r12, rdx
cmp r8, rbx
mov r13, rcx
mov ebp, ebx
je 0x18000284d
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x180029648]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, rbx
mov rdi, rax
je 0x1800028d7
cmp ebp, ebx
mov qword [rax], r13
mov qword [rax + 8], r12
je 0x180002886
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180002889
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x1800027bc]
mov r9, rdi
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, rbx
je 0x1800028bb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800028dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800028dc
mov ebx, 8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x1800029f0
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 esi, r8d
mov ebp, edx
mov r12, rcx
mov rbx, qword [0x1800296d8]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsp + 0x20]
bswap r11d
bswap eax
mov rcx, rbx
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], r11d
mov byte [rsp + 0x28], sil
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
mov r13d, eax
lea ecx, [r13 + 1]
mov r14d, ecx
lea r8, [rcx + 0x13]
mov rcx, qword [0x180029648]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180002aff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rdi
call fcn.18001297c
test rax, rax
mov rbx, rax
je 0x180002ab8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002aa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rbx, [r14 + rdi]
lea rcx, [rsp + 0x20]
mov edx, 9
mov r8, rbx
mov byte [r13 + rdi], 0x5c
call fcn.180015be4
xor r9d, r9d
mov r8d, ebp
mov rdx, r12
mov rcx, rdi
mov byte [rbx + 0x12], 0
call fcn.180012d2c
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002b04
mov ebx, 8
cmp ebx, 0x50
je 0x180002a15
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 0x180003c78
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
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rsi, r9
mov qword [rax - 0x30], r8
and qword [rax - 0x38], 0
mov r12, rdx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [rsi]
mov rbp, r8
lea r9, [rax - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x180003d20
mov r8d, dword [rbp]
mov rcx, qword [0x180029648]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180003d1b
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x180003d07
mov qword [r12], rbx
jmp 0x180003d20
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180003d20
mov edi, 8
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x180003d44
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 rdi, rdx
mov rdx, qword [0x180029790]
mov r12d, r8d
mov rsi, rcx
lea r8, [rax - 0x18]
mov rcx, 0xffffffff80000001
mov ebp, r9d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180003dbf
test rdi, rdi
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
je 0x180003dac
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x180003db2
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 0x180003e24
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x180029788]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], eax
mov rdi, rcx
call fcn.1800155b8
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180003eb0
mov rcx, qword [0x180029648]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180003eb0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x180003e9e
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.18001d7e4
xor dword [rdi], eax
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x180003f1c
mov rcx, qword [0x180029648]
mov r8, rdx
xor edx, edx
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180003f1c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x180003f0a
mov edx, dword [rsp + 0x40]
mov rcx, rbx
add edx, edx
call fcn.18001d7e4
xor dword [rdi + 0xc], eax
mov rcx, qword [0x180029648]
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 0x180003f44
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov rdx, qword [0x180029790]
mov ebx, dword [0x180028fa8]
lea r8, [rsp + 0x60]
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
mov edi, eax
jne 0x18000400b
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea rbp, [0x180028fa8]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rdx, [0x18002c1b5]
xor r8d, r8d
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x50], 0x28
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x180003fc2
cmp dword [rsp + 0x50], 0x28
je 0x180004000
lea rcx, [0x180028fb0]
call fcn.180003e24
mov rcx, qword [rsp + 0x60]
or word [0x180028fac], 8
lea rdx, [0x18002c1b5]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x180028fa8], 0
jne 0x180004024
mov eax, 0x3e8
test ebx, ebx
cmove ebx, eax
mov dword [0x180028fa8], ebx
cmp qword [0x180029688], 0
jne 0x180004089
mov rcx, qword [0x180029648]
xor edx, edx
lea r8d, [rdx + 0x27]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [0x180029688], rax
je 0x180004089
mov edx, dword [0x180028fbc]
mov ecx, dword [0x180028fb8]
mov r9d, dword [0x180028fb4]
mov r8d, dword [0x180028fb0]
bswap edx
bswap ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], ecx
lea rdx, [0x18002c377]
bswap r9d
bswap r8d
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov eax, edi
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret

Function at 0x180004094
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
mov sil, r9b
movzx ebp, r8w
mov edi, ecx
mov ebx, 0x57
jne 0x1800040c9
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
test eax, eax
mov edi, eax
je 0x180004136
mov rdx, qword [0x180029790]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov ebx, eax
jne 0x180004136
mov rcx, qword [rsp + 0x30]
lea rax, [0x180028fa8]
lea r9d, [rbx + 3]
lea rdx, [0x18002c1b5]
xor r8d, r8d
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
mov dword [0x180028fa8], edi
mov word [0x180028fac], bp
mov byte [0x180028fae], sil
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
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 eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180004150
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 [0x180029648]
xor edx, edx
mov r8d, 0x1000
xor edi, edi
mov dword [rax + 0x10], 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800041fe
lea r8, [rsp + 0x38]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
test rax, rax
mov rsi, rax
je 0x1800041ec
mov edi, 1
mov rcx, qword [rbx + 8]
mov rdx, rbp
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x1800041c6
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 0x1800041aa
mov rcx, rsi
call qword [sym.imp.WININET.dll_FindCloseUrlCache]
mov rcx, qword [0x180029648]
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 0x180004a64
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 r14d, r14d
mov r13, rdx
mov rdx, rcx
lea r8, [rax - 0x38]
mov rcx, 0xffffffff80000001
mov r12d, r9d
mov dword [rax - 0x44], r14d
mov dword [rax - 0x48], r14d
mov dword [rax - 0x40], r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, r14d
mov ebx, eax
jne 0x180004c36
mov rcx, qword [0x180029648]
mov r15d, 0x105
xor edx, edx
mov r8, r15
lea ebx, [r14 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r14
mov rsi, rax
je 0x180004c2b
mov rcx, qword [0x180029648]
mov r8, r15
xor edx, edx
mov ebp, r15d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r14
mov rdi, rax
je 0x180004c19
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], r14
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0xea
mov ebx, eax
jne 0x180004b99
cmp dword [rsp + 0x48], r15d
jbe 0x180004b58
add dword [rsp + 0x44], 1
mov ebx, r14d
jmp 0x180004be2
cmp dword [rsp + 0x40], ebp
jbe 0x180004c07
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [rsp + 0x40]
mov rcx, qword [0x180029648]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp rax, r14
mov rdi, rax
jne 0x180004b50
mov ebx, 8
jmp 0x180004c07
cmp eax, r14d
jne 0x180004bfd
cmp r12d, r14d
je 0x180004bb9
mov r8d, dword [0x180029788]
mov edx, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
call fcn.18001d7ac
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov r8, rdi
mov rdx, rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call r13
cmp eax, r14d
mov ebx, eax
jne 0x180004bfd
mov rcx, qword [0x1800298a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180004c07
jmp 0x180004afd
cmp ebx, 0x103
cmove ebx, r14d
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180029648]
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

Function at 0x180005060
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x120
call fcn.18000d868
mov rcx, qword [0x1800298a0]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1800297a0]
lea rdx, [0x180004ea0]
mov r9d, 1
xor r8d, r8d
add rsp, 0x28
jmp fcn.180004a64
Function at 0x180006074
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov r12, rdx
mov rbp, rcx
mov rdi, rbx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
cmp rax, rbx
mov rsi, rax
jne 0x1800060ac
lea ebx, [rdi + 0xb]
jmp 0x180006234
mov rdx, qword [0x180029790]
lea r8, [rsp + 0x20]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x180006127
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x28]
mov rcx, r12
call fcn.180003c78
cmp eax, ebx
jne 0x180006127
cmp dword [rsp + 0x60], 0xc
jne 0x180006127
mov r8, qword [rsp + 0x28]
mov eax, dword [rsi + 0x58]
cmp dword [r8], eax
jne 0x180006113
cmp qword [r8 + 4], rbx
je 0x180006113
mov eax, dword [rsi + 0x50]
cmp qword [r8 + 4], rax
jae 0x180006113
mov rdi, qword [r8 + 4]
add rdi, rbp
mov qword [rsp + 0x68], rdi
mov rcx, qword [0x180029648]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rdi, rbx
jne 0x180006170
mov eax, dword [rsi + 0x58]
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rbp
mov qword [0x180029630], r12
mov qword [0x180029624], rbp
mov dword [0x180029620], eax
call fcn.180005e88
cmp eax, ebx
je 0x18000616b
lea r8, [rsp + 0x68]
mov edx, 1
mov rcx, rbp
call fcn.180005e88
cmp eax, ebx
jne 0x180006234
mov rdi, qword [rsp + 0x68]
cmp qword [rdi], 4
jne 0x180006192
lea rax, [rdi + 0x10]
mov qword [0x180028dc0], rax
lea rax, [rdi + 0x18]
mov qword [0x180028de8], rax
lea rax, [rdi + 8]
jmp 0x1800061ac
lea rax, [rdi + 0x30]
mov qword [0x180028dc0], rax
lea rax, [rdi + 0x40]
mov qword [0x180028de8], rax
lea rax, [rdi + 0x48]
lea rcx, [0x180028db8]
xor edx, edx
mov qword [0x180028e10], rax
call fcn.180013eb8
cmp eax, ebx
jne 0x180006232
lea rcx, [0x180028de0]
xor edx, edx
call fcn.180013eb8
cmp eax, ebx
jne 0x180006232
lea rcx, [0x180028e08]
xor edx, edx
call fcn.180013eb8
cmp eax, ebx
jne 0x180006232
mov rax, qword [0x180028e28]
lea rcx, [0x180028e80]
mov r8, rbp
mov qword [0x180028f70], rax
mov rax, qword [0x180028dd8]
mov edx, 6
mov qword [0x180028f78], rax
mov rax, qword [0x180028e00]
mov qword [0x180028f80], rax
mov rax, qword [0x180029768]
or dword [rax + 0x34], 1
call fcn.180014134
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1800072dc
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, [0x1800298c0]
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 0x1800073d8
lea r9d, [rdi + 1]
lea rdx, [0x18002c3ac]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.1800156a4
cmp rax, rdi
mov rbx, rax
je 0x1800073c8
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r8d, [rdi + 2]
lea rdx, [0x1800298c0]
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 0x1800073ac
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 0x1800073b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x180029648]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800073cd
mov edi, 8
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800073e0
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 0x1800073f8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xf0
and dword [rax + 0x18], 0
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x60]
lea rcx, [rax - 0x70]
call sub.ntdll.dll_memset
and qword [rsp + 0x50], 0
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x80], 0x68
call fcn.180012a10
xor ecx, ecx
test rax, rax
mov rdi, rax
mov rdx, rbx
cmovne rcx, rax
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0xc000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180007500
mov rax, qword [0x1800298a0]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
mov dword [rsp + 0x110], eax
jne 0x1800074d5
mov dword [rsp + 0x110], 0x102
jmp 0x1800074e8
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000750d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x110], eax
test rdi, rdi
je 0x180007524
mov rcx, qword [0x180029648]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x110]
mov rbx, qword [rsp + 0x100]
add rsp, 0xf0
pop rdi
ret