joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r13, r9
mov r14, r8
mov rbx, rdx
mov r12, rcx
call fcn.140016c90
xor edi, edi
lea r8d, [rdi + 5]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14001718e
mov r8d, pe_nt_image_headers64
mov rdx, rbx
mov rcx, r12
mov qword [rsp + 0x50], rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, edi
test rax, rax
je 0x1400170fe
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov rdx, rsi
mov rcx, r12
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140017175
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140017175
mov rdx, rbp
mov rcx, rax
call fcn.14000b510
mov r9, r13
mov r8, r14
mov rbp, rax
mov rax, qword [rsp + 0x70]
mov rcx, r12
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rdi, rax
test rax, rax
jne 0x14001715c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rbp, rsi
je 0x14001717d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14001717d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x50]
test ebx, ebx
je 0x14001718e
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret
Function at 0x140018780
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x1b0
mov rax, qword [0x14006c270]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, qword [0x14006dd50]
mov r12, rcx
movzx edx, dx
mov r8d, pe_nt_image_headers64
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140018971
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140018971
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140018971
mov qword [rsp + 0x1a8], rsi
mov qword [rsp + 0x1a0], r13
mov qword [rsp + 0x198], r14
mov qword [rsp + 0x190], r15
xor r13d, r13d
mov r14d, 0x1234
mov r15d, 0x403
mov qword [rsp + 0x1e0], rbp
nop dword [rax]
movzx esi, word [rbx]
cmp r13w, si
je 0x14001892b
movzx eax, word [rbx + 2]
mov ebp, dword [rbx + 4]
add rbx, 8
cmp r15w, ax
jne 0x1400188aa
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov r8d, 3
mov rdx, rbx
mov qword [rsp + 0x70], rax
call fcn.140018650
mov rax, qword [rsp + 0x70]
mov rcx, qword [r12 + 8]
movzx edx, si
xor r9d, r9d
mov r8d, 0x143
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov rcx, qword [rsp + 0x70]
cmp rax, 0xffffffffffffffff
lea rax, [rsp + 0x78]
cmove edi, r13d
cmp rcx, rax
je 0x140018920
call fcn.14003409c
jmp 0x140018920
cmp r14w, ax
jne 0x140018920
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x70]
mov r8d, 3
mov rdx, rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], 0xffffffffffffffff
mov qword [rsp + 0x70], rax
call fcn.140018650
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rcx
cmp rcx, rax
je 0x1400188f7
call fcn.14003409c
mov rcx, qword [r12 + 8]
lea rax, [rsp + 0x30]
movzx edx, si
xor r9d, r9d
mov r8d, 0x40b
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp rax, 0xffffffffffffffff
cmove edi, r13d
add rbx, rbp
test edi, edi
jne 0x140018830
mov rbp, qword [rsp + 0x1e0]
mov r13, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x1a8]
mov r14, qword [rsp + 0x198]
mov r15, qword [rsp + 0x190]
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140034530
add rsp, 0x1b0
pop r12
pop rdi
pop rbx
ret
mov eax, edi
jmp 0x140018955
Function at 0x1400270d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbx, r8
mov rbp, rdx
mov r12, rcx
lea rcx, [rax - 0x40]
call fcn.140026bf0
nop
mov rax, qword [rbx]
or edi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x1400271a5
mov r8, rbx
lea rdx, [0x140050ac8]
lea rcx, [rsp + 0x68]
call fcn.140005790
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x58]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140027186
cmp dword [rbx + 0x10], 0
jl 0x140027177
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140027177
call fcn.1400026f0
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x14002716c
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x140027186
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140005390
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400271a5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor esi, esi
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400271f4
mov rsi, qword [rsp + 0x60]
test ebx, ebx
jne 0x140027243
mov dword [rsp + 0xb0], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140027243
mov eax, 0xd
cmp dword [rsp + 0xb8], 4
cmovne ebx, eax
test rsi, rsi
je 0x140027252
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140027270
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140027290
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbx, r8
mov ebp, edx
mov r12, rcx
lea rcx, [rax - 0x38]
call fcn.140026bf0
nop
mov rax, qword [rbx]
or edi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x140027361
mov r8, rbx
lea rdx, [0x140050ac8]
lea rcx, [rsp + 0x60]
call fcn.140005790
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x50]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140027342
cmp dword [rbx + 0x10], 0
jl 0x140027333
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140027333
call fcn.1400026f0
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140027328
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x140027342
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140005390
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140027361
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x1400273b5
mov esi, ebx
mov rbx, qword [rsp + 0x58]
test esi, esi
jne 0x1400273eb
mov dword [rsp + 0xa0], ebp
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test rbx, rbx
je 0x1400273fa
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x140027417
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140027430
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, r8
mov r12, rdx
mov r13, rcx
lea rcx, [rax + 0x20]
call fcn.140026bf0
nop
mov rax, qword [rbx]
or esi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x14002750a
mov r8, rbx
lea rdx, [0x140050ac8]
lea rcx, [rsp + 0x58]
call fcn.140005790
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0xb8]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400274eb
cmp dword [rbx + 0x10], 0
jl 0x1400274d9
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400274d9
call fcn.1400026f0
mov rdi, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400274cb
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rsp + 0xb8], rax
jmp 0x1400274eb
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0xb8]
call fcn.140005390
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002750a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ebp, ebp
mov ebx, ebp
mov qword [rsp + 0x50], rbp
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xb8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x140027563
mov edi, ebp
mov rbx, qword [rsp + 0x50]
test edi, edi
jne 0x1400275ac
mov rdi, qword [r12]
mov r12, qword [r13]
test rdi, rdi
setne bpl
test ebp, ebp
jne 0x14002757f
lea edi, [rbp + 0xd]
jmp 0x1400275ac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x1400275bb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0xb8]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x1400275db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140027600
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x80
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov rbx, r9
mov rbp, r8
mov r13, rdx
mov r12, rcx
lea rcx, [rax - 0x50]
call fcn.140026bf0
nop
mov rax, qword [rbx]
or edi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x1400276dc
mov r8, rbx
lea rdx, [0x140050ac8]
lea rcx, [rsp + 0x68]
call fcn.140005790
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x58]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400276bd
cmp dword [rbx + 0x10], 0
jl 0x1400276ae
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400276ae
call fcn.1400026f0
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400276a3
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x58], rax
jmp 0x1400276bd
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140005390
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400276dc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor r14d, r14d
mov esi, r14d
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140027733
mov ebx, r14d
mov rsi, qword [rsp + 0x60]
test ebx, ebx
jne 0x1400277a0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x54]
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rbp]
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov qword [r13], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x1400277a0
mov ebx, r14d
mov eax, 0xd
cmp dword [rsp + 0xc8], 3
cmovne ebx, eax
test rsi, rsi
je 0x1400277af
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1400277cd
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400277f0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbx, r9
mov ebp, r8d
mov r12, rdx
mov r13, rcx
lea rcx, [rax - 0x38]
call fcn.140026bf0
nop
mov rax, qword [rbx]
or edi, 0xffffffff
cmp dword [rax - 0x10], 0
je 0x1400278ca
mov r8, rbx
lea rdx, [0x140050ac8]
lea rcx, [rsp + 0x60]
call fcn.140005790
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x50]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400278ab
cmp dword [rbx + 0x10], 0
jl 0x14002789c
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14002789c
call fcn.1400026f0
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140027891
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
jmp 0x1400278ab
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140005390
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400278ca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x14002791e
mov esi, ebx
mov rbx, qword [rsp + 0x58]
test esi, esi
jne 0x140027941
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
lea r9d, [rsi + 3]
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test rbx, rbx
je 0x140027950
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14002796d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14002be90
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
seta al
add rsp, 0x28
ret

Function at 0x14002beb0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
ja 0x14002beca
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x18
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14002bfaf
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea rax, [rsp + 0x40]
lea edx, [r9 + 0x19]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14002bfa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002bfa4
mov edx, dword [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14002bf9f
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov r8, rdi
mov edx, 0x19
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14002bf96
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx ecx, byte [rax]
dec cl
movzx edx, cl
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [rax]
cmp ecx, 0x2000
jae 0x14002bf8b
mov ebx, 1
jmp 0x14002bf96
cmp ecx, 0x3000
sbb ebx, ebx
add ebx, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14002e4b0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x14006c270]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov ecx, VarUI2FromDisp
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x14002e520
test eax, eax
je 0x14002e520
lea r9, [rsp + 0x240]
lea rdx, str.ICNS
lea rcx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [rsp + 0x240]
mov rcx, rbx
call fcn.140006350
jmp 0x14002e538
mov rax, qword [0x14006bfe0]
lea rcx, [0x14006bfe0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140034530
add rsp, 0x460
pop rbx
ret
Function at 0x140032e44
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x14006de08]
test rcx, rcx
jne 0x140032d9b
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x140032d94
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140032dc6
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x140032d90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x14006de08], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x140032e39
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140032de9
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x14006de08]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140032e16
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x140032e39
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x14006de08]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140032e1d
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x140032d20

Function at 0x140039a58
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400398c8
Function at 0x14003a2d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14006c270]
jne 0x14003454a
rol rcx, 0x10
test cx, 0xffff
jne 0x140034546
repz ret
ror rcx, 0x10
jmp 0x14003a230
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14006e800]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14006e8f8]
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 0x14003a2b5
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, [0x14006e800]
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 0x14003a2d7
mov rax, qword [rsp + 0x88]
mov qword [0x14006e8f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14006e898], rax
mov rax, qword [0x14006e8f8]
mov qword [0x14006e770], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14006e880], rax
mov dword [0x14006e760], 0xc0000409
mov dword [0x14006e764], 1
mov rax, qword [0x14006c270]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14006c278]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14006e7f8], eax
mov ecx, 1
call fcn.140042008
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140053ba8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14006e7f8], 0
jne 0x14003a35e
mov ecx, 1
call fcn.140042008
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret