joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004190
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
push rdx
call 0x140060653
test rax, rax
je 0x1400041da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400041da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400041da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400041da
cmp dword [rcx + 0x84], 0xe
jbe 0x1400041da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400041dc
xor al, al
add rsp, 0x28
ret

Function at 0x1400112b0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400b7582
push 0xffffffffe8624713
call fcn.1402b17cb
mov dword [rbx - 0x3d261311], esp
xor al, byte [rdi + 0x3a]
push 0xffffffffffffffa6
out 0x8a, al
sti
xor bl, ah
mov bh, 0xe1
invalid

Function at 0x140013540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14001356d
xor al, al
jmp 0x1400136cf
mov rax, qword [0x1400336c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400336c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400336d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400336d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400336e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400336e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400336f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400336f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140033700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1400136c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x140013619
mov r11d, 2
jmp 0x14001363d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x140013633
mov r11d, 1
jmp 0x14001363d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1400136e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140013682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14001369a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1400136aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1400136b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x140013600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1400136ca
Function at 0x140003754
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400037d8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140006360]
cmp byte [rcx + rax], 0
je 0x1400037d8
dec r8
sub rdx, 1
jne 0x1400037be
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400049ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400049ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400049ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400049ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400049ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400049bc
xor al, al
add rsp, 0x28
ret
Function at 0x140769580
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140769707
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407695b1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140769597
add dl, dl
jne 0x1407695be
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076961e
xor eax, eax
add dl, dl
jne 0x1407695cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407696d5
add dl, dl
jne 0x1407695de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407695eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407695f8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140769605
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140769612
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407695a6
mov eax, 1
add dl, dl
jne 0x14076962e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076963b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140769623
sub eax, ebx
mov ebx, 1
jne 0x140769674
mov ecx, 1
add dl, dl
jne 0x140769656
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140769663
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076964b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407695a6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140769690
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14076969d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140769685
cmp eax, 0x7d00
jae 0x1407696c3
cmp eax, 0x500
jb 0x1407696be
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407695a6
cmp eax, 0x7f
ja 0x1407696c6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407695a6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407696fa
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407695a6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1722980
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x172298d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x172299d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1722985
lea eax, [rcx + 1]
jmp 0x17229ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x17229be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x17229a4
sub eax, 3
jb 0x17229de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1722a2d
sar eax, 1
movsxd rbp, eax
jb 0x1722a14
jmp 0x17229ec
add ebx, ebx
jne 0x17229ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1722a14
inc ecx
add ebx, ebx
jne 0x17229fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1722a14
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1722a0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x17229fc
add ecx, 2
jmp 0x1722a19
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01722942
jmp 0x172298d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x130a000]
mov eax, dword [rdi]
or eax, eax
je 0x1722a89
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1322000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1722a39
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1722a83
mov qword [rbx], rax
add rbx, 8
jmp 0x1722a59
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1722acd
cmp al, 0xef
ja 0x1722ab5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1722a95
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1722aa4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1722aa4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1722b21
sub rsp, 0xffffffffffffff80
jmp 0x4632e0
Function at 0x18000267c
Capabilities:
Get common file path

Disassembly:
push rdi
mov eax, 0x1670
call fcn.180188080
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1688], rbx
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x1660], rax
mov rbx, rcx
mov rdx, qword [rcx + 0x28]
mov edi, dword [rdx]
cmp edi, 1
je 0x180002833
cmp edi, 3
je 0x180002833
cmp edi, 2
jne 0x1800026dc
mov rdx, qword [rdx + 8]
call fcn.180002534
jmp 0x1800028c1
cmp edi, 4
jne 0x1800027be
and qword [rsp + 0x28], 0
mov rcx, qword [rcx + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x28]
call qword [rax + SysAllocStringByteLen]
mov r11d, eax
xor ecx, ecx
mov qword [rsp + 0x20], rcx
test eax, eax
js 0x180002731
mov r9, qword [rsp + 0x28]
test r9, r9
je 0x180002731
mov rax, qword [r9]
lea r8, [rsp + 0x20]
lea rdx, [0x1801928f0]
mov rcx, r9
call qword [rax]
mov r11d, eax
mov rcx, qword [rsp + 0x20]
xor eax, eax
mov qword [rsp + 0x30], rax
test r11d, r11d
js 0x180002783
test rcx, rcx
je 0x18000275a
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax + 0x48]
mov r11d, eax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
test r11d, r11d
js 0x180002783
test rax, rax
je 0x180002783
mov rcx, qword [rbx + 0x28]
mov r8, qword [rax]
mov rdx, qword [rcx + 0x20]
mov rcx, rax
call qword [r8 + 0x1c8]
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x180002796
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1800027a2
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov r9, qword [rsp + 0x28]
test r9, r9
je 0x1800028c1
mov rax, qword [r9]
mov rcx, r9
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x1800028c1
and word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x618
lea rcx, [rsp + 0x42]
call fcn.1801603e0
and word [rsp + 0x660], 0
xor edx, edx
mov r8d, 0xffe
lea rcx, [rsp + 0x662]
call fcn.1801603e0
mov edx, 0x30d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rdx, str.res:___s_shdoclc.dll_navcancl.htm
lea rcx, [rsp + 0x660]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x660]
mov rcx, rbx
call fcn.180002534
jmp 0x1800028c1
and word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x618
lea rcx, [rsp + 0x42]
call fcn.1801603e0
and word [rsp + 0x660], 0
xor edx, edx
mov r8d, 0xffe
lea rcx, [rsp + 0x662]
call fcn.1801603e0
mov edx, 0x30d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rdx, str.res:___s_shdoclc.dll_navcancl.htm
lea rcx, [rsp + 0x660]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x660]
mov rcx, rbx
call fcn.180002534
cmp edi, 3
jne 0x1800028c1
mov rdx, qword [rbx + 0x28]
xor r9d, r9d
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x1660]
xor rcx, rsp
call fcn.1801604e0
mov rbx, qword [rsp + 0x1688]
add rsp, 0x1670
pop rdi
ret
Function at 0x180003368
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 [0x180295a70]
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.1801603e0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 0x1e
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test bl, bl
je 0x1800033df
mov ecx, dword [rsp + 0x40]
cmp ecx, 0x1d
jae 0x1800033df
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.1801603e0
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 0x18000346a
test rbx, rbx
jne 0x18000346a
mov rcx, rax
lea eax, [rbx + 2]
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.18004a530
mov rbx, rax
sub rsi, 1
jne 0x18000340c
test rbx, rbx
je 0x18000347d
mov rcx, rbx
call fcn.18015fde0
test ebp, ebp
je 0x1800034ba
lea rcx, [rsp + 0x90]
mov rdx, rdi
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
mov ebx, eax
je 0x1800034a8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
neg eax
sbb ecx, ecx
and ecx, ebx
jne 0x1800034ba
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800034ba
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rdi], 0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1801604e0
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 0x18000520c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r12d, r8d
mov rbp, rdx
mov rbx, rcx
xor esi, esi
cmp rdx, rsi
je 0x180005248
mov word [rdx], si
cmp rcx, rsi
je 0x180005391
cmp word [rcx], si
je 0x180005391
cmp rdx, rsi
je 0x1800053a0
cmp r8d, esi
je 0x180005391
lea rcx, [0x1802886b8]
mov rax, qword [0x1802886b8]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov r8, rbx
lea rdx, str.CLSID_sInprocServer32
lea rcx, [rsp + 0x38]
call fcn.1800051e8
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x180005375
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x30], esi
mov word [rsp + 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.1801603e0
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x180005366
cmp dword [rsp + 0x30], 2
jne 0x18000533c
mov r8d, r12d
mov rdx, rbp
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x180005366
cmp dword [rsp + 0x30], 1
jne 0x180005366
mov eax, dword [rsp + 0x34]
shr eax, 1
cmp r12d, eax
jb 0x180005356
mov r12d, dword [rsp + 0x34]
shr r12d, 1
mov r8d, r12d
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.180160ce0
cmp rbx, rsi
je 0x180005375
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
cmp eax, esi
jg 0x180005391
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp rbp, rsi
je 0x1800053a0
mov rcx, rbp
call fcn.18015fd20
mov esi, eax
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1801604e0
add rsp, 0x270
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800092d8
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
xor ebx, ebx
call fcn.1801603e0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 2
jne 0x180009345
cmp dword [rsp + 0x24], 6
ja 0x180009330
jne 0x180009345
cmp dword [rsp + 0x28], ebx
jbe 0x180009334
mov bl, 1
jmp 0x180009345
cmp dword [rsp + 0x28], ebx
movzx eax, bl
mov ecx, 1
cmove eax, ecx
mov bl, al
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1801604e0
add rsp, 0x150
pop rbx
ret

Function at 0x180009ca0
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 0x180009cd4
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 0x180009cd7
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 0x18000a234
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 [0x180295a70]
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 0x18000a32d
test rcx, rcx
je 0x18000a2a2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test ebx, ebx
mov qword [rsp + 0x40], rcx
jmp 0x18000a2c8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.18000a234
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x18000a32d
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 0x18000a2b0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000a31a
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 0x18000a338
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1801604e0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18000c2c4
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 [0x180295a70]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r13, r9
mov r12, r8
mov rdi, rdx
mov rbx, rcx
call qword [0x1802886b0]
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 0x18000c33f
call fcn.180009b3c
mov ebx, eax
jmp 0x18000c484
mov r8, r13
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18000c362
call fcn.180009b3c
mov ebx, eax
jmp 0x18000c47a
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 0x18000c387
call fcn.180009b3c
mov ebx, eax
jmp 0x18000c47a
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 0x18000c3c1
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000c3b7
lea rcx, [rsp + 0x70]
call fcn.18000a1a8
nop
mov eax, 0x8007000e
jmp 0x18000c49d
mov ecx, eax
test eax, eax
je 0x18000c3fe
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000c3f4
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000c3fe
lea rcx, [rsp + 0x70]
call fcn.18000a1b0
mov rbx, qword [rsp + 0x70]
jmp 0x18000c408
mov ecx, 0x80070057
call fcn.180001000
lea rbx, [rsp + 0x78]
mov qword [rsp + 0x70], rbx
jmp 0x18000c41d
test rbx, rbx
jne 0x18000c429
mov ebx, 0x8007000e
jmp 0x18000c47a
call qword [0x1802886b0]
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 0x18000c455
call fcn.180009b3c
mov ebx, eax
jmp 0x18000c47a
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.18000c078
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000c49b
lea rcx, [rsp + 0x70]
call fcn.18000a1a8
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1801604e0
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000cd48
Capabilities:
Create thread

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 ebx, ebx
mov rsi, r9
mov rbp, r8
cmp r9, rbx
mov r12, rdx
mov rdi, rcx
je 0x18000cdc1
cmp qword [rcx], rbx
je 0x18000cd88
mov rcx, qword [rcx]
call fcn.1800229e4
cmp rax, rsi
jne 0x18000cdc1
jmp 0x18000cd98
mov rcx, r9
call fcn.1800228f4
cmp rax, rbx
mov qword [rdi], rax
je 0x18000cdc1
mov rax, qword [rsp + 0x70]
mov r9, qword [rsp + 0x60]
mov r8, qword [rdi]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x68]
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r12
ret

Function at 0x18000cec0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x4a0]
mov dil, dl
test rcx, rcx
je 0x18000cee5
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18000cef4
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18000cf2c
test dil, dil
je 0x18000cf0d
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x18], 0
and dword [rbx + 0x10], 0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18000cf40
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x20], 0
mov rcx, qword [rbx + 0x4a0]
test rcx, rcx
je 0x18000cf52
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18001999c
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x18001987c]
xor edx, edx
xor ebx, ebx
call qword [sym.imp.USER32.dll_EnumWindows]
cmp eax, ebx
jne 0x1800199cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret