joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800013e4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x30
mov r12, rdx
mov rsi, rcx
xor r8d, r8d
mov edx, 0x400000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180037ae8], rax
test rax, rax
jne 0x180001426
lea ecx, [rax + 8]
jmp 0x1800015e0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor r9d, r9d
xor r8d, r8d
lea r14d, [r9 + 1]
xor ecx, ecx
mov dword [0x180037ac0], eax
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x180037ca8], rax
test rax, rax
je 0x1800014b2
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x18000146a
movzx ecx, ax
shr cx, 8
test cl, cl
jne 0x18000146c
cmp al, al
jbe 0x1800014ab
mov dword [0x180037c8c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x47a
mov r8d, eax
mov qword [0x180037c98], rsi
mov dword [0x180037c88], eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
or rcx, 0xffffffffffffffff
test rax, rax
cmove rax, rcx
xor ecx, ecx
mov qword [0x180037c80], rax
jmp 0x1800014ba
mov ecx, 0x32
jmp 0x1800014ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jne 0x1800015e0
xor eax, eax
lea r8d, [rcx + 8]
lea rdx, str..bss
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
mov byte [rsp + 0x67], al
mov byte [rsp + 0x60], bl
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.180018370
mov rdi, rax
test rax, rax
je 0x180001590
cmp dword [rax + 0xc], ebx
je 0x180001589
cmp dword [rax + 0x10], ebx
je 0x180001589
mov rcx, qword [str.Nov_23_2017]
mov eax, dword [0x18002f888]
lea rdx, [rsp + 0x20]
mov qword [rdx], rcx
mov ecx, dword [rdi + 0xc]
mov dword [rdx + 8], eax
mov edx, dword [rdi + 0x10]
mov r9d, r14d
lea ebp, [rcx + rdx]
add rcx, rsi
xor ebp, dword [rsp + 0x20]
xor ebp, dword [rsp + 0x24]
lea r8d, [rbp + 0xe]
call fcn.180028d3c
mov r11d, dword [0x18003b0b0]
xor r11d, dword [0x18003b0b4]
xor r11d, dword [0x18003b0bc]
mov dword [0x180037cb0], r11d
cmp r11d, 0x73686c70
je 0x180001595
mov ecx, dword [rdi + 0xc]
mov edx, dword [rdi + 0x10]
lea r8d, [rbp + 0xe]
add rcx, rsi
mov r9d, r14d
call fcn.180028cf0
mov ebx, 0xc
jmp 0x180001595
mov ebx, 0xc0
jmp 0x180001595
mov ebx, 2
mov ecx, ebx
test ebx, ebx
jne 0x1800015e0
lea rdx, [0x180037ca0]
xor r8d, r8d
xor ecx, ecx
call fcn.180016c74
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1800015e0
mov ecx, dword [0x180037c88]
xor edx, edx
call fcn.1800162bc
mov ecx, dword [0x180037c90]
test eax, eax
cmovne ecx, r14d
mov dword [0x180037c90], ecx
mov rcx, r12
call fcn.180011fcc
mov ecx, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ecx
add rsp, 0x30
pop r14
pop r12
pop rdi
ret
Function at 0x1800017f0
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea ecx, [rbx + 0x13]
mov dl, 1
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
cmp eax, ebx
jl 0x180001828
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x18000182d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000182d
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180001838
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rcx, qword [0x180037ae8]
mov esi, 0x104
xor edx, edx
mov r8, rsi
mov ebx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000193d
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x180001923
lea edx, [rbx + 0x32]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
lea rdx, [0x18003c4c9]
mov r8, rdi
lea rcx, [rax + 2]
mov rbx, rax
mov byte [rax + 1], 0
call qword [sym.imp.USER32.dll_wsprintfA]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
lea rcx, [rbx + 2]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180001923
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, 0x10000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180001907
xor ebx, ebx
jmp 0x18000190f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x18000192b
call fcn.1800017f0
jmp 0x180001929
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180001950
Capabilities:
Access pe header
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov esi, r9d
mov r13d, edx
mov rbp, rcx
mov ebx, 8
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180001a80
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x180037ae8]
xor edx, edx
lea r8d, [rax + 0x11]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180001a85
lea ecx, [r12 + 1]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rdi + rbx]
lea rdx, [0x18003b15e]
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], 1
call fcn.180016d74
mov ebx, eax
test eax, eax
jne 0x180001a6c
test esi, esi
je 0x180001a6c
lea r8, [rsp + 0x30]
lea rdx, [0x18003b232]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x180001a6c
movsx r8d, byte [0x18003b1db]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrRChrA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x30]
inc eax
lea rdx, [rbx + 1]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001a85
mov ebx, 0xb
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x180001cf4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180037c40]
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x180001d51
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
mov ebx, eax
call fcn.1800161f0
mov rcx, qword [rsp + 0x38]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180001e5c
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and qword [rsp + 0x70], 0
mov ebp, r8d
mov rbx, rcx
cmp edx, 0x20
jb 0x180001fca
mov r9d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x14]
add r9d, dword [rcx + 0x10]
lea r9d, [r9 + rax + 0x20]
cmp edx, r9d
jne 0x180001fca
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 0x180001fc3
mov eax, dword [0x180037c88]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x44], eax
mov rax, qword [0x180037c80]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rsp + 0x88]
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x38], rax
call fcn.18001ad44
mov edi, eax
test eax, eax
jne 0x180001fcf
cmp dword [rbx + 0x18], eax
je 0x180001f80
mov ecx, 0xd80
call fcn.180014e98
mov rsi, rax
test rax, rax
je 0x180001f80
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.180001d60
test eax, eax
jne 0x180001f6e
mov r9d, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x70]
lea rdx, [rbx + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001d60
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180001f6e
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x180001fcf
mov rcx, qword [rsp + 0x88]
lea rdx, [0x18003c072]
xor r9d, r9d
xor r8d, r8d
call fcn.180018218
test rax, rax
je 0x180001fbc
mov eax, dword [rax]
add rax, qword [rsp + 0x88]
je 0x180001fbc
lea rcx, [0x180037120]
xor edx, edx
call rax
jmp 0x180001fcf
mov edi, 0x7f
jmp 0x180001fcf
mov edi, 0xb
jmp 0x180001fcf
mov edi, 0x57
mov rcx, qword [0x180037ae8]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x18003c0a5]
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.18000f3c8
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800023fc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x180037ae8]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000249c
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 0x180002450
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180014e48
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 0x180002478
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180014e48
lea rcx, [0x18003b3ec]
mov edx, ebx
call fcn.180002040
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800024a1
mov ebx, 8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002b3c
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
mov r13, rcx
mov ebp, ebx
cmp r8, rbx
je 0x180002b71
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x180037ae8]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x180002bfb
mov qword [rax], r13
mov qword [rax + 8], r12
cmp ebp, ebx
je 0x180002baa
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180002bad
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x180002ae0]
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 0x180002bdf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002c00
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002c00
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 0x180002d18
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 [0x180037b68]
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 byte [rsp + 0x28], r12b
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], r11d
test rbx, rbx
je 0x180002d7e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x180002d80
xor edi, edi
mov rcx, qword [0x180037ae8]
lea ebp, [rdi + 1]
xor edx, edx
mov r8d, ebp
add r8, 0x13
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x180002e37
test rbx, rbx
je 0x180002df5
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rsi
call fcn.180014444
mov rbx, rax
test rax, rax
je 0x180002ded
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002ddb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180037ae8]
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.1800171e0
xor r9d, r9d
mov r8d, r13d
mov rdx, r14
mov rcx, rsi
mov byte [rbx + 0x12], 0
call fcn.180014790
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002e3c
mov ebx, 8
cmp ebx, 0x50
je 0x180002d3e
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 0x180002fd4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor r13d, r13d
mov rbp, rcx
mov ebx, 0x57
cmp rcx, r13
je 0x180003144
lea edi, [rbx - 0x2b]
mov edx, edi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
mov rsi, rax
cmp rax, r13
je 0x18000315a
inc rsi
mov edx, edi
mov byte [rax], r13b
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
mov rdi, rax
cmp rax, r13
je 0x18000302e
mov byte [rax], r13b
inc rdi
lea rdx, [0x18002f738]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
lea rdx, [0x18002f738]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
mov r12d, eax
mov word [rsp + 0x60], ax
cmp ax, r13w
je 0x18000315a
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrToIntA]
mov esi, eax
mov word [rsp + 0x62], ax
cmp ax, r13w
je 0x18000315a
cmp rdi, r13
je 0x180003101
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180037ae8]
xor edx, edx
lea ebx, [rax + 5]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, r13
je 0x1800030fa
lea rcx, [rax + 4]
mov rdx, rdi
mov word [rax], r12w
mov word [rax + 2], si
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, qword [0x180037c20]
lea rdx, [0x18003b1ae]
mov r9d, ebx
mov r8, rbp
mov dword [rsp + 0x20], 1
call fcn.1800097b8
mov rcx, qword [0x180037ae8]
mov r8, rbp
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18000315a
mov ebx, 8
jmp 0x18000315a
mov eax, dword [0x180037bf8]
cmp eax, r13d
jne 0x18000313f
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x68]
lea r8, [0x18000c058]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, r13
je 0x18000313f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, r13d
jmp 0x18000315a
lea rcx, [0x18003b1ae]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.180004d1c
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180003234
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov ebp, edx
mov rsi, rcx
lea rdx, [0x18003b232]
lea r8, [rax + 0x20]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x18000332c
mov r8, qword [0x180037f40]
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
xor edx, edx
call fcn.180017bc4
mov ebx, eax
test eax, eax
jne 0x1800032ac
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180003305
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [0x180037f40]
mov rcx, qword [rsp + 0x58]
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebp, ebp
je 0x180003305
mov r8, qword [0x180038040]
test r8, r8
je 0x1800032fe
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x180038040], rsi
cmp qword [rsp + 0x50], 0
je 0x180003321
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x180003340
Capabilities:
Access pe header
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, dword [0x180037c94]
mov ebp, edx
mov rbx, rcx
mov dword [rsp + 0x78], eax
cmp edx, 0x1000
jbe 0x1800035ae
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
xor r14d, r14d
mov r12, rax
cmp rax, r14
je 0x1800035ae
mov rcx, qword [0x180037ae8]
xor edx, edx
mov r8d, 0x10000
lea edi, [r14 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r14
je 0x1800035b3
lea rcx, [0x18003b3d7]
call fcn.180014444
mov r13, rax
cmp rax, r14
je 0x18000359a
mov r8, qword [0x180037f50]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180037b08]
lea r14, [0x18003c878]
mov r15d, eax
mov eax, 0x2000
test word [r12 + 0x16], ax
lea rax, [0x18003c868]
cmove r14, rax
test rcx, rcx
je 0x180003422
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x180037b08], 0
mov rdx, qword [0x180037f48]
lea rax, [rsp + 0x80]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8, r14
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.180003170
mov edi, eax
test eax, eax
je 0x1800034a0
lea rdx, [rsp + 0x78]
lea rcx, [0x180037f48]
call fcn.1800177b4
xor ecx, ecx
cmp eax, ecx
je 0x180003492
mov word [rsi + r15*2], cx
mov rdx, qword [0x180037f48]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov r9, rbx
mov r8, r14
mov rcx, rsi
mov dword [rsp + 0x20], ebp
call fcn.180003170
mov edi, eax
xor r14d, r14d
cmp edi, r14d
jne 0x180003588
jmp 0x1800034a3
xor r14d, r14d
mov rax, qword [rsp + 0x80]
mov r15d, 1
mov qword [0x180037b08], rax
mov eax, 0x2000
test word [r12 + 0x16], ax
je 0x18000355c
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call fcn.180018218
cmp rax, r14
je 0x18000354d
mov rbp, qword [rsp + 0x80]
mov rbx, r14
cmp rbp, r14
je 0x180003541
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rsi
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180037ae8]
movsxd r8, eax
xor edx, edx
add r8, rbx
lea r8, [r8 + r8 + 0x22]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
cmp rax, r14
je 0x180003541
lea rdx, [0x18003c840]
mov r9, rbp
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
cmp rbx, r14
jne 0x18000355f
mov edi, 8
jmp 0x18000355f
mov rbx, qword [rsp + 0x80]
mov edi, 0x7f
jmp 0x18000355f
mov rbx, rsi
cmp edi, r14d
jne 0x180003588
mov edx, r15d
mov rcx, rbx
call fcn.180003234
mov edi, eax
cmp rbx, rsi
je 0x180003588
mov rcx, qword [0x180037ae8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180037ae8]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800035b3
mov edi, 0xb
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004c38
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and dword [rax + 0x20], 0
mov r12, rcx
mov rcx, qword [0x180037c20]
mov rsi, r8
mov rbp, rdx
lea r8, [rax - 0x28]
xor edx, edx
call fcn.180004ba4
mov ebx, eax
test eax, eax
jne 0x180004d05
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x180004cfa
mov r8d, dword [rsi]
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180004cf5
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x180004ce1
mov qword [rbp], rdi
jmp 0x180004cfa
mov rcx, qword [0x180037ae8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180004cfa
mov ebx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x180004d1c
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 [0x180037c20]
mov r12d, r8d
mov rdi, rdx
lea r8, [rax - 0x18]
mov edx, 1
mov ebp, r9d
call fcn.180004ba4
mov ebx, eax
test eax, eax
jne 0x180004d94
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
test rdi, rdi
je 0x180004d81
mov r9d, ebp
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x180004d87
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