joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bfd0
Capabilities:
Access peb ldr_data
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ac080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov esi, edx
mov dword [rsp + 0x20], ecx
mov ecx, dword [0x1400b1b20]
mov rax, qword gs:[0x58]
mov ebp, 4
mov rdi, qword [rax + rcx*8]
xor ebx, ebx
mov eax, dword [rdi + rbp]
cmp dword [0x1400b1470], eax
jg 0x14001c173
mov eax, dword [rdi + rbp]
cmp dword [0x1400b1480], eax
jg 0x14001c12b
mov ecx, dword [rsp + 0x20]
call fcn.14001bb30
test rax, rax
jne 0x14001c0fa
mov edx, dword [rsp + 0x20]
movzx ecx, dl
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
movzx eax, byte [rsp + 0x21]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x22]
xor rcx, rax
imul rcx, r8
movzx eax, byte [rsp + 0x23]
xor rcx, rax
imul rcx, r8
mov r8, qword [0x1400b1460]
and r8, rcx
add r8, r8
mov rcx, qword [0x1400b1448]
mov rax, qword [rcx + r8*8 + 8]
cmp rax, qword [0x1400b1438]
je 0x14001c0c5
mov rcx, qword [rcx + r8*8]
cmp edx, dword [rax + 0x10]
je 0x14001c0c2
cmp rax, rcx
je 0x14001c0c5
mov rax, qword [rax + 8]
cmp edx, dword [rax + 0x10]
jne 0x14001c0b4
mov rbx, rax
test rbx, rbx
je 0x14001c127
mov rbx, qword [0x1400b1478]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [0x1400b1430]
call fcn.14001b020
mov rcx, qword [rax]
add rcx, 0x18
cmp qword [rcx + 0x18], 0x10
jb 0x14001c0f8
mov rcx, qword [rcx]
call rbx
mov edx, esi
mov rcx, rax
call fcn.14001c280
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001d520
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor eax, eax
jmp 0x14001c104
lea rcx, [0x1400b1480]
call fcn.14001da78
cmp dword [0x1400b1480], 0xffffffff
jne 0x14001c031
mov ecx, 0xd4250f59
call fcn.14001bb30
mov rcx, rax
mov edx, 0xb2844d9f
call fcn.14001c280
mov qword [0x1400b1478], rax
lea rcx, [0x1400b1480]
call fcn.14001da18
jmp 0x14001c031
lea rcx, [0x1400b1470]
call fcn.14001da78
cmp dword [0x1400b1470], 0xffffffff
jne 0x14001c022
mov dword [rsp + 0x38], 0xdedc9aff
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x50], 0xc
movsd xmm0, qword [str.advapi32.dll]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140044b80]
mov dword [rsp + 0x48], eax
mov byte [rsp + 0x4c], 0
mov ecx, 0x38
call fcn.14001d3d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [0x1400b1438], rax
mov qword [0x1400b1448], rbx
xorps xmm0, xmm0
movdqa xmmword [0x1400b1450], xmm0
mov qword [0x1400b1460], 7
mov qword [0x1400b1468], 8
movss xmm0, dword [0x140044bc4]
movss dword [0x1400b1430], xmm0
mov r8, rax
mov edx, 0x10
lea rcx, [0x1400b1448]
call fcn.14001b790
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400b1430]
call fcn.14001b310
nop
lea r9, [fcn.14001b730]
mov edx, 0x28
lea r8d, [rdx - 0x27]
lea rcx, [rsp + 0x38]
call fcn.14001d5d0
lea rcx, [0x14003f910]
call fcn.14001d8d8
nop
lea rcx, [0x1400b1470]
call fcn.14001da18
jmp 0x14001c022
Function at 0x14001c280
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
movsxd rax, dword [rcx + 0x3c]
xor r11d, r11d
mov r12d, edx
mov rbp, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov ebx, dword [r8 + 0x20]
mov edi, dword [r8 + 0x24]
add rbx, rcx
mov r15d, dword [r8 + 0x1c]
add rdi, rcx
mov r14d, dword [r8 + 0x18]
add r15, rcx
test r14d, r14d
je 0x14001c34b
movzx eax, word [rdi]
xor r9d, r9d
mov r10d, dword [rbx]
add r10, rbp
mov esi, dword [r15 + rax*4]
add rsi, rbp
movzx eax, byte [r10]
test al, al
je 0x14001c325
nop dword [rax + rax]
movzx r8d, al
lea r10, [r10 + 1]
sub al, 0x41
cmp al, 0x19
lea ecx, [r8 + 0x20]
movzx edx, cl
cmova edx, r8d
movsx eax, dl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
movzx eax, byte [r10]
test al, al
jne 0x14001c2f0
lea eax, [r9 + r9*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp eax, r12d
je 0x14001c368
inc r11d
add rdi, 2
add rbx, 4
cmp r11d, r14d
jb 0x14001c2d0
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
mov rax, rsi
jmp 0x14001c34d

Function at 0x14001e3b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e3fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e3fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e3fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e3fe
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e3fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001e400
xor al, al
add rsp, 0x28
ret

Function at 0x14002c888
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002c6b4
Function at 0x180006994
Capabilities:
Create directory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rdi, rcx
mov rax, qword [rcx]
movzx edx, word [rax]
neg dx
sbb ebx, ebx
not ebx
and ebx, 0x80070057
jl 0x180006ace
lea rcx, [r11 - 0x58]
call fcn.180006854
nop
mov rax, qword [rsp + 0x80]
neg rax
sbb rdx, rdx
lea rax, [rsp + 0x78]
and rdx, rax
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180006a1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180006aba
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x180006aba
and qword [rsp + 0xb8], 0
lea rdx, [rsp + 0xb8]
lea rcx, str.S_1_5_18
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x180006aa6
lea rcx, str.SeSecurityPrivilege
call fcn.1800066c8
test eax, eax
je 0x180006aa6
lea rcx, str.SeTakeOwnershipPrivilege
call fcn.1800066c8
test eax, eax
je 0x180006aa6
mov rax, qword [rdi]
cmp dword [rax - 8], 1
jle 0x180006a72
mov edx, dword [rax - 0x10]
mov rcx, rdi
call fcn.1800021c4
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9, qword [rsp + 0xb8]
mov edx, 1
lea r8d, [rdx + 0x1c]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x180006aba
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x180006ace
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x180006aee
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x180006c84
Capabilities:
Check if file exists
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x18005a960]
xor rax, rsp
mov qword [rsp + 0x840], rax
and word [rsp + 0x20], 0
mov rbp, rcx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x81e
call fcn.180026a20
lea rcx, [0x18005c3b0]
call fcn.180006b3c
test rax, rax
mov rdx, rax
je 0x180006ce6
cmp word [rax], 0
je 0x180006ce6
xor ebx, ebx
jmp 0x180006ceb
mov ebx, 0x80080004
xor eax, eax
test ebx, ebx
lea edi, [rax + 1]
js 0x180006d1e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x1e], 0x5c
je 0x180006d1e
mov word [rsp + rcx*2 + 0x20], 0x5c
add eax, edi
movsxd rsi, eax
jmp 0x180006d75
test edi, edi
je 0x180006d79
and word [rsp + rsi*2 + 0x20], 0
lea rcx, [rsp + rsi*2 + 0x20]
lea rdx, [0x180041700]
call fcn.180006770
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov edi, eax
jne 0x180006d75
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x180006d75
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x180006d23
mov eax, ebx
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.180026960
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180006da4
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x18005a960]
xor rax, rsp
mov qword [rsp + 0x430], rax
and word [rsp + 0x20], 0
mov rsi, rcx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x40e
call fcn.180026a20
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x180006e13
mov word [rsp + rbx*2 + 0x20], 0x5c
add ebx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movsxd rbx, ebx
lea rdi, [rsp + rbx*2 + 0x20]
and word [rsp + rbx*2 + 0x20], 0
lea rdx, [0x180041700]
mov rcx, rdi
call fcn.180006770
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180006e21
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1800068cc
test eax, eax
mov ebx, eax
js 0x180006e6f
lea rcx, [rsp + 0x20]
call fcn.180006c84
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.180026960
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800078b0
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x18005a960]
xor rax, rsp
mov qword [rsp + 0xe0], rax
and word [rsp + 0x50], 0
mov bl, dl
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x52]
lea r8d, [rdx + 0x3a]
call fcn.180026a20
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x1e
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test bl, bl
je 0x180007927
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x1d
jae 0x180007927
mov word [rsp + rcx*2 + 0x50], 0x24
add ecx, 1
mov dword [rsp + 0x40], ecx
xor edx, edx
lea rcx, [rsp + 0x91]
mov byte [rsp + 0x90], 0
lea r8d, [rdx + 0x43]
call fcn.180026a20
and dword [rsp + 0x44], 0
xor ebx, ebx
lea esi, [rbx + 2]
mov dword [rsp + 0x48], 0x44
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebp, eax
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x1800079b2
test rbx, rbx
jne 0x1800079b2
mov rcx, rax
lea eax, [rbx + 2]
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.18001cc60
mov rbx, rax
sub rsi, 1
jne 0x180007954
test rbx, rbx
je 0x1800079c5
mov rcx, rbx
call fcn.180026690
test ebp, ebp
je 0x180007a02
lea rcx, [rsp + 0x90]
mov rdx, rdi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
mov ebx, eax
je 0x1800079f0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
neg eax
sbb ecx, ecx
and ecx, ebx
jne 0x180007a02
mov rcx, qword [rdi]
test rcx, rcx
je 0x180007a02
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rdi], 0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180026960
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x18000820c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x20], 0
and qword [rax - 0x28], 0
and qword [rax - 0x18], 0
mov rsi, r8
mov r8, rdx
mov rdx, qword [rcx]
mov rbp, r9
mov dword [rax - 0x30], 0x2001f
and dword [rax - 0x38], 0
lea rcx, [rax - 0x18]
xor r9d, r9d
call fcn.180007738
test eax, eax
mov edi, eax
jne 0x180008293
test rsi, rsi
jne 0x180008264
mov ecx, 0x80004005
call fcn.180001000
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x40]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp qword [rsp + 0x40], 0
je 0x1800082a6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
Function at 0x1800082b8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x18005a960]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
mov ebx, eax
jne 0x1800083b1
test rcx, rcx
je 0x180008326
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test ebx, ebx
mov qword [rsp + 0x40], rcx
jmp 0x18000834c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1800082b8
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x1800083b1
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x48], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180008334
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000839e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x1800083bc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180026960
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800083e4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
and qword [rax + 0x20], 0
mov rsi, rcx
mov rdi, r8
mov r8, rdx
mov dword [rax - 0x20], 2
and dword [rax - 0x28], 0
lea rcx, [rax + 0x20]
xor r9d, r9d
mov rdx, 0xffffffff80000000
call fcn.180007738
test eax, eax
jne 0x18000849c
test rdi, rdi
jne 0x18000843a
mov ecx, 0x80004005
call fcn.180001000
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x68]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x18000849c
lea rdx, str.CLSID
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov r8, rsi
call fcn.18000820c
test eax, eax
jne 0x18000849c
cmp qword [rsp + 0x68], 0
je 0x180008498
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1800084ba
mov ecx, eax
call fcn.180007724
cmp qword [rsp + 0x68], 0
mov edi, eax
je 0x1800084b8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800097a4
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 r12
sub rsp, 0x30
xor edi, edi
mov rbx, r8
mov rbp, rdx
cmp r8, rdi
mov r12, rcx
jne 0x1800097d8
mov ecx, 0x80004005
call fcn.180001000
int3
mov rsi, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 1
lea rsi, [rsi + rax*2]
lea edi, [rdi + rax*2]
jne 0x1800097db
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
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 r12
ret
Function at 0x18000cc38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x18005a960]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r13, r9
mov r12, r8
mov rdi, rdx
mov rbx, rcx
call qword [0x18005a778]
and qword [rsp + 0x60], 0
mov qword [rsp + 0x50], rbx
and qword [rsp + 0x48], 0
and qword [rsp + 0x70], 0
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000ccb3
call fcn.180007700
mov ebx, eax
jmp 0x18000cdf8
mov r8, r13
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18000ccd6
call fcn.180007700
mov ebx, eax
jmp 0x18000cdee
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18000ccfb
call fcn.180007700
mov ebx, eax
jmp 0x18000cdee
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
add eax, 1
cmp eax, edi
jae 0x18000cd35
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000cd2b
lea rcx, [rsp + 0x70]
call fcn.180009cac
nop
mov eax, 0x8007000e
jmp 0x18000ce11
mov ecx, eax
test eax, eax
je 0x18000cd72
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000cd68
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000cd72
lea rcx, [rsp + 0x70]
call fcn.180009cb4
mov rbx, qword [rsp + 0x70]
jmp 0x18000cd7c
mov ecx, 0x80070057
call fcn.180001000
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x70], rbx
jmp 0x18000cd91
test rbx, rbx
jne 0x18000cd9d
mov ebx, 0x8007000e
jmp 0x18000cdee
call qword [0x18005a778]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8, r12
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x18000cdc9
call fcn.180007700
mov ebx, eax
jmp 0x18000cdee
mov ecx, eax
mov rax, qword [rsp + 0x70]
and word [rax + rcx*2], 0
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000c658
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000ce0f
lea rcx, [rsp + 0x70]
call fcn.180009cac
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180026960
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000fd68
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x18000fdad
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x18000fe0c
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0xc58
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18000fde7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x18000fe0c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18000fe0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180011af4
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xec0
mov rax, qword [0x18005a960]
xor rax, rsp
mov qword [rsp + 0xeb0], rax
mov ebp, r9d
mov r14, r8
mov r13, rdx
mov r12, rcx
call fcn.18000fe9c
test eax, eax
mov esi, eax
jne 0x180011b39
mov ebx, 0x800703eb
jmp 0x180011c89
and word [rsp + 0xca0], 0
lea rcx, [rsp + 0xca2]
xor edx, edx
mov r8d, 0x206
call fcn.180026a20
lea rdx, [rsp + 0xca0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rsp + 0xca0]
lea rdx, [0x180044a80]
lea rcx, [rsp + 0xca0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0xca0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x180011bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x180011c7a
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0xc58
call fcn.180026a20
lea rcx, [rsp + 0x40]
mov r9, r14
mov r8, r13
mov rdx, r12
call fcn.1800103cc
test eax, eax
mov ebx, eax
js 0x180011c7a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [rsp + 0x40]
mov rdx, rdi
mov dword [rsp + 0xc78], eax
mov eax, dword [rsp + 0xf20]
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xf38]
mov dword [rsp + 0xc8c], eax
mov eax, dword [rsp + 0xf30]
mov dword [rsp + 0xc90], eax
call fcn.18000fd68
test eax, eax
mov ebx, eax
js 0x180011c7a
mov byte [rsp + 0x30], 0
and qword [rsp + 0x28], 0
or dword [rsp + 0x20], 0xffffffff
lea rdx, str.RequestDlpScanLToH
mov r9b, 1
mov r8, rdi
mov ecx, esi
call fcn.180011764
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x180011c89
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xeb0]
xor rcx, rsp
call fcn.180026960
add rsp, 0xec0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret