joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003afec
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
and qword [rbp - 0x30], 0
mov rdi, rdx
mov rsi, rcx
movzx r14d, r9b
mov rdx, r8
lea rcx, [rbp - 0x30]
mov r15, r8
call fcn.14003aa28
mov ebx, eax
test eax, eax
je 0x14003b03c
jle 0x14003b189
movzx ebx, ax
jmp 0x14003b110
cmp qword [rdi + 0x18], 8
lea r9d, [r14*2 + 1]
mov eax, dword [rdi + 0x10]
lea ecx, [rax*2 + 2]
mov rax, rdi
jb 0x14003b05b
mov rax, qword [rdi]
cmp qword [rsi + 0x18], 8
mov rdx, rsi
jb 0x14003b068
mov rdx, qword [rsi]
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14003b118
call fcn.140016c38
mov r14, rax
cmp dword [rax], 3
jbe 0x14003b109
mov rcx, rdi
call fcn.1400101b0
mov rcx, r15
mov qword [rbp - 0x28], rax
call fcn.1400101b0
mov rcx, rsi
mov qword [rbp - 0x20], rax
call fcn.1400101b0
mov qword [rbp - 0x18], rax
lea rdx, [0x14005df4e]
lea rax, str.Failed_to_set_registry_key
mov dword [rbp + 0x40], ebx
mov qword [rbp - 0x10], rax
mov rcx, r14
lea rax, [rbp - 0x28]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.140002fd4
test ebx, ebx
jle 0x14003b189
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14003b189
call fcn.140016c38
mov rbx, rax
cmp dword [rax], 4
jbe 0x14003b187
mov rcx, rdi
call fcn.1400101b0
mov rcx, r15
mov qword [rbp - 0x10], rax
call fcn.1400101b0
mov rcx, rsi
mov qword [rbp - 0x18], rax
call fcn.1400101b0
mov qword [rbp - 0x20], rax
lea rdx, [0x14005df96]
lea rax, str.Write_registry_value
mov rcx, rbx
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
call fcn.1400021e0
xor ebx, ebx
lea rcx, [rbp - 0x30]
call fcn.14001a150
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003b6b0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov byte [rax + 0x20], r9b
mov dword [rax + 0x10], edx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
and qword [rbp - 0x20], 0
mov rdi, rcx
lea rcx, [rbp - 0x20]
mov rdx, r8
mov r14, r8
call fcn.14003aa28
mov ebx, eax
test eax, eax
je 0x14003b6f8
jle 0x14003b825
movzx ebx, ax
jmp 0x14003b7b3
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14003b705
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov esi, 4
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov r9d, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14003b7bb
call fcn.140016c38
mov rsi, rax
cmp dword [rax], 3
jbe 0x14003b7ac
mov ecx, dword [rbp + 0x28]
mov dword [rbp + 0x38], ecx
mov rcx, r14
call fcn.1400101b0
mov rcx, rdi
mov qword [rbp - 0x18], rax
call fcn.1400101b0
mov qword [rbp - 0x10], rax
lea rdx, [0x14005e0e6]
lea rax, str.Failed_to_set_registry_key
mov dword [rbp + 0x40], ebx
mov qword [rbp - 8], rax
mov rcx, rsi
lea rax, [rbp + 0x38]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
call fcn.14000332c
test ebx, ebx
jle 0x14003b825
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14003b825
call fcn.140016c38
mov rbx, rax
cmp dword [rax], esi
jbe 0x14003b823
mov ecx, dword [rbp + 0x28]
mov dword [rbp + 0x38], ecx
mov rcx, r14
call fcn.1400101b0
mov rcx, rdi
mov qword [rbp - 8], rax
call fcn.1400101b0
mov qword [rbp - 0x10], rax
lea rdx, [0x14005e0a5]
lea rax, str.Write_registry_value
mov rcx, rbx
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
call fcn.140002330
xor ebx, ebx
lea rcx, [rbp - 0x20]
call fcn.14001a150
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003e43c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14006dfb8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rdx + 0x18], 8
mov rbx, rdx
jb 0x14003e462
mov rbx, qword [rdx]
mov r8, rdx
lea rdx, [rsp + 0x20]
call fcn.14003dc6c
cmp qword [rax + 0x18], 8
jb 0x14003e479
mov rax, qword [rax]
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop dword [rax + rax]
xor edi, edi
lea rcx, [rsp + 0x20]
test eax, eax
setne bl
call fcn.1400183f8
test bl, bl
jne 0x14003e4b4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001ae20
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140041cbc
Capabilities:
Check if file exists
Modify service

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140041cbc
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
and qword [rbp + 0x38], 0
mov rsi, rdx
mov rdx, rcx
mov rdi, rcx
lea rcx, [rbp + 0x38]
mov r8d, 2
call fcn.14000fa90
mov ebx, eax
test eax, eax
jns 0x140041d2f
cmp qword [rdi + 0x18], 8
jb 0x140041d01
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x18]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov edx, 0x26b
call fcn.140016e78
jmp 0x140041e65
cmp qword [rsi + 0x18], 8
mov rax, rsi
jb 0x140041d3c
mov rax, qword [rsi]
and qword [rsp + 0x50], 0
or edx, 0xffffffff
and qword [rsp + 0x48], 0
mov r9d, edx
and qword [rsp + 0x40], 0
mov r8d, edx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rcx, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x140041e09
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140016c38
mov r14, rax
cmp dword [rax], 2
jbe 0x140041dfa
mov rcx, rsi
call fcn.1400101b0
mov rcx, rdi
mov qword [rbp - 0x20], rax
call fcn.1400101b0
mov qword [rbp - 0x18], rax
lea rdx, [0x14005e995]
lea rax, str.Failed_to_update_execution_path_at_SCM
mov dword [rbp + 0x30], ebx
mov qword [rbp - 0x10], rax
mov rcx, r14
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140001ab4
test ebx, ebx
jle 0x140041e65
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140041e65
call fcn.140016c38
mov rbx, rax
cmp dword [rax], 4
jbe 0x140041e63
mov rcx, rsi
call fcn.1400101b0
mov rcx, rdi
mov qword [rbp + 0x30], rax
call fcn.1400101b0
mov qword [rbp - 0x10], rax
lea rdx, [0x14005ea13]
lea rax, str.Execution_path_updated_at_SCM
mov rcx, rbx
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
call fcn.14000f964
xor ebx, ebx
lea rcx, [rbp + 0x38]
call fcn.14001a1dc
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140041e90
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x70
and qword [rax + 0x18], 0
mov rbx, rcx
mov rdx, rcx
mov r8d, 2
lea rcx, [rax + 0x18]
call fcn.14000fa90
mov edi, eax
test eax, eax
jns 0x140041ef8
cmp qword [rbx + 0x18], 8
jb 0x140041ec9
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x78]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, edi
mov qword [rsp + 0x20], rax
mov edx, 0x197
call fcn.140016e78
jmp 0x140041fe7
and qword [rsp + 0x50], 0
or edx, 0xffffffff
and qword [rsp + 0x48], 0
mov r9d, edx
and qword [rsp + 0x40], 0
mov r8d, 3
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x90]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x140041f7e
cmp qword [rbx + 0x18], 8
jb 0x140041f50
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x78]
lea r9, str.Cannot_change_the_service_start_type_to__d_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x1a9
mov dword [rsp + 0x20], 3
call fcn.140016eb8
mov edi, eax
jmp 0x140041fe7
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 4
jbe 0x140041fe5
mov rcx, rbx
call fcn.1400101b0
mov qword [rsp + 0x98], rax
lea rdx, [0x14005e959]
lea rax, str.Changed_the_service_start_type_successfully
mov dword [rsp + 0x88], 3
mov qword [rsp + 0x60], rax
mov rcx, rdi
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.14000fc18
xor edi, edi
lea rcx, [rsp + 0x90]
call fcn.14001a1dc
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x70
pop rdi
ret
Function at 0x14004229c
Capabilities:
Stop service

Disassembly:
mov rcx, rdx
jmp 0x14004229c
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14006dfb8]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
cmp qword [rcx + 0x10], 0
jne 0x1400422d8
call fcn.14003f884
and qword [rbp + 0x17], 0
mov r8d, 0x20
mov rdx, rbx
lea rcx, [rbp + 0x17]
call fcn.14000fa90
mov edi, eax
test eax, eax
jns 0x14004232d
cmp qword [rbx + 0x18], 8
jb 0x1400422ff
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x5f]
mov qword [rsp + 0x28], rbx
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x149
call fcn.140016e78
jmp 0x14004246d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x2f], xmm0
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x47], eax
lea r8, [rbp + 0x2f]
lea edx, [rax + 1]
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop dword [rax + rax]
mov edi, eax
call fcn.140016c38
mov r8, rax
cmp dword [rax], 4
jbe 0x1400423f3
mov ecx, dword [rbp + 0x47]
mov dword [rbp - 9], ecx
mov ecx, dword [rbp + 0x43]
mov dword [rbp - 5], ecx
mov ecx, dword [rbp + 0x3f]
mov dword [rbp - 1], ecx
mov ecx, dword [rbp + 0x3b]
mov dword [rbp + 3], ecx
mov ecx, dword [rbp + 0x37]
mov dword [rbp + 7], ecx
mov eax, dword [rbp + 0x33]
mov dword [rbp + 0xb], eax
mov eax, dword [rbp + 0x2f]
mov dword [rbp + 0xf], eax
lea rax, str.Service_status
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 5]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 3]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xb]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005ea54]
mov rcx, r8
call fcn.1400038d0
test edi, edi
jne 0x140042426
cmp qword [rbx + 0x18], 8
jb 0x140042401
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x5f]
mov qword [rsp + 0x20], rbx
lea r9, str.Could_not_stop_service__ws
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x15c
call fcn.140016eb8
mov edi, eax
jmp 0x14004246d
call fcn.140016c38
mov rdi, rax
cmp dword [rax], 4
jbe 0x14004246b
mov rcx, rbx
call fcn.1400101b0
mov qword [rbp + 0x1f], rax
lea rax, str.Stop_command_sent_to_SCM_successfully
mov qword [rbp + 0xf], rax
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005e928]
mov rcx, rdi
call fcn.140012440
xor edi, edi
lea rcx, [rbp + 0x17]
call fcn.14001a1dc
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14001ae20
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1800027e0
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 0x180002895
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x180002861
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002880
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002880
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 0x180002880
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 [0x180125670], 0
jne 0x1800028e0
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800028d0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180125660], rax
mov byte [0x180125670], 1
jmp 0x1800028e7
mov rax, qword [0x180125660]
mov byte [0x180125670], 1
jmp 0x1800028e7
mov rax, qword [0x180125660]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x18000286a
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 0x180002a10
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x280
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x180123010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
mov r9d, dword [rcx + 8]
or r9d, 0x2001f
mov r8, rdx
mov rdx, qword [rcx]
lea rcx, [rsp + 0x48]
call fcn.180002910
mov ebx, eax
test eax, eax
jne 0x180002b37
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180002b11
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180002a10
mov ebx, eax
test eax, eax
jne 0x180002b37
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180002ac0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180002b26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov rdx, rsi
mov rcx, rdi
call fcn.1800027e0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180002b4c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov eax, ebx
mov dword [rsp + 0x50], ebp
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800c8bf0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180003160
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 [0x180123010]
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 0x1800031ee
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 0x1800031ee
call fcn.1800024f0
mov ebx, eax
jmp 0x180003310
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x18000320f
call fcn.1800024f0
jmp 0x1800032ff
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 0x180003232
call fcn.1800024f0
jmp 0x1800032ff
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 0x180003254
mov ebx, 0x8007000e
jmp 0x180003301
mov ecx, eax
test eax, eax
je 0x180003289
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180003348
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x180003289
lea rcx, [rsp + 0x70]
call fcn.180007d60
jmp 0x180003293
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1800032a6
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1800032b7
mov ebx, 0x8007000e
jmp 0x180003301
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1800032dc
call fcn.1800024f0
jmp 0x1800032ff
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.180004110
mov ebx, eax
test rdi, rdi
je 0x180003310
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x180003327
lea rcx, [rsp + 0x70]
call fcn.180007d50
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800c8bf0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800023d0
int3
Function at 0x180005fe0
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x3b8]
sub rsp, 0x4a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180123010]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
jne 0x180006045
xor al, al
jmp 0x18000622e
cmp dword [rsp + 0x20], 2
jl 0x18000603e
mov rdx, qword [rax + 8]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], r14w
jne 0x180006060
lea rcx, [rsi + 0x140]
call fcn.180007b60
cmp dword [rsp + 0x20], 3
jl 0x180006223
mov rdx, qword [rdi + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1800e81e0]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], r14w
mov r8, rbx
inc r8
cmp word [rdx + r8*2], r14w
jne 0x1800060a5
lea rcx, [rsp + 0x50]
call fcn.180007b60
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180007790
nop
mov edx, 4
lea rcx, [rsp + 0x30]
call fcn.18001c2d0
lea rcx, [rsp + 0x30]
call fcn.18001b5a0
test al, al
je 0x180006171
xor edx, edx
mov r8d, 0x412
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, 0x208
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov r8, qword [rsp + 0x40]
test eax, eax
je 0x18000614c
mov eax, eax
cmp rax, r8
je 0x18000614c
lea rax, [rsp + 0x70]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180006134
lea rcx, [rsi + 0x70]
mov r8, rbx
lea rdx, [rsp + 0x70]
jmp 0x18000616b
lea rcx, [rsi + 0x70]
lea rax, [rsp + 0x30]
cmp rcx, rax
je 0x180006171
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
call fcn.180007b60
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1800061b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800061b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800061b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x18000620f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000620a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000620a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c8c14
movdqa xmm0, xmmword [0x1800e81e0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1800c8bf0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180008380
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x180123010]
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 0x1800083f1
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x1800083d7
cmp eax, 4
jne 0x1800083f1
cmp dword [rsp + 0x28], 0x5a
jb 0x1800083f1
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800c8bf0
add rsp, 0x158
ret
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800c8bf0
add rsp, 0x158
ret

Function at 0x180008520
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x180123010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], VarUI4FromDisp
mov qword [rcx], rax
mov rdi, r8
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, VarUI4FromDisp
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18000859f
cmp dword [rsp + 0x24], 6
mov eax, 0x48
jae 0x1800085a4
mov eax, 0x40
mov rcx, rdi
mov dword [rbx], eax
mov dword [rbx + 4], 0
call qword [sym.imp.USER32.dll_GetParent]
or dword [rbx + 4], 1
mov qword [rbx + 8], rax
mov rax, rbx
mov qword [rbx + 0x10], rdi
mov rcx, qword [0x180124f60]
mov qword [rbx + 0x28], rcx
mov rcx, qword [rsp + 0x188]
mov qword [rbx + 0x30], rcx
mov qword [rbx + 0x38], 0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800c8bf0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret