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, [0x00440816]
mov edx, 0x40
sete al
mov word [0x00440814], bx
mov dword [0x0045096c], eax
call fcn.00417930
cmp dword [0x0045096c], 0
je 0x4019d4
and qword [rsp + 0x38], 0
mov rcx, qword [0x00450908]
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 [0x004407c0], rax
mov rax, qword [rsp + 0x78]
mov dword [0x004407ec], ecx
mov qword [0x004407d0], 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 [0x004407d0], rax
mov eax, dword [rsp + 0x44]
mov qword [0x004407c0], rdx
mov dword [0x004407ec], eax
mov eax, dword [rsp + 0x40]
mov dword [0x004407e8], eax
mov eax, 1
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.00417910
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 r13, rdx
mov rbx, rcx
lea rdx, [rax + 8]
mov rcx, r13
mov r14b, r8b
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r11, qword [rsp + 0x90]
lea rdx, [rsp + 0x30]
mov r8, r13
mov rcx, rbx
mov qword [rbx + 0xa0], r11
call fcn.00402084
test eax, eax
jne 0x4030d7
xor edi, edi
jmp 0x40317e
mov ecx, dword [rsp + 0x40]
cmp ecx, edi
jbe 0x4030fa
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 0x40313e
mov rsi, qword [rsp + 0x50]
mov rbp, rax
mov rdx, qword [rsi]
cmp rdx, 0xffffffffffffffff
je 0x403135
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 0x403113
test r14b, r14b
jne 0x403165
cmp dword [rbx + 0x10214], 0
lea r8, [rsp + 0x30]
mov rdx, r13
mov rcx, rbx
jne 0x40315e
call fcn.0040276c
jmp 0x403163
call fcn.00402c94
mov edi, eax
mov rax, qword [rsp + 0x30]
add qword [rbx + 0x78], rax
cmp dword [rbx + 0xb0], 0
je 0x40317e
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 0x405a84
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.00427830
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.00408980
lea r8, str.SACODiskOptimizer
lea r11, [0x0043027c]
lea rcx, [rsp + 0x50]
mov r9, r8
mov rdx, rdi
mov qword [rsp + 0x20], r11
call fcn.0040618c
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 0x405b83
cmp word [rsi], 0x2f
je 0x405b83
cmp dword [rsp + 0x58], 4
jl 0x405b78
mov rax, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rax
lea rax, [fcn.00406654]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
cmp eax, ebx
jne 0x405bd7
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
mov edx, 0x3ee
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x405bce
xor edx, edx
xor ecx, ecx
call fcn.00406654
jmp 0x405bd7
lea rdx, [rsi + 2]
lea rcx, str.install
call fcn.00418544
cmp eax, ebx
jne 0x405bae
xor r9d, r9d
lea rcx, [rsp + 0x50]
lea edx, [r9 + 0x10]
lea r8d, [r9 + 2]
call fcn.00406358
jmp 0x405bce
lea rdx, [rsi + 2]
lea rcx, str.remove
call fcn.00418544
cmp eax, ebx
jne 0x405bd2
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.004064cc
mov ebx, eax
jmp 0x405bd7
mov ebx, 0x3e9
lea rax, vtable.CThread.0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x200c0], rax
call fcn.00406330
mov eax, ebx
mov rcx, qword [rsp + 0x200e0]
xor rcx, rsp
call fcn.00417910
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 0x405dfc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, [0x004508d0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
mov rcx, qword [rdi + 8]
cmp rcx, rsi
je 0x405e3d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
cmp eax, esi
sete cl
cmp ecx, esi
jne 0x405f8b
mov rcx, qword [0x00440598]
cmp rcx, rsi
je 0x405e1d
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
cmp eax, esi
sete cl
cmp ecx, esi
je 0x405e1d
mov eax, dword [0x0043bb10]
sub eax, 1
je 0x405f49
sub eax, 4
je 0x405e87
cmp eax, 1
jne 0x405e1d
mov rax, qword [rdi + 8]
mov dword [0x0043bb08], esi
jmp 0x405f57
mov rbx, qword [0x0043bb00]
cmp rbx, rsi
je 0x405e1d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], 0x103
je 0x405e1d
lea rcx, [0x00440760]
call fcn.00403b18
mov rcx, rbx
mov dword [0x0045091c], esi
mov qword [0x00440780], rsi
mov qword [0x00440788], rsi
mov qword [0x00440790], rsi
mov qword [0x00440798], rsi
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 dword [0x004407e8], esi
mov dword [0x004407ec], esi
mov dword [0x00450898], esi
mov qword [0x0043bb00], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x00440584], esi
jmp 0x405e1d
mov rax, qword [rdi + 8]
mov dword [0x0043bb08], 1
lea r9, [0x0043baf0]
lea r8, [0x0040617c]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov qword [0x0043baf8], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x0043bb00], rax
jmp 0x405e1d
lea rcx, [0x004508d0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rcx, [0x00440760]
call fcn.00403b18
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x405fb8
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 [0x00440598], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
mov qword [0x00440578], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [0x00440570], rax
mov rax, qword [rbx + 0x20030]
lea r9, [0x0043bae0]
mov qword [0x0043bae8], rax
mov rax, qword [rbx + 0x20030]
lea r8, [0x0040617c]
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, [0x0040617c]
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 0x406118
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x0043bb00]
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 0x406148
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x0043bb00]
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 0x406358
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 0x406437
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rdi
jne 0x4063a1
mov rax, qword [rbx]
mov edx, 0x3eb
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x4064b9
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 0x406410
mov rax, qword [rbx]
mov edx, 0x3eb
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, eax
jmp 0x406419
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.00418978
jmp 0x4064b7
lea r8, [rsp + 0x80]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, edi
jne 0x4064a2
add rbx, 0x10030
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x80]
lea rdx, str.SACODiskOptimizer
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 0x4064b7
lea rdx, [0x00430810]
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 0x4064cc
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 0x406603
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x406518
mov rax, qword [rbx]
mov edx, 0x3eb
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x40663f
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 0x406550
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 0x40663f
lea r8, [rbx + 0x20038]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4065cb
mov rdx, qword [rbx + 0x18]
lea rcx, str.Stopping__s_service._Please_wait.
call fcn.00418978
jmp 0x406590
cmp dword [rbx + 0x2003c], 3
jne 0x4065af
lea rcx, [0x00430234]
call fcn.00418978
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 0x40657b
cmp dword [rbx + 0x2003c], 1
lea rcx, str._stopped._n
je 0x4065c6
lea rcx, str._failed._n
call fcn.00418978
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 0x4065ea
lea rcx, str.Cant_remove__s_service._n
call fcn.00418978
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40663d
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40663d
mov rcx, qword [rsp + 0x30]
lea rdx, str.SACODiskOptimizer
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 0x40ee08
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.0040d90c
mov rsi, rax
test rax, rax
je 0x40ee84
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x40ee7f
cmp dword [rbx], 0x40
jb 0x40ee7f
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 0x40ee7f
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x40ee88
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 0x419950
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.0041f44c
nop
cmp dword [0x0043f5b8], 1
je 0x4198fc
mov dword [0x0043f5b4], 1
mov byte [0x0043f5b0], r12b
test ebx, ebx
jne 0x4198e8
mov rcx, qword [0x00451c30]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x4198d5
mov rcx, qword [0x00451c28]
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 0x419874
call fcn.0041b3d8
cmp qword [rdi], rax
jne 0x419874
jmp 0x41985a
cmp rdi, rsi
jb 0x4198d5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.0041b3d8
mov qword [rdi], rax
call rbx
mov rcx, qword [0x00451c30]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x00451c28]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x4198b3
cmp r13, rax
je 0x4198d3
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 0x41985a
lea rdx, [0x0042a9d8]
lea rcx, [0x0042a9c0]
call fcn.004196a4
lea rdx, [0x0042a9e8]
lea rcx, [0x0042a9e0]
call fcn.004196a4
nop
test r12d, r12d
je 0x41990b
mov ecx, 8
call fcn.0041f34c
test r12d, r12d
jne 0x419936
mov dword [0x0043f5b8], 1
lea ecx, [r12 + 8]
call fcn.0041f34c
mov ecx, r15d
call fcn.00419638
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 0x4197c4

Function at 0x41995c
Capabilities:
Terminate process

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

Disassembly:
cmp rcx, qword [0x0043a0c0]
jne 0x41792a
rol rcx, 0x10
test cx, 0xffff
jne 0x417926
repz ret
ror rcx, 0x10
jmp 0x41b82c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0043fba0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x0043fc98]
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 0x41b8b1
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, [0x0043fba0]
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 0x41b8d3
mov rax, qword [rsp + 0x88]
mov qword [0x0043fc98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0043fc38], rax
mov rax, qword [0x0043fc98]
mov qword [0x0043fb10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0043fc20], rax
mov dword [0x0043fb00], 0xc0000409
mov dword [0x0043fb04], 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 [0x0043fb98], eax
mov ecx, 1
call fcn.0041d50c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0042e9e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0043fb98], 0
jne 0x41b95a
mov ecx, 1
call fcn.0041d50c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x421394
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.0041b3d8
xor ebx, ebx
mov rdi, rax
cmp qword [0x00440440], rbx
jne 0x42149a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x42156f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x42156f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x0042eb48]
mov rcx, rsi
mov qword [0x00440440], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x0042eb30]
mov rcx, rsi
mov qword [0x00440448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x00440450], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x00440460], rax
test rax, rax
je 0x421491
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x00440458], rax
jmp 0x4214a1
mov rax, qword [0x00440458]
jmp 0x4214a8
mov rax, qword [0x00440458]
mov r11, qword [0x00440460]
cmp rax, rdi
je 0x421510
cmp r11, rdi
je 0x421510
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x00440460]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x421510
test rax, rax
je 0x421510
call rsi
test rax, rax
je 0x42150a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x42150a
test byte [rsp + 0x38], 1
jne 0x421510
bts ebp, 0x15
jmp 0x42154e
mov rcx, qword [0x00440448]
cmp rcx, rdi
je 0x42154e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42154e
call rax
mov rbx, rax
test rax, rax
je 0x42154e
mov rcx, qword [0x00440450]
cmp rcx, rdi
je 0x42154e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42154e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00440440]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x42156f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x421571
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret