joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054d20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140054d42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140054d51
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140054da2
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140054e11
mov rcx, rbp
call int.140047240
cmp rbx, 0xfff
jbe 0x140054df1
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140054e2a
cmp rbx, rax
ja 0x140054dc0
test rdi, rdi
je 0x140054e11
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140054e14
test al, 0xd4
clc
xchg esp, eax
xchg ebp, eax
add dword [rax + 0x1d98bff2], eax
or esi, dword [rdx + rsi*2 - 0x723752aa]
mov eax, 0x46922e3e
xchg edx, eax
invalid
invalid
Function at 0x140054e30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140054e51
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140054ecc
test rax, rax
jle 0x140054eac
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140054ecc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140054ecc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
movabs al, byte [0x2536a72f302e6f]
outsd dx, dword [rsi]
xor byte cs:[rdi], ch
cmpsd dword [rsi], dword [rdi]
and eax, 0x11e00200
invalid
pop rax
scasb al, byte [rdi]
or ecx, dword [rax + 0x58]
lahf
invalid

Function at 0x140056b34
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140c961df
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 0x140c96089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c9606f
add dl, dl
jne 0x140c96096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c960f6
xor eax, eax
add dl, dl
jne 0x140c960a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c961ad
add dl, dl
jne 0x140c960b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c960c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c960d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c960dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c960ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c9607e
mov eax, 1
add dl, dl
jne 0x140c96106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c96113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c960fb
sub eax, ebx
mov ebx, 1
jne 0x140c9614c
mov ecx, 1
add dl, dl
jne 0x140c9612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c9613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c96123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c9607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c96168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c96175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c9615d
cmp eax, 0x7d00
jae 0x140c9619b
cmp eax, 0x500
jb 0x140c96196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c9607e
cmp eax, 0x7f
ja 0x140c9619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c9607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c961d2
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 0x140c9607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b810]
mov dword [rax], 1
mov rax, qword [0x14000b820]
mov dword [rax], 1
mov rax, qword [0x14000b830]
mov dword [rax], 1
mov rax, qword [0x14000b7c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001634
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call sym.__main
lea rax, section..data
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0x1dc
mov rax, qword [rbp - 0x10]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400016a4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____VirtualAlloc_Failed_With_Error_:__d__n
mov rcx, rax
call dbg.printf
mov eax, 0xffffffff
jmp 0x140001790
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x1c], 0
lea rcx, [rbp - 0x1c]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140001720
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____VirtualProtect_Failed_With_Error_:__d__n
mov rcx, rax
call dbg.printf
mov eax, 0xffffffff
jmp 0x140001790
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
test rax, rax
jne 0x140001777
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____CreateThread_Failed_With_Error_:__d__n
mov rcx, rax
call dbg.printf
mov eax, 0xffffffff
jmp 0x140001790
lea rax, str.___Press__Enter__To_Quit_...
mov rcx, rax
call dbg.printf
call sym.getchar
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140001b10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x1400027e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000e108]
test eax, eax
je 0x14000287a
lea rax, [0x14000e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000e110]
mov qword [rbp - 8], rax
jmp 0x14000285e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002852
cmp qword [rbp - 0x10], 0
je 0x140002852
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002818
lea rax, [0x14000e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000287b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002980
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400029a8
mov eax, 0
jmp 0x1400029f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400029d1
mov eax, 0
jmp 0x1400029f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400029f1
mov eax, 0
jmp 0x1400029f6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400029fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002a7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a71
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002a71
mov rax, qword [rbp - 8]
jmp 0x140002a8f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002a44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x100010d2
Capabilities:
Delete registry key

Disassembly:
jmp 0x1000e3c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x1000e3ce
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x28
ret

Function at 0x100012f3
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x1000e620
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x10086540]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x50]
call fcn.100015af
mov r9d, 0x2001f
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.10001154
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1000e69c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x270], eax
lea rcx, [rsp + 0x50]
call fcn.1000150a
mov eax, dword [rsp + 0x270]
jmp 0x1000e760
mov dword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000e729
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.100012f3
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1000e71c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x274], eax
lea rcx, [rsp + 0x50]
call fcn.1000150a
mov eax, dword [rsp + 0x274]
jmp 0x1000e760
mov dword [rsp + 0x40], pe_nt_image_headers64
jmp 0x1000e6a4
lea rcx, [rsp + 0x50]
call fcn.100011ae
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.100010d2
mov dword [rsp + 0x278], eax
lea rcx, [rsp + 0x50]
call fcn.1000150a
mov eax, dword [rsp + 0x278]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1001d0c0
add rsp, 0x298
ret

Function at 0x10001334
Capabilities:
Set registry value

Disassembly:
jmp 0x1000f050
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x1000f068
cmp qword [rsp + 0x60], 0
je 0x1000f080
mov dword [rsp + 0x34], 1
jmp 0x1000f088
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1000f0a1
mov ecx, 0x80004005
call fcn.100010af
xor eax, eax
test eax, eax
jne 0x1000f06e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret
Function at 0x100013cf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x10001e70
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x40
sub rax, rcx
add rax, 0xaf00
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x108
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], 0
jmp 0x10001f58
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x20], eax
jae 0x10001fbc
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x28]
call fcn.1001cdc0
test eax, eax
jne 0x10001fba
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
jmp 0x10001fbe
jmp 0x10001f4d
xor eax, eax
add rsp, 0x68
ret

Function at 0x10001406
Capabilities:
Delete registry value

Disassembly:
jmp 0x1000e400
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x1000e40e
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret
Function at 0x100014a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1000bd00
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4f8
mov qword [rsp + 0x4c8], 0xfffffffffffffffe
mov rax, qword [0x10086540]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
call fcn.100014ab
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.100012d5
nop
mov rdx, qword [rsp + 0x500]
lea rcx, [rsp + 0x50]
call fcn.10001055
lea rcx, [rsp + 0x90]
call fcn.100010b9
nop
mov edx, 0x400
mov rcx, qword [rsp + 0x508]
call fcn.100015c3
mov qword [rsp + 0x38], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1000bdb5
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov r8, qword [rsp + 0x518]
mov rdx, qword [rsp + 0x510]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x1000bdf4
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x4b8], rax
cmp qword [rsp + 0x4b8], 0
jne 0x1000be2b
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov rdx, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x4b8]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
add eax, 1
cmp eax, dword [rsp + 0x60]
jae 0x1000be8b
mov dword [rsp + 0x4c0], 0x8007000e
lea rcx, [rsp + 0x90]
call fcn.100014b0
nop
lea rcx, [rsp + 0x78]
call fcn.1000128f
mov eax, dword [rsp + 0x4c0]
jmp 0x1000bfbc
mov eax, dword [rsp + 0x60]
add eax, 1
mov eax, eax
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.10001046
nop
lea rcx, [rsp + 0x90]
call fcn.100014bf
test rax, rax
jne 0x1000bec7
mov dword [rsp + 0x4b0], 0x8007000e
jmp 0x1000bf7c
lea rcx, [rsp + 0x90]
call fcn.100014bf
mov qword [rsp + 0x4d0], rax
call fcn.100014ab
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x4d0]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x1000bf29
call fcn.1000133e
mov dword [rsp + 0x4b0], eax
jmp 0x1000bf7c
mov eax, dword [rsp + 0x4a0]
mov qword [rsp + 0x4d8], rax
lea rcx, [rsp + 0x90]
call fcn.100014bf
mov rcx, qword [rsp + 0x4d8]
mov word [rax + rcx*2], 0
lea rcx, [rsp + 0x90]
call fcn.100014bf
mov r8d, dword [rsp + 0x520]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.10001244
mov dword [rsp + 0x4b0], eax
cmp qword [rsp + 0x48], 0
je 0x1000bf8f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x4b0]
mov dword [rsp + 0x4c4], eax
lea rcx, [rsp + 0x90]
call fcn.100014b0
nop
lea rcx, [rsp + 0x78]
call fcn.1000128f
mov eax, dword [rsp + 0x4c4]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1001d0c0
add rsp, 0x4f8
ret
Function at 0x1000155a
Capabilities:
Set registry value

Disassembly:
jmp 0x1000f110
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x1000f123
cmp qword [rsp + 0x70], 0
je 0x1000f13b
mov dword [rsp + 0x48], 1
jmp 0x1000f143
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1000f15c
mov ecx, 0x80004005
call fcn.100010af
xor eax, eax
test eax, eax
jne 0x1000f129
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x40], 1
jne 0x1000f174
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret

Function at 0x100015d7
Capabilities:
Set registry value

Disassembly:
jmp 0x1000eff0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x1000f003
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret