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

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d895390
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8953a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8953e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8953d8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8953e3
add rax, 0x28
cmp rax, r9
jne 0x6d8953c4
xor eax, eax
ret

Function at 0x6d895480
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8b21f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8954ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8954ed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8954ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8954e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8954ef
add rax, 0x28
cmp rax, r9
jne 0x6d8954d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8955f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8b21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d895610
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d895608
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d89566d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d895664
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d895674
add rax, 0x28
cmp rax, r9
jne 0x6d895650
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d895690
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8b21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8956fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8956fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8956fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8956fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8956f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d895705
add rcx, 0x28
cmp rcx, rax
jne 0x6d8956e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d895718
jmp 0x6d8956fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d895726
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8956fe
test r9d, r9d
jg 0x6d895710
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d895a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140005130
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005164
cmp word [rcx], 0x5a4d
jne 0x140005164
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005164
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005164
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005070
test eax, eax
jne 0x140005180
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400050e0
test rax, rax
je 0x140005175
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000592f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005830
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400057d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400063f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006413
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006413
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400064c1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409b1e70]
mov r8, rcx
mov rcx, r9
call fcn.1400063f0
test eax, eax
je 0x1400064ed
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006414
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001470
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x248
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
movsxd rbp, r9d
mov ecx, 0xc8
mov rsi, r8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0xc8
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xc8
mov r8, rdi
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [0x140003340]
lea rcx, [rsp + 0x4b]
movsd xmm0, qword [str.Softwarea_]
xor edx, edx
mov word [rsp + 0x48], ax
mov r8d, 0xd7
movzx eax, byte [0x140003342]
mov byte [rsp + 0x4a], al
movsd qword [rsp + 0x40], xmm0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x40]
dec rdx
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x140001514
xor eax, eax
movzx ecx, byte [rdi + rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140001520
lea rcx, [rsp + 0x40]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001540
movzx eax, word [0x140003344]
lea r9, [rsp + 0x30]
mov word [rcx], ax
xor r8d, r8d
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x20], 1
mov edx, 0xf003f
call qword [sym.imp.SHLWAPI.dll_SHRegCreateUSKeyA]
test eax, eax
jne 0x140001616
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x240], r14
lea r8, [rsp + 0x130]
xor r14d, r14d
mov dword [rsp + 0x38], 0x100
xor edx, edx
mov dword [rsp + 0x20], r14d
mov ebx, r14d
call qword [sym.imp.SHLWAPI.dll_SHRegEnumUSKeyA]
test eax, eax
jne 0x140001600
nop word [rax + rax]
mov r8, rbp
lea rdx, [rsp + 0x130]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
inc ebx
mov dword [rsp + 0x38], 0x100
mov edx, ebx
mov dword [rsp + 0x20], r14d
lea r8, [rsp + 0x130]
call qword [sym.imp.SHLWAPI.dll_SHRegEnumUSKeyA]
test eax, eax
je 0x1400015c0
mov r14, qword [rsp + 0x240]
cmp eax, 0x103
jne 0x140001616
mov eax, 1
jmp 0x140001618
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001730
add rsp, 0x248
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140001640
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov rdi, rax
call fcn.140001070
xor ecx, ecx
mov edx, 0xbfd5
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140001698
lea rcx, str.memory_is_not_enough__n
call fcn.140001010
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, 0xbfd5
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.Successfully_Loaded__Press_any_key_to_continue__n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rdx, rbx
lea rcx, str.addr:__p_n
call fcn.140001010
call rbx
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180715a7d
Capabilities:
Encode data using xor

Disassembly:
not edx
push 0xfffffffffea59485
mov dword [rbx], edx
lea rsp, [rsp + 8]
jmp fcn.180728cd5
mov qword [rsp], r9
mov r9d, 0x4a318b96
or r9w, r9w
xor r9b, r9b
push r8
lea r9, [0x18072b520]
mov r8d, 0xc09e25ae
movzx r8d, byte [rcx]
push 0x55adb509
xor r8d, edx
and r8d, 0xff
mov r8d, dword [r9 + r8*4]
shr edx, 8
xor edx, r8d
ror qword [rsp], 0xfd
inc rcx
xor edx, 0xc1b63584
ror word [rsp + 2], 0x48
dec rsi
lea rsp, [rsp + 8]
jne 0x180715a97
pop r8
mov r9d, 0x3036c514
push r9
mov r9, qword [rsp + r9 - 0x3036c50c]
lea rsp, [rsp + 0x10]
jmp 0x18070d8d3
Function at 0x140011104
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001e3b0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003b22a]
call fcn.1400119c9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001e407
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001e513
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001e4ac
cmp qword [rbp + 0x28], 0
jle 0x14001e4ac
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001e44c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011929
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001e502
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001e502
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001156e
Capabilities:
Terminate process

Disassembly:
jmp 0x140021540
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400116bd
Capabilities:
Parse pe header

Disassembly:
jmp 0x140022070
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140022090
xor al, al
jmp 0x140022111
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400220a3
xor al, al
jmp 0x140022111
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400220cd
xor al, al
jmp 0x140022111
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400220e1
xor al, al
jmp 0x140022111
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400220f3
xor al, al
jmp 0x140022111
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002210f
xor al, al
jmp 0x140022111
mov al, 1
add rsp, 0x38
ret
Function at 0x14001199c
Capabilities:
Write file on windows

Disassembly:
jmp 0x140019ad0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140033040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x14003b22a]
call fcn.1400119c9
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140019b36
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140019b3d
mov al, 1
jmp 0x140019cad
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.1400112ad
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.1400112ad
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1400117bc
movzx eax, al
test eax, eax
je 0x140019ba0
xor al, al
jmp 0x140019cad
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x140019c13
cmp dword [rbp + 0x160], 1
je 0x140019c1e
cmp dword [rbp + 0x160], 3
je 0x140019c9c
jmp 0x140019cab
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140019c6e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140019c6e
xor al, al
jmp 0x140019cad
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140019c89
mov dword [rbp + 0x154], 1
jmp 0x140019c93
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140019cad
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140019cad
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002aaf0]
call fcn.140011820
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1400114ab
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x180016ce4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.18001f748
mov rsi, rax
test rax, rax
je 0x180016d60
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x180016d5b
cmp dword [rbx], 0x40
jb 0x180016d5b
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x180016d5b
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x180016d64
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001ec64
Capabilities:
Extract resource via kernel32 functions

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, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x18001eccc
call fcn.180011d68
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18001eccc
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x18001ecee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.18001e650
mov esi, eax
test rdi, rdi
je 0x18001ecec
test rbx, rbx
je 0x18001ecec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18001f234
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xc8], 0
jne 0x18001f272
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x18001f326
call fcn.1800152cc
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x18001f291
mov ecx, 0x80004005
call fcn.180010cd0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.18014cfe0
test eax, eax
je 0x18001f2f9
cmp eax, 0xc
je 0x18001f2f3
cmp eax, 0x16
je 0x18001f2ed
cmp eax, 0x22
je 0x18001f2ed
cmp eax, 0x50
je 0x18001f2f9
call fcn.180013df0
int3
call fcn.180013df0
int3
call fcn.180013da8
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x18001f324
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180022138
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x18002219b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800221af
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800221af
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x1800221b4
cmp dword [rcx + 8], 0
je 0x1800221af
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1800221b4
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800255bc
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1801f74b0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1800255f2
xor eax, eax
jmp 0x18002563e
lea rcx, [rsp + 0x20]
call fcn.18014c1bc
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x18002561e
lea r8, [0x180175e1c]
lea rcx, [rsp + 0x20]
mov edx, 0x105
call fcn.18014d0b0
test eax, eax
jne 0x1800255ee
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x105
call fcn.18014d0b0
test eax, eax
jne 0x1800255ee
lea rcx, [rsp + 0x20]
call fcn.180018694
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18014bb30
add rsp, 0x240
pop rbx
ret
Function at 0x180028f08
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x180028f2e
mov r8, rdx
mov rdx, qword [rbx]
call fcn.180022138
jmp 0x180028f95
cmp byte [0x1801fd288], 0
jne 0x180028f72
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180028f62
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801fd280], rax
jmp 0x180028f69
mov rax, qword [0x1801fd280]
mov byte [0x1801fd288], 1
jmp 0x180028f79
mov rax, qword [0x1801fd280]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180028f8f
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x180028f95
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180060430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CCommonDialog.virtual_712
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x1800a8583
cmp dword [rcx + 0xd8], 0
jne 0x1800a8583
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.180011d68
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1800a84e8
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800a8454
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.180011d68
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1800a84b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.1800a7ee4
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret