joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801ed760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
cmp r9, 2
jne 0x1801ed7f9
lea ecx, [r9 + 0x16]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1801ed7ed
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
lea rax, vtable.Gdiplus::Image.0
mov qword [rbx], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
movzx edx, bp
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
jmp 0x1801ed7f1
xor esi, esi
mov ebx, esi
mov qword [r14], rbx
jmp 0x1801ed8d7
movzx edx, bp
mov r8, r9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1801ed901
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1801ed901
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1801ed901
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1801ed8f8
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1801ed8f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1801ed8ef
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x30]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1801ed8ef
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1801ed8ef
call fcn.1801ed6c0
mov qword [r14], rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, r14
call fcn.1801ed920
mov rcx, qword [r14]
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x10], esi
test eax, eax
sete al
jmp 0x1801ed903
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x18]
jmp 0x1801ed760
Function at 0x1801edbc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebp, r8d
mov rdi, rdx
mov r14, rcx
cmp r9, 2
jne 0x1801ed7f9
lea ecx, [r9 + 0x16]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1801ed7ed
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
lea rax, vtable.Gdiplus::Image.0
mov qword [rbx], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
movzx edx, bp
lea r8, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 8], rax
jmp 0x1801ed7f1
xor esi, esi
mov ebx, esi
mov qword [r14], rbx
jmp 0x1801ed8d7
movzx edx, bp
mov r8, r9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1801ed901
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1801ed901
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1801ed901
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1801ed8f8
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1801ed8f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1801ed8ef
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x30]
lea edx, [rsi + 1]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1801ed8ef
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1801ed8ef
call fcn.1801ed6c0
mov qword [r14], rax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, r14
call fcn.1801ed920
mov rcx, qword [r14]
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x10], esi
test eax, eax
sete al
jmp 0x1801ed903
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x18]
jmp 0x1801ed760
Function at 0x1801fce90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x450
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0x460]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x1801fcee9
xor al, al
jmp 0x1801fcf3b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1801fcf14
cmp qword [rsp + 0x20], 0
je 0x1801fcf10
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x1801fcf3b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x468]
call fcn.18000d5a0
cmp qword [rsp + 0x20], 0
je 0x1801fcf39
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x450
pop rdi
ret

Function at 0x1801fe4b0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
mov dword [rsp + 0x30], 0x70
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0xe0], 0
je 0x1801fe50a
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
jmp 0x1801fe515
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1801fe59c
cmp qword [rsp + 0x68], 0x20
jbe 0x1801fe58b
mov dword [rsp + 0x20], 1
jmp 0x1801fe593
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
jmp 0x1801fe5b9
cmp qword [rsp + 0xd0], 0
je 0x1801fe5b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
xor al, al
add rsp, 0xa0
pop rdi
ret
Function at 0x1801fe8c0
Capabilities:
Check os version
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov rcx, qword [rsp + 0x3d0]
call fcn.180155b10
movzx eax, al
test eax, eax
jne 0x1801fe901
jmp 0x1801fea90
lea rax, [rsp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
mov dword [rsp + 0x80], VarUI4FromDisp
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x90], 2
jne 0x1801fe96e
cmp dword [rsp + 0x84], 5
jne 0x1801fe96e
cmp dword [rsp + 0x88], 0
jne 0x1801fe96e
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x1801fe987
xor r9d, r9d
mov r8d, 0x10
lea rdx, [rsp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, 2
imul rax, rax, 0x104
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x20a
jae 0x1801fe9a5
jmp 0x1801fe9aa
call fcn.180386f78
xor eax, eax
mov rcx, qword [rsp + 0x30]
mov word [rsp + rcx + 0x1a0], ax
mov rdx, qword [rsp + 0x3d0]
lea rcx, [rsp + 0x40]
call fcn.180004ad0
nop
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x60]
call fcn.180004a70
nop
lea rdx, [0x1803bff88]
lea rcx, [rsp + 0x40]
call fcn.180154780
lea rdx, [0x1803bff88]
lea rcx, [rsp + 0x60]
call fcn.180154780
lea rdx, [0x1803cbfd0]
lea rcx, [rsp + 0x40]
call fcn.180154780
lea rdx, [0x1803cbfd0]
lea rcx, [rsp + 0x60]
call fcn.180154780
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180154490
movzx eax, al
test eax, eax
jne 0x1801fea7b
lea rdx, [0x1803c17e8]
lea rcx, [rsp + 0x40]
call fcn.180009d90
lea rcx, [rsp + 0x40]
call fcn.180004980
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0x60]
call fcn.1800049c0
nop
lea rcx, [rsp + 0x40]
call fcn.1800049c0
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x3c0
pop rdi
ret
Function at 0x1802002f0
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [r11 - 0x50], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], 7
mov word [rsp + 0x30], bp
lea r8d, [rbp + 0x26]
lea rdx, str.98B9F6E6_463F_4E42_874C_927C4C84A8F7
lea rcx, [r11 - 0x48]
call fcn.180004ea0
nop
mov qword [rbx + 8], rbp
mov word [rbx + 0x10], bp
cmp qword [rsp + 0x40], rbp
je 0x180200377
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
jmp 0x18020037a
mov r8, rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
test rax, rax
je 0x18020039e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18020039e
mov byte [rbx + 0x11], 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1802003e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802003de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802003de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
lea rcx, [rbx + 0x18]
mov rdx, rdi
call fcn.180004ad0
nop
lea rcx, [rbx + 0x38]
mov rdx, rsi
call fcn.180004ad0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x180200e60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rsi, r8
movzx edi, dl
test r8, r8
jne 0x180200e96
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov byte [rsp + 0x50], 0
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x50], bl
test bl, bl
je 0x180200f26
mov rdx, rsi
mov ecx, 0xf
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x180200f26
mov edx, 4
mov ecx, 0x2042
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x180200f12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x180200ef1
neg dil
sbb ecx, ecx
add ecx, 6
mov dword [rax], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea rcx, str.Preferred_DropEffect
call qword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ecx, eax
mov rdx, rbx
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete bl
mov byte [rsp + 0x50], bl
mov dil, 1
jmp 0x180200f29
xor dil, dil
test bl, bl
je 0x180200f3a
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rsp + 0x50]
movzx eax, dil
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180200f50
Capabilities:
List drag and drop files
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x4d0], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rsi, rdx
mov byte [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [rsp + 0x20], bl
test bl, bl
je 0x180201152
mov ecx, 0xf
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r15, rax
test rax, rax
je 0x180201152
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r12, rax
test rax, rax
je 0x180201152
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
mov r14d, eax
lea ecx, [rax - 1]
cmp ecx, 0xfffffffd
ja 0x180201149
xor r13d, r13d
mov edi, r13d
test eax, eax
je 0x180201134
nop dword [rax]
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x208
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, r12
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
dec eax
cmp eax, 0x207
ja 0x180201129
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180201070
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180004ea0
nop
mov rdx, qword [rsi + 8]
cmp qword [rsi + 0x10], rdx
je 0x1802010c9
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
add qword [rsi + 8], 0x20
jmp 0x1802010d7
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.18006c280
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180201115
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180201110
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180201142
call fcn.180386950
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r13w
inc edi
cmp edi, r14d
jb 0x180201010
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dil, 1
jmp 0x180201155
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor dil, dil
test bl, bl
je 0x180201166
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
sete byte [rsp + 0x20]
movzx eax, dil
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180202560
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1802025ce
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x1802025b4
jne 0x1802025ce
cmp dword [rsp + 0x28], 0
jbe 0x1802025ce
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret

Function at 0x1802025f0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x18020264a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret

Function at 0x180202670
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1802026de
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x1802026c4
jb 0x1802026de
cmp dword [rsp + 0x28], 1
jb 0x1802026de
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret

Function at 0x180202700
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18020276e
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x180202754
jb 0x18020276e
cmp dword [rsp + 0x28], 2
jb 0x18020276e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
Function at 0x180202790
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18020287e
mov eax, dword [rsp + 0x24]
cmp eax, 4
jbe 0x18020287e
cmp eax, 5
jne 0x18020280e
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180202807
sub eax, 1
je 0x18020287e
cmp eax, 1
jne 0x180202807
lea ebx, [rax + 2]
jmp 0x18020287e
mov ebx, 1
jmp 0x18020287e
cmp eax, 6
jne 0x180202863
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x180202853
sub eax, 1
je 0x180202849
sub eax, 1
je 0x180202838
cmp eax, 1
jne 0x18020287e
cmp byte [rsp + 0x13a], al
jne 0x18020287e
lea ebx, [rax + 0xc]
jmp 0x18020287e
cmp byte [rsp + 0x13a], 1
jne 0x18020287e
mov ebx, 0xb
jmp 0x18020287e
mov ebx, 7
lea eax, [rbx + 2]
jmp 0x180202873
cmp byte [rsp + 0x13a], 1
setne bl
add ebx, 5
jmp 0x18020287e
cmp eax, 0xa
jne 0x18020287e
cmp dword [rsp + 0x28], ebx
jne 0x18020287e
mov eax, 0xf
cmp byte [rsp + 0x13a], 1
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x150
pop rbx
ret

Function at 0x1802028a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1802028fa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 0xa
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
Function at 0x180202b30
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
mov rsi, r8
mov r15, rdx
mov r14, rcx
test rdx, rdx
jne 0x180202b6f
xor al, al
jmp 0x180202cd7
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
lea r9, [rsp + 0x38]
call fcn.1802032f0
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
test al, al
je 0x180202be4
cmp byte [rsp + 0xc0], r12b
je 0x180202bf6
mov rax, qword [rbx + 0x10]
cmp qword [rsp + 0x48], rax
je 0x180202bc1
xor al, al
jmp 0x180202be0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180202bce
mov rdx, qword [rbx]
lea rcx, [rsp + 0x38]
cmp rbp, 8
cmovae rcx, rdi
call fcn.180154520
test al, al
jne 0x180202c37
cmp byte [r14], 0
je 0x180202c3b
mov byte [r14 + 1], 1
mov bl, 1
jmp 0x180202c82
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180202c03
mov rcx, qword [rbx]
lea r8, [rsp + 0x38]
cmp rbp, 8
cmovae r8, rdi
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rbx + 0x10]
jne 0x180202be4
test rdx, rdx
je 0x180202c37
sub r8, rcx
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x180202be4
add rcx, 2
sub rdx, 1
jne 0x180202c23
mov bl, 1
jmp 0x180202c82
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x180202c49
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x180202c53
mov rsi, qword [rsi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180202c80
mov bl, 1
jmp 0x180202c82
xor bl, bl
cmp rbp, 8
jb 0x180202cc0
lea rdx, [rbp*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180202cb8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180202cb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180386950
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret