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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
push rbx
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov dword [rsp + 0x58], 0x208
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x18]
lea rax, [0x14000d580]
xor ebx, ebx
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x50], 1
je 0x140001525
xor eax, eax
jmp 0x14000152c
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140001534
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140002210
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor r10d, r10d
lea r11, [0x14000d350]
mov r8d, r10d
mov r9d, r10d
jmp 0x14000225d
cmp dx, 0x20
jne 0x140002231
test r9d, r9d
je 0x140002265
cmp dx, 0x22
jne 0x140002245
test r9d, r9d
mov eax, r10d
sete al
mov r9d, eax
jmp 0x140002259
cmp r8d, 0x107
jae 0x140002275
mov eax, r8d
inc r8d
mov word [r11 + rax*2], dx
add rcx, 2
movzx edx, word [rcx]
test dx, dx
jne 0x140002226
mov eax, r8d
mov word [r11 + rax*2], r10w
mov rax, rcx
add rsp, 0x28
ret
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140006168
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
and qword [r8], 0
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x1400061d6
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x1400061ec
test edx, edx
je 0x1400061d6
test rbx, rbx
jne 0x140006196
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400061d8

Function at 0x140008f20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008f6a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008f6a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008f6a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008f6a
cmp dword [rcx + 0x84], 0xe
jbe 0x140008f6a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008f6c
xor al, al
add rsp, 0x28
ret
Function at 0x180005c3c
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14d, r9d
mov r12, r8
mov r15, rdx
mov rdi, rcx
xor r13d, r13d
mov sil, r13b
lea rdx, [rcx + 0xe20]
cmp qword [rdx + 0x18], 8
jb 0x180005c80
mov rdx, qword [rdx]
lea rcx, [rbp - 0x18]
call fcn.1800021b4
nop
lea rbx, [rdi + 0x20]
test rbx, rbx
jne 0x180005c98
mov eax, r13d
jmp 0x180005ca0
mov rcx, rbx
call fcn.18001cc9c
mov r8d, eax
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.180004cdc
mov r9d, r14d
or r9d, 0x20019
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp - 0x18]
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005e45
mov rcx, rdi
call fcn.180006d54
lea rbx, [rdi + 0x220]
mov rdx, rbx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, [rbp + 0x40]
mov rdx, rbx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, r13d
mov rax, qword [rdi + 0xe48]
sub rax, qword [rdi + 0xe40]
sar rax, 3
test rax, rax
je 0x180005d7d
mov rdx, r13
lea rcx, [rdx + rdx*2]
mov rax, qword [rdi + 0xe58]
mov r8, qword [rax + rcx*8]
mov rax, qword [rdi + 0xe40]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax + rdx*8]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc ebx
mov rax, qword [rdi + 0xe48]
sub rax, qword [rdi + 0xe40]
sar rax, 3
mov edx, ebx
cmp rdx, rax
jb 0x180005d28
cmp qword [r15 + 0x18], 8
jb 0x180005d89
mov rdx, qword [r15]
jmp 0x180005d8c
mov rdx, r15
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], r12
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180005dcb
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call fcn.1800046b4
mov sil, al
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or r14d, 0x2001f
lea rdx, [rdi + 0xa20]
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180005e3a
mov dword [rbp + 0x58], 0x10000
lea rdx, [rdi + 0xc20]
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, sil
test eax, eax
cmovne esi, r13d
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180005e63
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, sil
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180008f3c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180008f62
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1800099c0
jmp 0x180008fc9
cmp byte [0x1800479c8], 0
jne 0x180008fa6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180008f96
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800479c0], rax
jmp 0x180008f9d
mov rax, qword [0x1800479c0]
mov byte [0x1800479c8], 1
jmp 0x180008fad
mov rax, qword [0x1800479c0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180008fc3
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x180008fc9
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800099c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180009a23
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180009a37
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180009a37
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x180009a3c
cmp dword [rcx + 8], 0
je 0x180009a37
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x180009a3c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180009bb4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1800451a0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180009c41
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x180009c41
call fcn.180008380
mov ebx, eax
jmp 0x180009d52
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x180009c62
call fcn.180008380
jmp 0x180009d41
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180009c58
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x180009c9d
mov ebx, 0x8007000e
jmp 0x180009d43
mov ecx, eax
test eax, eax
je 0x180009cd5
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180009ccb
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180009cd5
lea rcx, [rsp + 0x70]
call fcn.180007f90
jmp 0x180009cdf
mov ecx, 0x80070216
call fcn.180004f88
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180009cf1
cmp qword [rsp + 0x70], rdi
je 0x180009c93
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x180009c58
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180009a4c
mov ebx, eax
test rsi, rsi
je 0x180009d52
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180009d69
lea rcx, [rsp + 0x70]
call fcn.180009128
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180018610
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000a4b8
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 r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x18000a4e6
lea eax, [rbx + 0xd]
jmp 0x18000a51b
mov rsi, r8
mov rcx, rsi
call fcn.18001cc9c
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x18000a4e9
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180015da4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
mov r14, rcx
and dword [rbp - 0x10], 0
lea rdx, [0x180030fc8]
call fcn.1800021b4
mov edx, 1
mov dword [rbp - 0x10], edx
and qword [rbp + 0x50], 0
mov rax, qword [rsi]
sub edx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, edx
jge 0x180015e01
xor edx, edx
mov rcx, rsi
call fcn.180005910
lea r8, [0x180033bc8]
mov rdx, qword [rsi]
lea rcx, [rbp + 0x50]
call fcn.18001d498
or r13, 0xffffffffffffffff
test eax, eax
jne 0x180015ed7
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x180015ed7
xor edx, edx
lea r8d, [r13 + 3]
call fcn.18001f5d4
mov rcx, qword [rbp + 0x50]
call fcn.18001fab8
movsxd rdi, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x50]
call fcn.18001f5d4
lea ecx, [rdi + 1]
movsxd rbx, ecx
lea eax, [r13 + 3]
mul rbx
cmovo rax, r13
mov rcx, rax
call fcn.180018af0
mov r15, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call fcn.18001acc0
mov r8, rdi
mov r9, qword [rbp + 0x50]
lea edx, [r13 + 3]
mov rcx, r15
call fcn.18001f298
mov rcx, qword [rbp + 0x50]
call fcn.18001efac
test r15, r15
je 0x180015ed7
mov rdx, r15
lea rcx, [rbp + 0x58]
call fcn.1800021b4
nop
mov rdx, rax
mov rcx, r14
call fcn.18000cc64
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x180015ed7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x180015ef6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180016218
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x20], 0
mov rsi, r8
mov r8, qword [rdx]
mov r14, rdx
and dword [rbp - 0x18], 0
mov rdx, rcx
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x20]
mov edi, r9d
mov dword [rbp + 0x48], r9d
mov r9d, 0x20019
call fcn.1800057d8
mov rbx, qword [rbp - 0x20]
test eax, eax
jne 0x1800162b8
mov rdx, qword [rsi]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800162a1
cmp dword [rbp + 0x38], 4
jne 0x1800162a1
test eax, eax
je 0x1800162a4
mov dword [rbp + 0x48], edi
test rbx, rbx
je 0x1800162b8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rbp - 0x20], rbx
mov edi, dword [rbp + 0x48]
test rbx, rbx
je 0x1800162c9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [r14]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800162e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
mov ecx, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x180016307
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180016314
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r15, r9
mov r13, r8
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rbp - 0x28], esi
mov qword [rbp - 0x18], rsi
mov dword [rbp - 0x10], esi
mov qword [rbp - 8], rsi
mov r12, qword [rbp + 0x60]
mov rcx, qword [r12]
sub rcx, 0x18
call fcn.180004fa8
add rax, 0x18
mov qword [rdi], rax
lea r14d, [rsi + 1]
mov dword [rbp - 0x28], r14d
mov r9d, 0x20019
mov r8, qword [r13]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.1800057d8
mov rbx, qword [rbp - 0x18]
test eax, eax
jne 0x180016481
mov dword [rbp - 0x30], esi
mov dword [rbp - 0x2c], esi
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
lea r9, [rbp - 0x24]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800163dc
mov eax, dword [rbp - 0x24]
dec eax
cmp eax, r14d
ja 0x1800163dc
mov esi, dword [rbp - 0x30]
shr esi, 1
mov dword [rbp - 0x2c], esi
lea edx, [rsi + 1]
test edx, edx
jns 0x1800163ee
mov ecx, 0x80070057
call fcn.180004f88
int3
mov rax, qword [rdi]
sub r14d, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or eax, r14d
jge 0x180016407
mov rcx, rdi
call fcn.180005910
lea r9, [rbp - 0x2c]
mov r8, qword [rdi]
mov rdx, qword [r15]
lea rcx, [rbp - 0x18]
call fcn.180013d80
mov esi, eax
mov rcx, qword [rdi]
xor r14d, r14d
test rcx, rcx
jne 0x18001642c
mov eax, r14d
jmp 0x180016439
movsxd rdx, dword [rcx - 0xc]
call fcn.18001ccb8
test eax, eax
js 0x180016476
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x180016476
mov dword [rcx - 0x10], eax
movsxd rdx, eax
mov rax, qword [rdi]
mov word [rax + rdx*2], r14w
test esi, esi
je 0x18001645e
mov rdx, r12
mov rcx, rdi
call fcn.18000cc64
xor esi, esi
test rbx, rbx
je 0x180016481
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
mov qword [rbp - 0x18], rbx
jmp 0x180016481
mov ecx, 0x80070057
call fcn.180004f88
nop
test rbx, rbx
je 0x180016490
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r13]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800164b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800164d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800164ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001765c
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1800451a0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, 0x11c
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call fcn.18001acc0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
test eax, eax
jne 0x1800176bf
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1800176bf
movzx eax, bx
jmp 0x180017757
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x18001772d
cmp eax, 1
jne 0x180017752
mov eax, dword [rsp + 0x24]
cmp eax, 4
ja 0x1800176e1
mov eax, 0x401
jmp 0x180017757
cmp eax, 5
jne 0x18001770d
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x1800176f5
mov eax, 0x500
jmp 0x180017757
cmp eax, 1
jne 0x180017701
mov eax, 0x501
jmp 0x180017757
cmp eax, 2
jne 0x18001771a
mov eax, 0x502
jmp 0x180017757
cmp eax, 6
jne 0x18001771a
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x180017721
mov eax, 0x600
jmp 0x180017757
cmp eax, 1
jne 0x18001771a
mov eax, 0x601
jmp 0x180017757
cmp dword [rsp + 0x24], 4
jne 0x180017752
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180017752
cmp eax, 0xa
jne 0x180017748
mov eax, 0x40a
jmp 0x180017757
cmp eax, 0x5a
mov eax, 0x45a
je 0x180017757
mov eax, 0x400
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180018610
add rsp, 0x150
pop rbx
ret
Function at 0x1800177f4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov r15, r8
mov rdi, rdx
mov r14, rcx
and qword [rbp - 0x18], 0
and dword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov rax, qword [rdx]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x18001787d
mov r8, rdx
lea rdx, [0x180030b68]
lea rcx, [rbp + 0x58]
call fcn.180012f9c
nop
mov rdx, rax
mov rcx, rdi
call fcn.18000cc64
nop
mov rdx, qword [rbp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x18001787d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rbp - 0x28]
call fcn.18001650c
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.180004578
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rax]
mov rdx, 0xffffffff80000001
lea rcx, [rbp - 0x18]
call fcn.180008e4c
mov ebx, eax
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x1800178e7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x180017905
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test ebx, ebx
mov rbx, qword [rbp - 0x18]
jne 0x180017965
mov rsi, qword [r15]
mov r12, qword [r14]
xor eax, eax
test rsi, rsi
setne al
test eax, eax
je 0x18001794e
mov rcx, rsi
call fcn.18001cc9c
lea r8d, [rax*2 + 2]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x180017962
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rbp - 0x18], rbx
or esi, 0xffffffff
test rbx, rbx
je 0x180017974
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x180017992
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1800179b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1800179cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800180a8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180018139
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180018139
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180018139
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18001811d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180018117
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18001811f
add rdx, 0x28
jmp 0x1800180fc
xor edx, edx
test rdx, rdx
jne 0x180018128
xor al, al
jmp 0x18001813f
test dword [rdx + 0x24], 0x80000000
je 0x180018135
xor al, al
jmp 0x18001813f
mov al, 1
jmp 0x18001813f
xor al, al
jmp 0x18001813f
add rsp, 0x18
ret