joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028160
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
call fcn.1400311e0
test rax, rax
je 0x1400281a9
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
call fcn.14000c420
test rax, rax
jne 0x1400281d2
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
call fcn.1400311e0
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
call fcn.14000c420
xor eax, eax
jmp 0x1400283df
lea rcx, [rsp + 0x38]
call fcn.140003230
nop
mov rcx, qword [rsp + 0xc0]
add rcx, 0x18
lea rdx, [rsp + 0x40]
call fcn.140011080
mov rcx, qword [rsp + 0xc0]
add rcx, 0x18
lea rdx, [rsp + 0x68]
call fcn.140013f70
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400319d0
movzx eax, al
test eax, eax
je 0x1400282a4
lea rcx, [rsp + 0x40]
call fcn.140014f60
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
mov r8, rax
lea rdx, [rsp + 0x50]
call fcn.140021d80
mov rcx, qword [rsp + 0xc0]
add rcx, 0x50
lea rdx, [rsp + 0x78]
call fcn.140028e20
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140013e00
movzx eax, al
test eax, eax
je 0x140028295
lea rcx, [rsp + 0x50]
call fcn.140006700
mov rdx, rax
add rdx, 8
lea rcx, [rsp + 0x38]
call fcn.14000bd40
lea rcx, [rsp + 0x50]
call fcn.140006700
jmp 0x1400282a4
lea rcx, [rsp + 0x40]
call fcn.1400111a0
jmp 0x1400281f3
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
lea rdx, [rsp + 0x20]
call fcn.140011080
mov rcx, qword [rsp + 0xc8]
add rcx, 0x50
lea rdx, [rsp + 0x88]
call fcn.140013f70
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400319d0
movzx eax, al
test eax, eax
je 0x1400283a1
lea rcx, [rsp + 0x20]
call fcn.140014020
mov rcx, rax
add rcx, 8
call fcn.140011190
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140010ee0
test eax, eax
je 0x140028392
mov rdx, qword [rsp + 0xc0]
add rdx, 0x90
lea rcx, [rsp + 0x60]
call fcn.140007500
nop
lea rdx, [0x14006951c]
lea rcx, [rsp + 0x60]
call fcn.1400034d0
lea rcx, [rsp + 0x20]
call fcn.140014020
mov rdx, rax
add rdx, 8
lea rcx, [rsp + 0x60]
call fcn.140003490
lea rcx, [rsp + 0x60]
call fcn.140011190
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002837d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x60]
call fcn.1400038a0
lea rcx, [rsp + 0x20]
call fcn.1400111a0
jmp 0x1400282c2
cmp dword [rsp + 0x30], 0
je 0x1400283b5
mov dword [rsp + 0xa8], 1
jmp 0x1400283c0
mov dword [rsp + 0xa8], 0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0x38]
call fcn.1400038a0
mov eax, dword [rsp + 0x98]
add rsp, 0xb8
ret
Function at 0x140028520
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
lea r8, [0x1400284f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140028586
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
mov eax, 1
jmp 0x140028588
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400285a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x510
mov qword [rsp + 0x500], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x508], rax
lea rdi, [rsp + 0x30]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [rsp + 0x520]
add rcx, 0x90
lea rdx, [rsp + 0x30]
call fcn.140003450
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
mov r9, qword [rsp + 0x528]
mov r9, qword [r9]
mov r8, qword [rsp + 0x520]
mov r8, qword [r8 + 0x90]
lea rdx, str._s_s
call fcn.140005730
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
call fcn.140011190
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140028694
mov dword [rsp + 0x4f0], 1
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4f0]
jmp 0x140028829
xor eax, eax
mov word [rsp + 0x240], ax
lea rdi, [rsp + 0x242]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x450], 0
lea rdi, [rsp + 0x458]
xor eax, eax
mov ecx, 0x90
rep stosb byte [rdi], al
mov dword [rsp + 0x450], 0x98
mov rax, qword [rsp + 0x530]
mov qword [rsp + 0x458], rax
lea rax, [0x140069998]
mov qword [rsp + 0x468], rax
mov rcx, qword [rsp + 0x520]
add rcx, 0x90
call fcn.140011190
mov qword [rsp + 0x4a0], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x480], rax
mov rcx, qword [rsp + 0x528]
call fcn.140011190
mov qword [rsp + 0x470], rax
mov dword [rsp + 0x488], 0x104
mov dword [rsp + 0x47c], 0
mov dword [rsp + 0x4b0], 0x81800
lea rcx, [rsp + 0x450]
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
test eax, eax
je 0x14002880a
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400287a3
mov dword [rsp + 0x4f4], 0
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4f4]
jmp 0x140028829
mov rcx, qword [rsp + 0x520]
add rcx, 0x98
lea rdx, [rsp + 0x240]
call fcn.140003450
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov rcx, qword [rsp + 0x520]
add rcx, 0x90
lea rdx, [rsp + 0x240]
call fcn.140003450
mov dword [rsp + 0x4f8], 1
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4f8]
jmp 0x140028829
mov dword [rsp + 0x4fc], 0
mov rcx, qword [rsp + 0x528]
call fcn.1400038a0
mov eax, dword [rsp + 0x4fc]
mov rcx, qword [rsp + 0x508]
xor rcx, rsp
call fcn.14004c9d0
add rsp, 0x510
pop rdi
ret
Function at 0x1400295f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x270
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x250], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x258], 0
mov dword [rsp + 0x34], 4
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x254], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069ea0]
lea rdx, [0x140069eb0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x254], eax
cmp dword [rsp + 0x254], 0
jne 0x1400296aa
cmp dword [rsp + 0x258], 0x26739a4c
je 0x1400296af
jmp 0x1400297f4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069ef8]
lea rdx, [0x140069f10]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x254], eax
cmp dword [rsp + 0x254], 0
je 0x1400296fc
jmp 0x1400297f4
mov rcx, qword [rsp + 0x280]
mov eax, dword [rsp + 0x258]
mov dword [rcx + 8], eax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069f58]
lea rdx, [0x140069f70]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x25c], eax
cmp dword [rsp + 0x25c], 0
je 0x14002975b
jmp 0x1400297f4
mov rcx, qword [rsp + 0x280]
mov eax, dword [rsp + 0x258]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [0x140069fb8]
lea rdx, [0x140069fd0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [rsp + 0x25c], eax
cmp dword [rsp + 0x25c], 0
je 0x1400297c4
jmp 0x1400297f4
mov rcx, qword [rsp + 0x280]
add rcx, 0x10
lea r8, [rsp + 0x40]
mov edx, 0x78
call fcn.140003f30
mov dword [rsp + 0x250], 1
xor eax, eax
test eax, eax
jne 0x140029655
mov eax, dword [rsp + 0x250]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004c9d0
add rsp, 0x270
pop rdi
ret
Function at 0x140029b00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x60]
add rcx, 8
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
lea r8, str.HEIGHT
lea rdx, [0x14006a030]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140029b6f
jmp 0x140029c80
mov rcx, qword [rsp + 0x60]
add rcx, 0xc
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
lea r8, str.CHARSET
lea rdx, [0x14006a090]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140029bb5
jmp 0x140029c80
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x60]
add rcx, 0x10
call fcn.14004d258
lea rax, [rax + rax + 2]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x60]
add rcx, 0x10
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x30]
lea r8, str.FACENAME
lea rdx, [0x14006a0f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140029c17
jmp 0x140029c80
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x40], 0x26739a4c
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
lea r8, str.SETFONT
lea rdx, str.SoftwareBaymaxPatchToolsFont64
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x140029c6e
jmp 0x140029c80
mov dword [rsp + 0x38], 1
xor eax, eax
test eax, eax
jne 0x140029b29
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x14002a030
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add rsp, 0x28
ret

Function at 0x14002a050
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add rsp, 0x28
ret
Function at 0x14002aaa0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x60]
call fcn.140011190
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x28], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0xffffffffffffffff
jne 0x14002ab02
xor eax, eax
jmp 0x14002ac50
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0x40], r11d
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x40], 0x6400000
jb 0x14002ab70
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call fcn.14002a7e0
test eax, eax
je 0x14002ab70
cmp dword [rsp + 0x40], 0x1000
jb 0x14002ab70
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x40]
cmp dword [rsp + 0x40], eax
jae 0x14002ab70
mov rcx, qword [rsp + 0x60]
mov eax, dword [rsp + 0x40]
mov dword [rcx + 0x40], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x30], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x30], 0
jne 0x14002abba
xor eax, eax
jmp 0x14002ac50
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x38], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x38], 0
jne 0x14002abfd
xor eax, eax
jmp 0x14002ac50
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x30], 0
je 0x14002ac24
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x30]
call fcn.14002a010
mov r11, qword [rsp + 0x60]
mov qword [r11 + 0x30], 0
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0
je 0x14002ac4b
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x28]
call fcn.14002a010
mov r11, qword [rsp + 0x60]
mov qword [r11 + 0x28], 0
mov eax, 1
add rsp, 0x58
ret
Function at 0x14002ac60
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x38], 0
je 0x14002ac8e
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14], 1
jne 0x14002ac95
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x40]
cmp rax, 0x40
jae 0x14002ac95
xor eax, eax
jmp 0x14002adef
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x38]
mov qword [rsp], rax
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x14002acbb
mov qword [rsp + 0x10], 0x40
jmp 0x14002acc8
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x10], rax
mov eax, dword [rsp + 0x10]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
add rax, 0xf8
mov dword [rsp + 8], eax
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x14], 1
jne 0x14002acfe
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 8]
cmp dword [rcx + 0x40], eax
jae 0x14002acfe
xor eax, eax
jmp 0x14002adef
mov rax, qword [rsp]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x30]
add rcx, qword [rax + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rax + 0xd0], rcx
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x14002ad3d
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
cmp dword [rax], 0x4550
je 0x14002ad44
xor eax, eax
jmp 0x14002adef
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
je 0x14002ad73
mov dword [rsp + 0x18], 1
jmp 0x14002ad7b
mov dword [rsp + 0x18], 0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x18]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x14002adac
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 0
jmp 0x14002ade7
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14002ade7
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0xd0]
mov qword [rcx + 0xd8], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
add rsp, 0x28
ret
Function at 0x14003d410
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.http:__www.chinapyg.com
lea rdx, str.open
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x140040920
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x30], VarUI4FromDisp
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x110
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
je 0x140040981
cmp dword [rsp + 0x34], 6
jb 0x140040981
mov dword [rsp + 0x154], 1
jmp 0x14004098c
mov dword [rsp + 0x154], 0
mov al, byte [rsp + 0x154]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14004c9d0
add rsp, 0x160
pop rdi
ret

Function at 0x140041eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
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 0x140041ec8
xor eax, eax
test eax, eax
jne 0x140041ec8
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140041f30
mov eax, dword [rsp + 0x38]
jmp 0x140041fb3
cmp dword [rsp + 0x30], 1
je 0x140041f45
cmp dword [rsp + 0x30], 2
je 0x140041f45
mov eax, 0xd
jmp 0x140041fb3
cmp qword [rsp + 0x60], 0
je 0x140041f99
cmp dword [rsp + 0x34], 0
je 0x140041f8f
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
test rdx, rdx
jne 0x140041f86
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + rcx*2 - 2]
test eax, eax
je 0x140041f8d
mov eax, 0xd
jmp 0x140041fb3
jmp 0x140041f99
xor ecx, ecx
mov rax, qword [rsp + 0x60]
mov word [rax], cx
mov eax, dword [rsp + 0x34]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, rax
mov rax, qword [rsp + 0x68]
mov dword [rax], ecx
xor eax, eax
add rsp, 0x48
ret

Function at 0x140042060
Capabilities:
Get graphical window text

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_GetWindowTextW]
add rsp, 0x28
ret
Function at 0x140043550
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x70
mov byte [rsp + 0x30], 1
mov rcx, qword [rsp + 0x80]
call fcn.140044fe0
movzx eax, al
test eax, eax
je 0x1400435f1
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x80]
add rcx, 8
call fcn.140043710
cdqe
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0xfffffffe
mov rcx, qword [rsp + 0x80]
add rcx, 8
call fcn.140043710
movsxd rbx, eax
mov rcx, qword [rsp + 0x80]
add rcx, 8
lea rdx, [rsp + 0x58]
call fcn.14003c8e0
mov rcx, rax
call fcn.140011190
lea r9, [rsp + 0x38]
mov r8, rbx
mov edx, 0x4e
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400436f7
mov rcx, qword [rsp + 0x80]
call fcn.140044430
movzx eax, al
test eax, eax
je 0x140043661
mov rcx, qword [rsp + 0x80]
add rcx, 8
call fcn.140043710
cdqe
and rax, 0xffff
movzx ebx, ax
mov rcx, qword [rsp + 0x80]
add rcx, 8
lea rdx, [rsp + 0x60]
call fcn.14003c8e0
mov rcx, rax
call fcn.140011190
mov r9, qword [rsp + 0x80]
mov r9, qword [r9 + 8]
mov r8, rbx
mov edx, VarUI4FromDisp
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400436f7
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x80]
mov r8, qword [r8 + 0x50]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x20
jbe 0x1400436a7
mov dword [rsp + 0x68], 1
jmp 0x1400436af
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1400436f7
mov rax, qword [rsp + 0x80]
movzx ecx, byte [rax + 0x94]
or cl, 2
mov rax, qword [rsp + 0x80]
mov byte [rax + 0x94], cl
mov rcx, qword [rsp + 0x80]
add rcx, 8
mov edx, 1
call fcn.140041170
mov al, byte [rsp + 0x30]
add rsp, 0x70
pop rbx
ret
Function at 0x1400479b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x4e0
mov qword [rsp + 0x4c8], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
call fcn.140011180
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.14004af00
nop
mov rdx, qword [rsp + 0x4f0]
lea rcx, [rsp + 0x50]
call fcn.140047d90
lea rcx, [rsp + 0x90]
call fcn.14004af00
nop
mov edx, 0x400
mov rcx, qword [rsp + 0x4f8]
call fcn.140047230
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 0x140047a66
call fcn.140047240
mov dword [rsp + 0x4b0], eax
jmp 0x140047c11
mov r8, qword [rsp + 0x508]
mov rdx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x140047aa5
call fcn.140047240
mov dword [rsp + 0x4b0], eax
jmp 0x140047c11
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 0x140047adc
call fcn.140047240
mov dword [rsp + 0x4b0], eax
jmp 0x140047c11
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 0x140047b3c
mov dword [rsp + 0x4c0], 0x8007000e
lea rcx, [rsp + 0x90]
call fcn.14004b3f0
nop
lea rcx, [rsp + 0x78]
call fcn.14004af20
mov eax, dword [rsp + 0x4c0]
jmp 0x140047c51
mov eax, dword [rsp + 0x60]
add eax, 1
mov edx, eax
lea rcx, [rsp + 0x90]
call fcn.14004b390
nop
lea rcx, [rsp + 0x90]
call fcn.140011190
test rax, rax
jne 0x140047b75
mov dword [rsp + 0x4b0], 0x8007000e
jmp 0x140047c11
lea rcx, [rsp + 0x90]
call fcn.140011190
mov rbx, rax
call fcn.140011180
mov ecx, eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jne 0x140047bca
call fcn.140047240
mov dword [rsp + 0x4b0], eax
jmp 0x140047c11
mov ebx, dword [rsp + 0x4a0]
lea rcx, [rsp + 0x90]
call fcn.140011190
mov r11, rax
xor eax, eax
mov word [r11 + rbx*2], ax
lea rcx, [rsp + 0x90]
call fcn.140011190
mov r8d, dword [rsp + 0x510]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140047dc0
mov dword [rsp + 0x4b0], eax
cmp qword [rsp + 0x48], 0
je 0x140047c24
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.14004b3f0
nop
lea rcx, [rsp + 0x78]
call fcn.14004af20
mov eax, dword [rsp + 0x4c4]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14004c9d0
add rsp, 0x4e0
pop rbx
ret