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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rdi, rcx
mov rcx, rdx
mov rbp, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180039b48]
lea r8d, [rax + rsi + 1]
xor edx, edx
mov r13d, eax
add r8, 5
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
cmp rax, rbx
je 0x18000122a
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [rsi + 1]
mov rdx, rdi
mov rcx, r12
mov byte [rsi + r12], 0x5c
mov byte [rax + r12], bl
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [0x18003de0f]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov rcx, qword [0x180039b48]
lea r8d, [r13 + 1]
add r8, r8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, rbx
je 0x180001218
movsx eax, byte [rdi]
mov word [rbp], ax
cmp ax, bx
je 0x1800010d2
mov rcx, rbp
inc rdi
add rcx, 2
movsx eax, byte [rdi]
mov word [rcx], ax
cmp ax, bx
jne 0x1800010c0
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreW]
mov rdi, rax
cmp rax, rbx
je 0x180001206
xor edx, edx
mov rcx, rax
mov esi, ebx
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
cmp rax, rbx
je 0x1800011fb
mov rdx, rax
mov rcx, rdi
inc esi
call qword [sym.imp.CRYPT32.dll_CertEnumCertificatesInStore]
cmp rax, rbx
jne 0x1800010ff
cmp esi, ebx
je 0x1800011fb
xor eax, eax
lea r8, [0x18003d918]
lea rdx, [rsp + 0x40]
lea esi, [rax + 4]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
cmp eax, ebx
je 0x1800011fb
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
cmp rax, rbx
je 0x1800011fb
lea r8, [0x18003d918]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], esi
call qword [sym.imp.CRYPT32.dll_PFXExportCertStoreEx]
cmp eax, ebx
je 0x1800011e7
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800011e7
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x80]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x48]
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov rcx, qword [0x180039b48]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
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 [0x180039b48], 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 [0x180039b20], eax
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x180039d08], 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 [0x180039cf0], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x47a
mov r8d, eax
mov qword [0x180039cf8], rsi
mov dword [0x180039ce4], eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
or rcx, 0xffffffffffffffff
test rax, rax
cmove rax, rcx
xor ecx, ecx
mov qword [0x180039ce8], 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.180019a20
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.Oct__3_2017]
mov eax, dword [0x1800318b0]
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.18002b25c
mov r11d, dword [0x18003d0b0]
xor r11d, dword [0x18003d0b4]
xor r11d, dword [0x18003d0bc]
mov dword [0x180039d14], 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.18002b210
mov ebx, 0xc
jmp 0x180001595
mov ebx, 0xc0
jmp 0x180001595
mov ebx, 2
mov ecx, ebx
test ebx, ebx
jne 0x1800015e0
lea rdx, [0x180039d00]
xor r8d, r8d
xor ecx, ecx
call fcn.180017e94
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1800015e0
mov ecx, dword [0x180039ce4]
xor edx, edx
call fcn.1800174dc
mov ecx, dword [0x180039cf4]
test eax, eax
cmovne ecx, r14d
mov dword [0x180039cf4], ecx
mov rcx, r12
call fcn.1800128b8
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 0x1800017c0
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 0x1800017f8
lea ecx, [rbx + 6]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, ebx
jne 0x1800017fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800017fd
mov ebx, 0x522
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180001808
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 [0x180039b48]
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 0x18000190d
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1800018f3
lea edx, [rbx + 0x32]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrA]
lea rdx, [0x18003e549]
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 0x1800018f3
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 0x1800018d7
xor ebx, ebx
jmp 0x1800018df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1800018fb
call fcn.1800017c0
jmp 0x1800018f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x180039b48]
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 0x180001920
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 0x180001a50
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x180039b48]
xor edx, edx
lea r8d, [rax + 0x11]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180001a55
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, [0x18003d183]
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.180017f94
mov ebx, eax
test eax, eax
jne 0x180001a3c
test esi, esi
je 0x180001a3c
lea r8, [rsp + 0x30]
lea rdx, [0x18003d2c5]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
test eax, eax
jne 0x180001a3c
movsx r8d, byte [0x18003d26e]
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 [0x180039b48]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001a55
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 0x180001c9c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180039ca0]
mov rdi, rcx
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x180001cf9
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, rdi
mov ebx, eax
call fcn.180017410
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 0x180001e04
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 0x180001f72
mov r9d, dword [rcx + 0x1c]
mov eax, dword [rcx + 0x14]
add r9d, dword [rcx + 0x10]
lea r9d, [r9 + rax + 0x20]
cmp edx, r9d
jne 0x180001f72
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 0x180001f6b
mov eax, dword [0x180039ce4]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x44], eax
mov rax, qword [0x180039ce8]
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.18001d264
mov edi, eax
test eax, eax
jne 0x180001f77
cmp dword [rbx + 0x18], eax
je 0x180001f28
mov ecx, 0xd80
call fcn.180016088
mov rsi, rax
test rax, rax
je 0x180001f28
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.180001d08
test eax, eax
jne 0x180001f16
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.180001d08
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180001f16
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x180001f77
mov rcx, qword [rsp + 0x88]
lea rdx, [0x18003e105]
xor r9d, r9d
xor r8d, r8d
call fcn.1800198c8
test rax, rax
je 0x180001f64
mov eax, dword [rax]
add rax, qword [rsp + 0x88]
je 0x180001f64
lea rcx, [0x180039148]
xor edx, edx
call rax
jmp 0x180001f77
mov edi, 0x7f
jmp 0x180001f77
mov edi, 0xb
jmp 0x180001f77
mov edi, 0x57
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x18003e138]
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.18000fc1c
mov rcx, qword [0x180039b48]
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 0x1800023a4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x180002444
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 0x1800023f8
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180016038
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 0x180002420
mov r8d, ebx
mov edx, ebx
mov rcx, rdi
call fcn.180016038
lea rcx, [0x18003d47f]
mov edx, ebx
call fcn.180001fe8
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002449
mov ebx, 8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002c70
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 0x180002ca5
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
mov rcx, qword [0x180039b48]
lea r8d, [rbp + 1]
xor edx, edx
add r8, 0x10
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, rbx
je 0x180002d2f
mov qword [rax], r13
mov qword [rax + 8], r12
cmp ebp, ebx
je 0x180002cde
lea rcx, [rax + 0x10]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180002ce1
mov byte [rax + 0x10], bl
lea rax, [rsp + 0x60]
lea r8, [0x180002c14]
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 0x180002d13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002d34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180039b48]
mov r8, rdi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002d34
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 0x180002e4c
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 [0x180039bd0]
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 0x180002eb2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x180002eb4
xor edi, edi
mov rcx, qword [0x180039b48]
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 0x180002f6b
test rbx, rbx
je 0x180002f29
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, rsi
call fcn.180015634
mov rbx, rax
test rax, rax
je 0x180002f21
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180002f0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x180039b48]
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.180018400
xor r9d, r9d
mov r8d, r13d
mov rdx, r14
mov rcx, rsi
mov byte [rbx + 0x12], 0
call fcn.180015980
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180002f70
mov ebx, 8
cmp ebx, 0x50
je 0x180002e72
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 0x18000335c
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, [0x18003d2c5]
lea r8, [rax + 0x20]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x180003454
mov r8, qword [0x180039fc0]
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
xor edx, edx
call fcn.18001905c
mov ebx, eax
test eax, eax
jne 0x1800033d4
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000342d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [0x180039fc0]
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 0x18000342d
mov r8, qword [0x18003a0c0]
test r8, r8
je 0x180003426
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x18003a0c0], rsi
cmp qword [rsp + 0x50], 0
je 0x180003449
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x180039b48]
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 0x180003468
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 [0x180039d10]
mov ebp, edx
mov rbx, rcx
mov dword [rsp + 0x78], eax
cmp edx, 0x1000
jbe 0x1800036d6
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
xor r14d, r14d
mov r12, rax
cmp rax, r14
je 0x1800036d6
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8d, 0x10000
lea edi, [r14 + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, r14
je 0x1800036db
lea rcx, [0x18003d46a]
call fcn.180015634
mov r13, rax
cmp rax, r14
je 0x1800036c2
mov r8, qword [0x180039fd0]
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 [0x180039b68]
lea r14, [0x18003e948]
mov r15d, eax
mov eax, 0x2000
test word [r12 + 0x16], ax
lea rax, [0x18003e930]
cmove r14, rax
test rcx, rcx
je 0x18000354a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x180039b68], 0
mov rdx, qword [0x180039fc8]
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.180003298
mov edi, eax
test eax, eax
je 0x1800035c8
lea rdx, [rsp + 0x78]
lea rcx, [0x180039fc8]
call fcn.1800189d4
xor ecx, ecx
cmp eax, ecx
je 0x1800035ba
mov word [rsi + r15*2], cx
mov rdx, qword [0x180039fc8]
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.180003298
mov edi, eax
xor r14d, r14d
cmp edi, r14d
jne 0x1800036b0
jmp 0x1800035cb
xor r14d, r14d
mov rax, qword [rsp + 0x80]
mov r15d, 1
mov qword [0x180039b68], rax
mov eax, 0x2000
test word [r12 + 0x16], ax
je 0x180003684
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call fcn.1800198c8
cmp rax, r14
je 0x180003675
mov rbp, qword [rsp + 0x80]
mov rbx, r14
cmp rbp, r14
je 0x180003669
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 [0x180039b48]
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 0x180003669
lea rdx, [0x18003e8c8]
mov r9, rbp
mov r8, rsi
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
cmp rbx, r14
jne 0x180003687
mov edi, 8
jmp 0x180003687
mov rbx, qword [rsp + 0x80]
mov edi, 0x7f
jmp 0x180003687
mov rbx, rsi
cmp edi, r14d
jne 0x1800036b0
mov edx, r15d
mov rcx, rbx
call fcn.18000335c
mov edi, eax
cmp rbx, rsi
je 0x1800036b0
mov rcx, qword [0x180039b48]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800036db
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