joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40189c
Capabilities:
Get disk information
Get disk size
Get volume information via ioctl

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x0043a0c0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov dword [rsp + 0x38], 0x80
movabs rax, 0x5c003a0044
movzx ebx, dx
mov qword [r11 - 0x128], rax
lea rax, [r11 - 0x118]
mov word [rsp + 0xc0], dx
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rcx, [r11 - 0x128]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, 0
lea rsi, [rsp + 0xd0]
lea rdi, str.NTFS
mov ecx, 5
lea r8, [rsp + 0xd0]
repe cmpsw word [rsi], word [rdi]
lea rcx, [0x00440836]
mov edx, 0x40
sete al
mov word [0x00440834], bx
mov dword [0x0045098c], eax
call fcn.004179d0
cmp dword [0x0045098c], 0
je 0x4019d4
and qword [rsp + 0x38], 0
mov rcx, qword [0x00450928]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x90064
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401a2a
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x88]
xor edx, edx
mov qword [0x004407e0], rax
mov rax, qword [rsp + 0x78]
mov dword [0x0044080c], ecx
mov qword [0x004407f0], rax
mov eax, dword [rsp + 0x8c]
div ecx
jmp 0x401a1f
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov qword [0x004407f0], rax
mov eax, dword [rsp + 0x44]
mov qword [0x004407e0], rdx
mov dword [0x0044080c], eax
mov eax, dword [rsp + 0x40]
mov dword [0x00440808], eax
mov eax, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.004179b0
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x401c38
Capabilities:
Get volume information via ioctl

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r12
sub rsp, 0xa0
lea rax, [r11 + 8]
mov rsi, rcx
mov rcx, qword [rcx + 0x101a8]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x70], rbx
mov qword [r11 - 0x78], rax
lea rax, [r11 - 0x68]
mov edx, 0x90064
mov dword [rsp + 0x28], 0x60
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x401c9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
sete bl
mov eax, ebx
jmp 0x401d15
mov r12, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
lea rcx, [rsi + 0x101c0]
lea r8, [r12 - 1]
mov r9d, 1
mov rdx, rbp
call fcn.004017ac
mov r11d, ebx
cmp dword [rsi + 0x101b8], ebx
jbe 0x401cf2
mov rax, rbx
mov rcx, qword [rsi + 0x101b0]
inc r11d
add rax, 0x28
mov qword [rcx + rax - 8], rbx
cmp r11d, dword [rsi + 0x101b8]
jb 0x401cd6
lea r8, [r12 - 1]
mov r9d, 4
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x20], 1
call fcn.00401a50
mov eax, 1
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x403060
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
and qword [rax - 0x58], 0
and qword [rax - 0x50], 0
and dword [rax - 0x48], 0
and dword [rax - 0x44], 0
and dword [rax - 0x40], 0
and qword [rax - 0x38], 0
mov r14, rdx
mov rbx, rcx
lea rdx, [rax + 8]
mov rcx, r14
mov r13b, r8b
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r11, qword [rsp + 0x90]
lea rdx, [rsp + 0x30]
mov r8, r14
mov rcx, rbx
mov qword [rbx + 0xa0], r11
call fcn.00402084
test eax, eax
jne 0x4030d7
xor edi, edi
jmp 0x403183
mov ecx, dword [rsp + 0x40]
cmp ecx, edi
jbe 0x4030ff
test r13b, r13b
jne 0x4030ff
add qword [rbx + 0x38], rdi
mov rax, rcx
add qword [rbx + 0x50], rax
add qword [rbx + 0x58], rax
mov rax, qword [rsp + 0x90]
add qword [rbx + 0x40], rax
mov eax, dword [rsp + 0x44]
xor r12d, r12d
cmp ecx, edi
seta r12b
test eax, eax
je 0x403143
mov rsi, qword [rsp + 0x50]
mov rbp, rax
mov rdx, qword [rsi]
cmp rdx, 0xffffffffffffffff
je 0x40313a
mov rax, qword [rsi + 8]
mov r9d, edi
mov rcx, rbx
lea r8, [rax + rdx - 1]
mov dword [rsp + 0x20], r12d
call fcn.00401a50
add rsi, 0x28
sub rbp, rdi
jne 0x403118
test r13b, r13b
jne 0x40316a
cmp dword [rbx + 0x10214], 0
lea r8, [rsp + 0x30]
mov rdx, r14
mov rcx, rbx
jne 0x403163
call fcn.0040276c
jmp 0x403168
call fcn.00402c94
mov edi, eax
mov rax, qword [rsp + 0x30]
add qword [rbx + 0x78], rax
cmp dword [rbx + 0xb0], 0
je 0x403183
add qword [rbx + 0x80], rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.00401d94
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x405ab0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x200f0
call fcn.004278c0
sub rsp, rax
mov rax, qword [0x0043a0c0]
xor rax, rsp
mov qword [rsp + 0x200e0], rax
mov rsi, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
xor edx, edx
call fcn.00408a54
lea r8, str.USTSPCODiskOptimizer
lea r11, [0x004302c4]
lea rcx, [rsp + 0x50]
mov r9, r8
mov rdx, rdi
mov qword [rsp + 0x20], r11
call fcn.00406190
xor ebx, ebx
cmp word [rsi], 0x2d
lea rbp, vtable.CService.0
lea rax, vtable.CService.1.0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x200c0], rax
mov qword [rsp + 0x200c8], rbx
je 0x405baf
cmp word [rsi], 0x2f
je 0x405baf
cmp dword [rsp + 0x58], 4
jl 0x405ba4
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rax
lea rax, [fcn.00406658]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, ebx
jne 0x405c03
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
mov edx, 0x3ee
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x405bfa
xor edx, edx
xor ecx, ecx
call fcn.00406658
jmp 0x405c03
lea rdx, [rsi + 2]
lea rcx, str.install
call fcn.004185e4
cmp eax, ebx
jne 0x405bda
xor r9d, r9d
lea rcx, [rsp + 0x50]
lea edx, [r9 + 0x10]
lea r8d, [r9 + 2]
call fcn.0040635c
jmp 0x405bfa
lea rdx, [rsi + 2]
lea rcx, str.remove
call fcn.004185e4
cmp eax, ebx
jne 0x405bfe
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.004064d0
mov ebx, eax
jmp 0x405c03
mov ebx, 0x3e9
lea rax, vtable.CThread.0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x200c0], rax
call fcn.00406334
mov eax, ebx
mov rcx, qword [rsp + 0x200e0]
xor rcx, rsp
call fcn.004179b0
lea r11, [rsp + 0x200f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x405e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, [0x004508f0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
mov rcx, qword [rdi + 8]
cmp rcx, rsi
je 0x405e41
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
cmp eax, esi
sete cl
cmp ecx, esi
jne 0x405f8f
mov rcx, qword [0x004405a8]
cmp rcx, rsi
je 0x405e21
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
cmp eax, esi
sete cl
cmp ecx, esi
je 0x405e21
mov eax, dword [0x0043baf8]
sub eax, 1
je 0x405f4d
sub eax, 4
je 0x405e8b
cmp eax, 1
jne 0x405e21
mov rax, qword [rdi + 8]
mov dword [0x0043baf0], esi
jmp 0x405f5b
mov rbx, qword [0x0043bae8]
cmp rbx, rsi
je 0x405e21
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], 0x103
je 0x405e21
lea rcx, [0x00440780]
call fcn.00403b1c
mov rcx, rbx
mov dword [0x0045093c], esi
mov qword [0x004407a0], rsi
mov qword [0x004407a8], rsi
mov qword [0x004407b0], rsi
mov qword [0x004407b8], rsi
mov qword [0x004407c0], rsi
mov qword [0x004407c8], rsi
mov qword [0x004407d0], rsi
mov qword [0x004407d8], rsi
mov qword [0x004407e0], rsi
mov qword [0x004407e8], rsi
mov qword [0x004407f0], rsi
mov qword [0x004407f8], rsi
mov qword [0x00440800], rsi
mov dword [0x00440808], esi
mov dword [0x0044080c], esi
mov dword [0x004508b8], esi
mov qword [0x0043bae8], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x00440594], esi
jmp 0x405e21
mov rax, qword [rdi + 8]
mov dword [0x0043baf0], 1
lea r9, [0x0043bad8]
lea r8, [0x00406180]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov qword [0x0043bae0], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x0043bae8], rax
jmp 0x405e21
lea rcx, [0x004508f0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x00440780]
call fcn.00403b1c
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x405fbc
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [0x004405a8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [0x00440588], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [0x00440580], rax
mov rax, qword [rbx + 0x20030]
lea r9, [0x0043bac8]
mov qword [0x0043bad0], rax
mov rax, qword [rbx + 0x20030]
lea r8, [0x00406180]
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x20078], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rbx + 0x20070]
lea r8, [0x00406180]
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x20080], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x20088], rax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x40611c
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x0043bae8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, qword [rbx + 0x20088]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x40614c
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x0043bae8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rbx + 0x20088]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x40635c
Capabilities:
Create service
Persist via run registry key
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
xor edi, edi
cmp dword [rcx + 8], 4
mov rbx, rcx
jl 0x40643b
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rdi
jne 0x4063a5
mov rax, qword [rbx]
mov edx, 0x3eb
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x4064bd
mov rax, qword [rbx + 0x28]
mov r8, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea rcx, [rbx + 0x10030]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 1
mov rcx, rsi
mov r9d, 0xf01ff
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp rax, rdi
jne 0x406414
mov rax, qword [rbx]
mov edx, 0x3eb
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, eax
jmp 0x40641d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdx, qword [rbx + 0x18]
lea rcx, str._s_service_installed._n
call fcn.00418a18
jmp 0x4064bb
lea r8, [rsp + 0x80]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, edi
jne 0x4064a6
add rbx, 0x10030
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x80]
lea rdx, str.USTSPCODiskOptimizer
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4064bb
lea rdx, [0x00430880]
xor r9d, r9d
xor ecx, ecx
mov r8, rdx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x4064d0
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 8], 4
mov rbx, rcx
jl 0x406607
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x40651c
mov rax, qword [rbx]
mov edx, 0x3eb
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x406643
mov rdx, qword [rbx + 0x18]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x406554
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r11, qword [rbx]
mov edx, 0x3ed
mov rcx, rbx
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
jmp 0x406643
lea r8, [rbx + 0x20038]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4065cf
mov rdx, qword [rbx + 0x18]
lea rcx, str.Stopping__s_service._Please_wait.
call fcn.00418a18
jmp 0x406594
cmp dword [rbx + 0x2003c], 3
jne 0x4065b3
lea rcx, [0x0043027c]
call fcn.00418a18
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbx + 0x20038]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40657f
cmp dword [rbx + 0x2003c], 1
lea rcx, str._stopped._n
je 0x4065ca
lea rcx, str._failed._n
call fcn.00418a18
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rdx, qword [rbx + 0x18]
lea rcx, str._s_service_removed._n
test eax, eax
jne 0x4065ee
lea rcx, str.Cant_remove__s_service._n
call fcn.00418a18
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x406641
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x406641
mov rcx, qword [rsp + 0x30]
lea rdx, str.USTSPCODiskOptimizer
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x407b08
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x0043a0c0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov eax, r8d
mov rsi, rdx
mov rbx, rcx
cmp r8d, 0x800
jne 0x407b7a
lea r8, [0x0042b170]
lea rcx, [rsp + 0xa0]
mov edx, 4
call fcn.004179d0
test eax, eax
je 0x407b9c
cmp eax, 0xc
je 0x407b74
cmp eax, 0x16
je 0x407b6e
cmp eax, 0x22
je 0x407b6e
cmp eax, 0x50
je 0x407b9c
call fcn.0040713c
int3
call fcn.0040713c
int3
call fcn.004070f4
int3
mov r9d, 4
lea r8, [rsp + 0xa0]
mov ecx, eax
lea edx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x407cbf
call fcn.0041954c
mov edi, dword [rax]
call fcn.0041954c
lea rcx, [rsp + 0xb0]
and dword [rax], 0
lea rax, [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov esi, 0x112
lea r8d, [rsi - 1]
mov rdx, rsi
call fcn.00417a78
mov ebx, eax
call fcn.0041954c
cmp dword [rax], 0
je 0x407c24
call fcn.0041954c
cmp dword [rax], 0
je 0x407c2b
cmp dword [rax], 0xc
je 0x407c19
cmp dword [rax], 0x16
je 0x407c0e
cmp dword [rax], 0x22
je 0x407c0e
cmp dword [rax], 0x50
je 0x407c2b
mov ecx, 0x80004005
call fcn.004058a0
int3
mov ecx, 0x80070057
call fcn.004058a0
int3
mov ecx, 0x8007000e
call fcn.004058a0
int3
call fcn.0041954c
mov dword [rax], edi
cmp ebx, 0xffffffff
je 0x407cbf
cmp ebx, esi
jae 0x407cbf
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
mov rbx, rax
mov dword [rsp + 0x30], 0x70
call fcn.00419e40
lea rcx, str.KERNEL32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x407caa
lea rdx, str.FindActCtxSectionStringW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x407caa
lea rcx, [rsp + 0x30]
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x20], rcx
lea r8d, [rdx + 2]
xor ecx, ecx
call rax
mov rcx, rbx
test eax, eax
jne 0x407cb2
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x407cc1
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.004179b0
add rsp, 0x2f0
pop rdi
pop rsi
pop rbx
ret

Function at 0x40eea8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.0040d9ac
mov rsi, rax
test rax, rax
je 0x40ef24
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x40ef1f
cmp dword [rbx], 0x40
jb 0x40ef1f
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x40ef1f
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x40ef28
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x4177b4
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov eax, 0x5a4d
cmp word [0x00400000], ax
jne 0x41783d
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x4177ff
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x41784d
mov ecx, 0x20b
cmp word [rax + 0x18], cx
je 0x417815
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x41784d
cmp dword [rax + 0x84], 0xe
ja 0x417829
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x41784d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x41784d
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x00400000]
mov ecx, 1
call fcn.0041b7cc
test eax, eax
jne 0x41787d
cmp dword [0x0043f568], 1
jne 0x417869
call fcn.0041aa4c
mov ecx, 0x1c
call fcn.0041a824
mov ecx, 0xff
call fcn.00419714
call fcn.0041b748
test eax, eax
jne 0x4178a8
cmp dword [0x0043f568], 1
jne 0x417894
call fcn.0041aa4c
mov ecx, 0x10
call fcn.0041a824
mov ecx, 0xff
call fcn.00419714
call fcn.0041b400
nop
call fcn.0041b110
test eax, eax
jns 0x4178c1
mov ecx, 0x1b
call fcn.004196a8
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x00451c68], rax
call fcn.0041b07c
mov qword [0x0043f560], rax
call fcn.0041af8c
test eax, eax
jns 0x4178ec
mov ecx, 8
call fcn.004196a8
call fcn.0041acbc
test eax, eax
jns 0x4178ff
mov ecx, 9
call fcn.004196a8
mov ecx, 1
call fcn.004197b4
test eax, eax
je 0x417914
mov ecx, eax
call fcn.004196a8
call fcn.0041ac60
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.00405ab0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x41794b
mov ecx, eax
call fcn.004199f0
call fcn.00419a08
jmp 0x41796c
mov eax, edi
jmp 0x417975
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.0041b818
add rsp, 0x28
jmp 0x4177b4
Function at 0x4199f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.0041f488
nop
cmp dword [0x0043f5c8], 1
je 0x41999c
mov dword [0x0043f5c4], 1
mov byte [0x0043f5c0], r12b
test ebx, ebx
jne 0x419988
mov rcx, qword [0x00451c50]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x419975
mov rcx, qword [0x00451c48]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x419914
call fcn.0041b478
cmp qword [rdi], rax
jne 0x419914
jmp 0x4198fa
cmp rdi, rsi
jb 0x419975
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.0041b478
mov qword [rdi], rax
call rbx
mov rcx, qword [0x00451c50]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x00451c48]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x419953
cmp r13, rax
je 0x419973
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x4198fa
lea rdx, [0x0042a9e0]
lea rcx, [0x0042a9c8]
call fcn.00419744
lea rdx, [0x0042a9f0]
lea rcx, [0x0042a9e8]
call fcn.00419744
nop
test r12d, r12d
je 0x4199ab
mov ecx, 8
call fcn.0041f388
test r12d, r12d
jne 0x4199d6
mov dword [0x0043f5c8], 1
lea ecx, [r12 + 8]
call fcn.0041f388
mov ecx, r15d
call fcn.004196d8
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x419864

Function at 0x4199fc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x419864
Function at 0x41b973
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x0043a0c0]
jne 0x4179ca
rol rcx, 0x10
test cx, 0xffff
jne 0x4179c6
repz ret
ror rcx, 0x10
jmp 0x41b8cc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0043fbb0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x0043fca8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x41b951
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0043fbb0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x41b973
mov rax, qword [rsp + 0x88]
mov qword [0x0043fca8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0043fc48], rax
mov rax, qword [0x0043fca8]
mov qword [0x0043fb20], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0043fc30], rax
mov dword [0x0043fb10], 0xc0000409
mov dword [0x0043fb14], 1
mov rax, qword [0x0043a0c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x0043a0c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0043fba8], eax
mov ecx, 1
call fcn.0041d558
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0042ea10]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0043fba8], 0
jne 0x41b9fa
mov ecx, 1
call fcn.0041d558
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret