joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180067610
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x150
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
je 0x180066101
test rdx, rdx
je 0x180066101
xor edx, edx
call fcn.18005f270
test eax, eax
jne 0x180065f8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180153070], eax
test eax, eax
je 0x180065f8b
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180065ffb
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x148], r12
mov rcx, rbx
mov qword [rsp + 0x140], r13
xor r12d, r12d
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea r13d, [r12 + 1]
cmp eax, 0xffffffff
je 0x180065fcd
test al, 0x10
jne 0x180065fcd
mov r12d, r13d
test r12b, al
cmovne edi, r13d
test r13b, bpl
je 0x180066016
test r12d, r12d
je 0x180066016
mov dword [0x180153070], 0x50
xor eax, eax
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x180]
mov r13, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18006f110
add rsp, 0x150
pop rsi
pop rbp
pop rbx
ret
test bpl, 2
je 0x18006602c
test edi, edi
je 0x18006602c
mov dword [0x180153070], 5
jmp 0x180065fe1
cmp eax, 0xffffffff
je 0x180066044
mov rcx, rbx
test al, 0x10
je 0x18006603f
call fcn.180062230
jmp 0x180066044
call fcn.18005f790
mov rdx, rbx
mov rcx, rsi
mov dword [0x180153070], 0
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
test eax, eax
jne 0x1800660dd
test bpl, 4
jne 0x1800660e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1800660e4
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], dil
call fcn.18006f140
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call fcn.18005d250
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.18005fe60
test eax, eax
jne 0x1800660c5
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1800608f0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x180153070], eax
test eax, eax
je 0x1800660dd
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x180065fe3
test bpl, 8
je 0x1800660c5
mov rdx, rbx
mov rcx, rsi
call fcn.18005fd00
test eax, eax
je 0x1800660c5
mov eax, r13d
jmp 0x180065fe3
mov ecx, 0x57
mov dword [0x180153070], 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180065ffb
jmp 0x180065f30
Function at 0x180067970
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, r8d
mov r14, rdx
mov r13, rcx
lea rcx, [rax - 0x48]
call fcn.180067940
nop
mov r8d, 0x10
lea rdx, [0x1800f9e20]
lea rcx, [rsp + 0x50]
call fcn.180067760
mov r12d, 1
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rdx, [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800679fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800679fd
mov dword [rsp + 0x34], eax
lea rdx, [0x18012e838]
lea rcx, [rsp + 0x34]
call fcn.1800728fc
mov ecx, dword [rsp + 0x30]
shl rcx, 0x20
or rcx, rbx
mov qword [rsp + 0x40], rcx
mov r8d, 8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180067730
mov ecx, 0x8000
call fcn.18006f3c0
mov rbx, rax
test rax, rax
jne 0x180067a45
lea rcx, [rsp + 0x50]
call fcn.180067750
xor eax, eax
jmp 0x180067b1f
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call fcn.18006f140
mov edi, r15d
nop dword [rax + rax]
mov dword [rsp + 0xb8], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0xb8]
mov r8d, 0x8000
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180067ab3
test rbx, rbx
je 0x180067a98
mov rcx, rbx
call fcn.18006f310
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rdx, [0x18012e838]
lea rcx, [rsp + 0x38]
call fcn.1800728fc
mov r8d, dword [rsp + 0xb8]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180067730
mov r11d, dword [rsp + 0xb8]
add edi, r11d
cmp r11d, 0x8000
jb 0x180067aed
cmp esi, 0xffffffff
je 0x180067a60
cmp edi, esi
jb 0x180067a60
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.1800678a0
test rbx, rbx
je 0x180067b08
mov rcx, rbx
call fcn.18006f310
nop
jmp 0x180067b12
lea rcx, [rsp + 0x50]
call fcn.180067750
mov eax, r12d
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x180068060
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r8d, 0x100000
jmp fcn.180067970
Function at 0x180069150
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbx, rcx
xor r13d, r13d
mov ebp, r13d
cmp dword [rcx + 0x30], ebp
je 0x18006917e
call fcn.18005d110
mov rbp, rax
mov edx, 0xc0000000
mov eax, 0x80000000
cmp dword [rbx + 0x28], r13d
cmovne edx, eax
mov dword [rsp + 0x90], r13d
mov esi, r13d
mov rcx, qword [rbx + 0x38]
cmp dword [rcx - 8], r13d
je 0x180069202
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9, rbp
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800691e5
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x180069359
cmp dword [rsp + 0x90], r13d
jne 0x180069202
test esi, esi
je 0x180069359
mov r14d, 4
mov r12d, r14d
mov eax, 2
cmp dword [rbx + 0x28], r13d
cmovne r12d, eax
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.180042390
nop
cmp dword [rbx + 0x2c], 0
je 0x180069268
mov rax, qword [rbx + 0x40]
cmp dword [rax - 8], 0
je 0x180069268
call fcn.18009ff30
test eax, eax
je 0x180069268
lea rdx, str.Global_
lea rcx, [rsp + 0x98]
call fcn.18003ee30
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x98]
call fcn.18003eff0
mov rax, qword [rsp + 0x98]
cmp dword [rax - 8], 0
cmove rax, r13
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x18006934c
mov edx, 6
cmp dword [rbx + 0x28], 0
cmovne edx, r14d
mov ecx, dword [rbx + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rbx + 0x24]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18006934a
cmp dword [rbx + 0x20], 0
jne 0x180069336
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x180069336
mov dword [rsp + 0xa0], esi
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0xa4], eax
mov eax, dword [rbx + 0x24]
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0xac], r13d
mov rcx, qword [rsp + 0xa0]
sub rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa0], rcx
shr rcx, 0x20
mov edx, dword [rsp + 0xa0]
or r8d, 0xffffffff
test ecx, ecx
cmovg edx, r8d
mov dword [rbx + 0x20], edx
lea rcx, [rsp + 0x98]
call fcn.18003ecb0
mov eax, 1
jmp 0x18006935c
jmp 0x18006934c
lea rcx, [rsp + 0x98]
call fcn.18003ecb0
mov eax, r13d
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180069860
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
call fcn.1800696a0
mov qword [rbx + 8], rdi
mov dword [rbx + 0x20], 0
cmp rdi, 0xffffffffffffffff
je 0x1800698f7
test rdi, rdi
je 0x1800698f7
lea rdx, [rbx + 0x14]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx + 8]
lea r8, [rbx + 0x1c]
mov r9d, 1
xor edx, edx
mov dword [rbx + 0x10], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbx + 0x18], eax
test eax, eax
jne 0x1800698bd
cmp dword [rbx + 0x1c], eax
je 0x1800698c7
xor edx, edx
mov rcx, rbx
call fcn.1800697f0
mov rcx, qword [rbx + 8]
lea r9, [rbx + 0x43c]
lea rdx, [rbx + 0x3c]
mov r8d, 0x400
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800698f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180069910
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.1800696a0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov dword [rdi + 0x20], 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1800699a1
test rax, rax
je 0x1800699a1
lea rdx, [rdi + 0x14]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rdi + 8]
lea r9, [rdi + 0x43c]
lea rdx, [rdi + 0x3c]
mov r8d, 0x400
mov dword [rdi + 0x10], eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800699a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180069a80
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov esi, r8d
mov edi, edx
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x180069bab
test rax, rax
je 0x180069bab
mov qword [rsp + 0x60], r12
lea r9, [rsp + 0x50]
xor r12d, r12d
mov edx, edi
mov qword [rsp + 0x50], r12
call fcn.1800697c0
mov r10, qword [rsp + 0x50]
cmp r10, qword [rcx + 0x10]
jg 0x180069b3d
cmp dword [rsp + 0x54], r12d
jne 0x180069af0
mov eax, dword [rcx + 0x43c]
cmp dword [rsp + 0x50], eax
ja 0x180069af0
lea rax, [rdi + rcx + 0x3c]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov r11, qword [rbx + 0x28]
test r11, r11
je 0x180069b2e
mov edx, dword [rbx + 0x38]
mov r8d, dword [rbx + 0x34]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], r12
call fcn.1800697c0
cmp edx, edi
ja 0x180069b2e
cmp r10, qword [rsp + 0x50]
jg 0x180069b2e
mov r12, qword [rsp + 0x60]
sub edi, edx
mov eax, edi
add rax, r11
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov edx, esi
mov rcx, rbx
call fcn.180069750
test rax, rax
jne 0x180069b4c
xor eax, eax
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov edx, edi
mov rcx, rbx
mov qword [rsp + 0x58], rbp
call fcn.1800697f0
test eax, eax
je 0x180069b9b
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 8]
lea r9, [rbx + 0x34]
mov r8d, esi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180069b9b
cmp dword [rbx + 0x34], esi
jne 0x180069b9b
mov rax, qword [rbx + 0x28]
mov dword [rbx + 0x38], edi
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov qword [rbx + 0x34], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
xor eax, eax
jmp 0x180069b89
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180069df0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x38], rbp
mov rbp, rcx
lea r8, [rsp + 0x68]
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x180069f0f
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180069f0f
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x180069f0f
lea ecx, [rdi + 0x40]
mov edx, eax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180069f0a
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductSuite
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180069f01
cmp dword [rsp + 0x60], 7
jne 0x180069f01
mov qword [rsp + 0x50], rbx
mov rbx, rsi
cmp byte [rsi], dil
je 0x180069efc
nop dword [rax + rax]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x180069ef7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cdqe
add rbx, rax
cmp byte [rbx], dil
jne 0x180069ed0
jmp 0x180069efc
mov edi, 1
mov rbx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x38]
test rcx, rcx
je 0x180069f24
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x180069f30
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
call fcn.18009fed0
test eax, eax
je 0x18006a007
call fcn.18009ff30
test eax, eax
je 0x180069ff9
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x180069fa7
lea r8d, [rbx + 4]
lea rdx, str.TermService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x180069fab
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x18006a009
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180069fe5
mov eax, dword [rsp + 0x24]
cmp eax, 4
je 0x180069fe0
cmp eax, 2
jne 0x180069fe5
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18006a007
lea rcx, str.Terminal_Server
call fcn.180069df0
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18006f110
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
jmp 0x180069f30

Function at 0x18006a2b0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
call fcn.18009fed0
test eax, eax
je 0x18006a007
call fcn.18009ff30
test eax, eax
je 0x180069ff9
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x180069fa7
lea r8d, [rbx + 4]
lea rdx, str.TermService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
jne 0x180069fab
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x18006a009
xor eax, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180069fe5
mov eax, dword [rsp + 0x24]
cmp eax, 4
je 0x180069fe0
cmp eax, 2
jne 0x180069fe5
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18006a007
lea rcx, str.Terminal_Server
call fcn.180069df0
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18006f110
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
jmp 0x180069f30
Function at 0x18006c6d0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rsi
mov rsi, rdx
mov rbx, rcx
lea rdx, [rcx + 8]
mov r8d, 1
lea rcx, [rsp + 0x38]
call fcn.180048130
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
test eax, eax
je 0x18006c75f
test rsi, rsi
je 0x18006c75f
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r11d, r11d
mov dword [rsp + 0x60], r11d
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov qword [rsp + 0x20], r11
lea r9, [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
lea rcx, [rsp + 0x38]
call fcn.1800481b0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x18006eaf0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
lea r8, [rsp + 0x30]
xor edi, edi
mov rcx, 0xffffffff80000002
mov rbx, r9
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18006eb64
test rbx, rbx
je 0x18006eb39
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx + rcx]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x18006eb80
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
sub rsp, 0x40
mov rbx, r8
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18006ebe0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x40
pop rbx
ret
Function at 0x18006ebf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea r8, [rsp + 0x38]
xor ebx, ebx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18006ecb8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x68]
cmp r11d, 2
jb 0x18006ecad
add r11d, 2
mov eax, 2
mov dword [rsp + 0x68], r11d
shr r11d, 1
mov ecx, r11d
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.18006f3c0
mov rbx, rax
test rax, rax
je 0x18006ecad
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18006ecd0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, r8
lea r8, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18006ed41
mov rcx, qword [rsp + 0x38]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
add rsp, 0x40
pop rbx
ret
Function at 0x180077763
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1801345d0]
jne 0x18006f12a
rol rcx, 0x10
test cx, 0xffff
jne 0x18006f126
repz ret
ror rcx, 0x10
jmp 0x1800776bc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180153e80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180153f78]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180077741
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180153e80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180077763
mov rax, qword [rsp + 0x88]
mov qword [0x180153f78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180153f18], rax
mov rax, qword [0x180153f78]
mov qword [0x180153df0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180153f00], rax
mov dword [0x180153de0], 0xc0000409
mov dword [0x180153de4], 1
mov rax, qword [0x1801345d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801345d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180153e78], eax
mov ecx, 1
call fcn.18008ac24
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800fad28]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180153e78], 0
jne 0x1800777ea
mov ecx, 1
call fcn.18008ac24
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret