joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ddc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.140016d30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140016d30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000de30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140024384]
mov rbx, rcx
test esi, esi
jle 0x14000df60
mov rax, qword [0x140024388]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000de7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000df05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000de60
mov rcx, rbx
call fcn.14000e8a0
mov rdi, rax
test rax, rax
je 0x14000df82
mov rax, qword [0x140024388]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e9e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140024388]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000df67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000defe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000df10
add dword [0x140024384], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140024388]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000defe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ddc0
nop dword [rax]
xor esi, esi
jmp 0x14000de88
mov rax, qword [0x140024388]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ddc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ddc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e510
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400243e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400243c0]
test rbx, rbx
je 0x14000e56c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000e563
test eax, eax
jne 0x14000e563
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e548
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000e8a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001f800]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e8c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e8c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e8c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e91d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000e914
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e8c0
add rax, 0x28
cmp rax, r9
jne 0x14000e900
xor eax, eax
ret

Function at 0x14000e920
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001f800]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000e93f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e948
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e93f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000e9e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001f800]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e9ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000ea08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002b90
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140002b90
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rdi, rsp
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x30]
movsxd rax, dword [rsp + 0x30]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
add rsp, 0x20
pop rdi
ret

Function at 0x1400436c4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14004352c
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140013bc0]
mov dword [rax], 1
mov rax, qword [0x140013bd0]
mov dword [rax], 1
mov rax, qword [0x140013be0]
mov dword [rax], 1
mov rax, qword [0x140013b70]
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 0x140001ad0
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 0x1400027a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140017108]
test eax, eax
je 0x14000283a
lea rax, [0x1400170e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140017110]
mov qword [rbp - 8], rax
jmp 0x14000281e
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 0x140002812
cmp qword [rbp - 0x10], 0
je 0x140002812
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 0x1400027d8
lea rax, [0x1400170e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000283b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x18000ad10
Capabilities:
Terminate thread

Disassembly:
push rdi
mov eax, 0x30
call fcn.180050fd0
nop
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rdi, rcx
lea rax, vtable.CAnimationTaskImpl.1.0
mov qword [rcx], rax
lea rax, vtable.CAnimationTaskImpl.0
mov qword [rcx + 8], rax
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.USER32.dll_IsWindow]
nop
test eax, eax
je 0x18000ad65
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_DestroyWindow]
nop
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x18000ad8b
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
test eax, eax
je 0x18000ad8b
xor edx, edx
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
xor esi, esi
mov ebx, esi
cmp qword [rdi + 0x108], rbx
jbe 0x18000ae15
nop dword [rax + rax]
mov r8, qword [rdi + 0x100]
mov rax, qword [rdi + 0xe8]
mov rcx, rsi
test rax, rax
je 0x18000adc1
mov rdx, qword [rax]
test rdx, rdx
je 0x18000adc1
mov rcx, qword [rdx]
add r8, rbx
mov rax, rsi
test rcx, rcx
je 0x18000add7
mov rdx, qword [rcx]
test rdx, rdx
je 0x18000add7
mov rax, qword [rdx]
test rax, rax
mov rdx, rsi
je 0x18000ade2
mov rdx, qword [rax]
mov rcx, r8
shr rcx, 1
mov rax, qword [rdx + 0x10]
dec rax
and rcx, rax
mov rax, qword [rdx + 8]
and r8d, 1
mov rax, qword [rax + rcx*8]
mov rcx, qword [rax + r8*8]
mov rax, qword [rcx]
call qword [rax + 0x30]
nop
inc rbx
cmp rbx, qword [rdi + 0x108]
jb 0x18000ada0
lea rcx, [rdi + 0xe8]
call fcn.18000cf20
nop
lea rcx, [rdi + 0xe8]
call fcn.18000cf20
nop
mov edx, 0x10
mov rcx, qword [rdi + 0xe8]
call fcn.180050b00
nop
mov qword [rdi + 0xe8], rsi
lea rax, vtable.layered_window_impl.0
mov qword [rdi + 0x70], rax
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.USER32.dll_IsWindow]
nop
test eax, eax
je 0x18000ae6d
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.USER32.dll_DestroyWindow]
nop
mov rcx, qword [rdi + 0xc0]
test rcx, rcx
je 0x18000ae8b
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
test eax, eax
je 0x18000ae8b
mov qword [rdi + 0xc0], rsi
mov rcx, qword [rdi + 0x98]
test rcx, rcx
je 0x18000ae9d
call fcn.1800520f4
nop
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x18000aeb5
call qword [sym.imp.GDI32.dll_DeleteObject]
nop
test eax, eax
je 0x18000aeb5
mov qword [rdi + 0x60], rsi
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x18000aec9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [rdi + 0x50], rsi
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x18000aed8
call fcn.1800520f4
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18000af80
Capabilities:
Create thread

Disassembly:
push rsi
mov eax, 0x80
call fcn.180050fd0
sub rsp, rax
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r8, rdx
mov rsi, rcx
test rdx, rdx
jne 0x18000afb3
mov eax, 0x80004005
jmp 0x18000b16c
mov qword [rcx + 0x118], r8
mov rcx, r8
mov rax, qword [rdx]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x98], rbx
call qword [rax]
mov ebx, dword [rsp + 0x48]
mov qword [rsi + 0x68], rbx
call fcn.18000be50
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov dword [rsp + 0x28], 0xbb8
mov r8d, ebx
mov rcx, qword [rax + 8]
mov edx, 0x8021
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [rsp + 0x50], 0
jne 0x18000b162
mov rcx, qword [rsi + 0x118]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0x70], r14
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edx, dword [rsp + 0x44]
xorps xmm0, xmm0
mov ecx, dword [rsp + 0x40]
movdqu xmmword [rsp + 0x58], xmm0
call fcn.180010c20
mov rbp, rax
test rax, rax
je 0x18000b155
xor ecx, ecx
mov qword [rsp + 0x78], rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, rax
mov rdx, rbp
mov rbx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsi + 0x118]
mov rdx, rbx
mov rdi, rax
mov r8, qword [rcx]
call qword [r8 + 0x20]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsi + 0x60]
mov rdi, qword [rsp + 0x78]
test rcx, rcx
je 0x18000b0bd
cmp rcx, rbp
je 0x18000b0bd
call qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [rsi + 0x60], rbp
call fcn.18000be50
lea rcx, [rsp + 0x50]
mov r8, rsi
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x58]
mov dword [rsp + 0x28], 0xbb8
mov edx, 0x8050
mov rcx, qword [rax + 8]
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov rcx, qword [rsi + 0x118]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rsi
call fcn.18000aef0
mov r9, rsi
mov qword [rsp + 0x28], r14
lea r8, [0x18000b190]
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call fcn.1800a309c
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x18000b147
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8020
call qword [sym.imp.USER32.dll_SendMessageW]
test rbx, rbx
je 0x18000b155
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rbp, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x98]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180050f90
add rsp, 0x80
pop rsi
ret
Function at 0x180012c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180012cd5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180012cd5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180012cc5
nop
cmp rbx, rcx
jae 0x180012cd5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180012cb0
cmp rbx, rcx
jae 0x180012cd5
cmp word [rbx], 0
je 0x180012cd5
mov rax, rbx
jmp 0x180012cd7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180013b30
Capabilities:
Check if file exists
Delete file
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rdx, qword [rdx]
lea rbx, [rcx + 0x50]
mov rcx, qword [rcx + 0x50]
lea r8, [rdx - 0x18]
lea rdi, [rcx - 0x18]
cmp r8, rdi
je 0x180013ba9
cmp dword [rdi + 0x10], 0
jl 0x180013b9a
mov rax, qword [rdi]
cmp qword [r8], rax
jne 0x180013b9a
mov rcx, r8
mov qword [rsp + 0x58], rsi
call fcn.180013800
mov rsi, rax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x180013b8c
mov rcx, qword [rdi]
mov rdx, rdi
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rcx, [rsi + 0x18]
mov rsi, qword [rsp + 0x58]
mov qword [rbx], rcx
jmp 0x180013ba9
mov r8d, dword [rdx - 0x10]
mov rcx, rbx
call fcn.180013c30
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180013c1c
mov rcx, qword [rbx]
xor eax, eax
mov qword [rsp + 0x50], rax
cmp dword [rcx - 0x10], eax
je 0x180013c1c
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180013c08
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 0x40000000
jle 0x180013c1c
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1800153e0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
xor ecx, ecx
cmp al, 6
setae cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x180015400
Capabilities:
Check os version

Disassembly:
sub rsp, 0x188
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov ecx, dword [0x180141030]
xor eax, eax
test ecx, ecx
js 0x180015440
setne al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180050f90
add rsp, 0x188
ret
xor edx, edx
mov dword [0x180141030], eax
mov r8d, 0x118
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.18009b770
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1800154a4
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180015505
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180015505
lea rcx, [rsp + 0x20]
call rax
mov rax, qword [rsp + 0x20]
cmp ax, 9
je 0x1800154de
cmp ax, 6
jne 0x180015505
mov dword [0x180141030], 1
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180050f90
add rsp, 0x188
ret
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.180050f90
add rsp, 0x188
ret
Function at 0x180018ee0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x180018f95
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180018f61
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180018f80
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180018f80
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x180018f80
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x180153550], 0
jne 0x180018fe0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180018fd0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180153548], rax
mov byte [0x180153550], 1
jmp 0x180018fe7
mov rax, qword [0x180153548]
mov byte [0x180153550], 1
jmp 0x180018fe7
mov rax, qword [0x180153548]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x180018f6a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x18001a660
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.18001a100
mov ebx, eax
test eax, eax
jne 0x18001a777
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18001a751
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18001a660
mov ebx, eax
test eax, eax
jne 0x18001a777
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18001a700
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001a766
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.180018ee0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001a787
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180050f90
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001ac90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18001ad1e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18001ad1e
call fcn.180018c90
mov ebx, eax
jmp 0x18001ae42
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18001ad3f
call fcn.180018c90
jmp 0x18001ae31
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x18001ad62
call fcn.180018c90
jmp 0x18001ae31
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x18001ad84
mov ebx, 0x8007000e
jmp 0x18001ae33
mov ecx, eax
test eax, eax
je 0x18001adb9
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18001ae7a
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18001adb9
lea rcx, [rsp + 0x70]
call fcn.180018b70
jmp 0x18001adc3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18001add6
cmp qword [rsp + 0x70], 0
jne 0x18001ade5
mov ebx, 0x8007000e
jmp 0x18001ae33
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x18001ae0e
call fcn.180018c90
jmp 0x18001ae31
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18001a7b0
mov ebx, eax
test rdi, rdi
je 0x18001ae42
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18001ae59
lea rcx, [rsp + 0x70]
call fcn.180019d80
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180050f90
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.180010a30
int3