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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404590]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004045a0]
mov dword [rax], 1
mov rax, qword [0x004045b0]
mov dword [rax], 1
mov rax, qword [0x00404580]
mov dword [rax], 1
mov rax, qword [0x00404470]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404570]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404530]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404420]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401b70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x401be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00407614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401d88
mov rax, qword [0x00407618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401c2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401cb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401c10
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x401dc2
mov rax, qword [0x00407618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401dd1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401cb0
sub eax, 4
and eax, 0xfffffffb
jne 0x401d40
add dword [0x00407614], 1
cmp ebx, 8
jae 0x401ce8
test bl, 4
jne 0x401d90
test ebx, ebx
je 0x401cd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401db0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401cd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x401d1a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00407618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x401c37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401cd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401cd9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00407618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4025b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402604
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4025fb
test r12, r12
je 0x4025fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4025e0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402830
Capabilities:
Parse pe header

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

Function at 0x402850
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 0x402895
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40288c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402897
add rax, 0x28
cmp rax, r9
jne 0x402878
xor eax, eax
ret

Function at 0x402940
Capabilities:
Enumerate pe sections

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

Function at 0x402aa0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404470]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402b0f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b0f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402b0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402b04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402b18
add rax, 0x28
cmp rax, r9
jne 0x402af0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402b30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404470]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402ba8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ba8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ba8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ba8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402b9c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402bb0
add rdx, 0x28
cmp rdx, r10
jne 0x402b88
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402bc0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402bce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402ba5
test r8d, r8d
jg 0x402bb8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14005b0a0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400af760], rbx
je 0x14005b107
cmp rax, rbx
jne 0x14005b0fa
mov ebx, 1
mov esi, ebx
jmp 0x14005b10c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14005b0df
mov ebx, 1
mov eax, dword [0x1400af768]
cmp eax, ebx
jne 0x14005b124
mov edi, AtlInternalQueryInterface
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14005b190
mov eax, dword [0x1400af768]
test eax, eax
jne 0x14005b185
mov dword [0x1400af768], ebx
lea r15, [0x140062ee0]
lea rdi, [0x140062ec8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14005b177
test eax, eax
jne 0x14005b17b
cmp qword [rdi], r14
je 0x14005b16c
mov rax, qword [rdi]
mov rcx, qword [0x140062e08]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14005b14e
test eax, eax
je 0x14005b18b
mov eax, 0xff
jmp 0x14005b2e6
mov dword [0x1400ae8a4], ebx
mov edi, AtlInternalQueryInterface
mov eax, dword [0x1400af768]
cmp eax, ebx
jne 0x14005b1b7
lea rdx, [0x140062ec0]
lea rcx, [0x140062e10]
call sub.msvcrt.dll__initterm
mov dword [0x1400af768], 2
test esi, esi
jne 0x14005b1c5
mov rax, r14
xchg qword [0x1400af760], rax
cmp qword [0x1400af780], r14
je 0x14005b1f8
lea rcx, [0x1400af780]
call fcn.14005b8f0
test eax, eax
je 0x14005b1f8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400af780]
mov r9, qword [0x140062e08]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14005b211
mov eax, 0xff
jmp 0x14005b2e6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14005b297
test ax, ax
je 0x14005b22c
test edx, edx
jne 0x14005b297
sub ax, bx
cmp ax, di
ja 0x14005b242
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14005b22c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140007150
mov dword [0x1400ae8a0], eax
cmp dword [0x1400ae8c0], r14d
jne 0x14005b280
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400ae8a4], r14d
jne 0x14005b295
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400ae8a0]
jmp 0x14005b2e6
cmp ax, 0x22
jne 0x14005b2ab
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14005b21a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140142000
add rsp, 0x28
jmp 0x14005b0a0
Function at 0x14001131b
Capabilities:
Terminate process

Disassembly:
jmp 0x140016120
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]
nop
add rsp, 0x28
ret
Function at 0x140011406
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017470
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017490
xor al, al
jmp 0x140017511
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400174a3
xor al, al
jmp 0x140017511
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 0x1400174cd
xor al, al
jmp 0x140017511
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400174e1
xor al, al
jmp 0x140017511
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400174f3
xor al, al
jmp 0x140017511
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001750f
xor al, al
jmp 0x140017511
mov al, 1
add rsp, 0x38
ret
Function at 0x140015270
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400115d2
movzx eax, al
test eax, eax
jne 0x140015290
mov ecx, 7
call fcn.1400114dd
nop
mov byte [rsp + 0x20], 0
call fcn.140011514
mov byte [rsp + 0x21], al
cmp dword [0x140022b78], 1
jne 0x1400152b4
mov ecx, 7
call fcn.1400114dd
nop
jmp 0x14001530c
cmp dword [0x140022b78], 0
jne 0x140015307
mov dword [0x140022b78], 1
lea rdx, [0x14001d660]
lea rcx, [0x14001d330]
call fcn.14001129e
test eax, eax
je 0x1400152e8
mov eax, 0xff
jmp 0x140015411
lea rdx, [0x14001d220]
lea rcx, [section..rdata]
call fcn.1400114fb
mov dword [0x140022b78], 2
jmp 0x14001530c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114c9
call fcn.14001142e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140015369
mov rcx, qword [rsp + 0x30]
call fcn.140011226
movzx eax, al
test eax, eax
je 0x140015369
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140029020]
nop
call fcn.140011474
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001539d
mov rcx, qword [rsp + 0x38]
call fcn.140011226
movzx eax, al
test eax, eax
je 0x14001539d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011582
nop
call fcn.1400154c0
mov dword [rsp + 0x28], eax
call fcn.140011406
movzx eax, al
test eax, eax
jne 0x1400153bc
mov ecx, dword [rsp + 0x28]
call fcn.140011073
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400153cb
call fcn.140011591
nop
xor edx, edx
mov cl, 1
call fcn.140011203
mov eax, dword [rsp + 0x28]
jmp 0x140015411
add rsp, 0x68
ret
Function at 0x140008e3c
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rcx
and dword [rax + 8], 0
lea r8, [rax + 8]
lea rdx, [0x140002858]
lea rcx, [rax - 0x20]
call fcn.140012f88
nop
mov edx, 0x3ef
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x3f3
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x3f0
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x3f4
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x3f1
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x3f5
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0x60]
mov qword [rsp + 0x20], r11
xor r9d, r9d
mov edx, 0x3ea
lea r8d, [r9 + 0x64]
mov rcx, qword [rdi + 0x48]
call fcn.140013aa4
mov qword [rdi + 0x100], rax
mov ebx, dword [rsp + 0x60]
test ebx, ebx
jns 0x140008f4e
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140008f6c
mov ebx, dword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140012fdc
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000d488
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [0x140023108]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, rcx
lea r8, [rsp + 0x40]
lea rdx, [0x140002de8]
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x40], 0x80004005
call fcn.140012f88
mov rcx, qword [rbx + 0x48]
xor r9d, r9d
lea r8d, [r9 + 0x25]
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edi, edi
cmp eax, edi
je 0x14000d62b
lea r8, [0x140002e18]
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov edx, 0x104
call fcn.140014828
cmp eax, edi
mov dword [rsp + 0x40], eax
jl 0x14000d635
mov rcx, qword [0x140023130]
lea rsi, [0x140023130]
cmp rcx, rsi
je 0x14000d557
bt dword [rcx + 0x1c], 0xd
jae 0x14000d557
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], 0xfb6
mov dword [rsp + 0x30], edi
lea edx, [rdi + 0x16]
lea r9d, [rdi + 6]
lea r8, [0x140001e88]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call fcn.140007a00
lea r9, [0x140002e38]
lea r8, [rsp + 0x60]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jg 0x14000d5c3
movzx r9d, ax
or r9d, 0x80070000
cmp eax, edi
cmovle r9d, eax
mov dword [rsp + 0x40], r9d
mov rcx, qword [0x140023130]
cmp rcx, rsi
je 0x14000d62b
test byte [rcx + 0x1c], 4
je 0x14000d62b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001e88]
mov edx, 0x17
call fcn.140005a48
jmp 0x14000d62b
mov rcx, qword [0x140023130]
mov r8, qword [rcx + 0x10]
cmp r8, rdi
je 0x14000d5ee
lea rcx, [0x140001b40]
mov r9b, 2
mov edx, 0x410
call fcn.140007960
mov rcx, qword [0x140023130]
cmp rcx, rsi
je 0x14000d627
bt dword [rcx + 0x1c], 0xd
jae 0x14000d627
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x38], 0xfb7
mov edx, 0x18
mov dword [rsp + 0x30], edi
lea r8, [0x140001e88]
lea r9d, [rdx - 0x12]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call fcn.140007a00
mov dword [rsp + 0x40], edi
cmp dword [rsp + 0x40], edi
jge 0x14000d6bd
mov rcx, qword [rbx + 0x50]
mov dword [rsp + 0x44], edi
call fcn.140006400
mov r9d, 0x104
lea r8, [rsp + 0x270]
mov rcx, rax
lea rax, [rsp + 0x44]
lea edx, [r9 - 0x7a]
mov qword [rsp + 0x20], rax
call fcn.140013e8c
cmp dword [rsp + 0x44], edi
jl 0x14000d6bd
mov rcx, qword [rbx + 0x50]
call fcn.140006400
mov r9d, 0x104
lea r8, [rsp + 0x480]
mov rcx, rax
lea rax, [rsp + 0x44]
lea edx, [r9 - 0x79]
mov qword [rsp + 0x20], rax
call fcn.140013e8c
cmp dword [rsp + 0x44], edi
jl 0x14000d6bd
lea r8, [rsp + 0x270]
lea rdx, [rsp + 0x480]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, dword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140012fdc
mov eax, ebx
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.14001d950
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140010dd0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140023108]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
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 + 0x48]
mov ebx, eax
test eax, eax
jne 0x140010ed4
test rcx, rcx
je 0x140010e4a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x140010e70
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140010dd0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x140010ed4
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
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 + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140010e58
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140010ec2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140010f34
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x140010edf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001d950
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140023108]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x140011d14
call fcn.1400102b4
mov ebx, eax
jmp 0x140011e55
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x140011d37
call fcn.1400102b4
mov ebx, eax
jmp 0x140011e4b
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x140011d5c
call fcn.1400102b4
mov ebx, eax
jmp 0x140011e4b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140011d95
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140011d8b
lea rcx, [rsp + 0x70]
call fcn.140010834
nop
mov eax, 0x8007000e
jmp 0x140011e6e
mov ecx, eax
cmp rcx, rbx
je 0x140011dd3
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140011dc9
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140011dd3
lea rcx, [rsp + 0x70]
call fcn.140010844
mov rax, qword [rsp + 0x70]
jmp 0x140011ddd
mov ecx, 0x80070057
call fcn.14000b564
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140011df4
cmp rax, rbx
jne 0x140011e00
mov ebx, 0x8007000e
jmp 0x140011e4b
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x140011e27
call fcn.1400102b4
mov ebx, eax
jmp 0x140011e4b
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140011ae0
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140011e6c
lea rcx, [rsp + 0x70]
call fcn.140010834
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14001d950
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret