joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000830c
Capabilities:
Delete service
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x850
movzx eax, word [rcx]
mov ebp, 0x20
mov rdi, rcx
mov rdx, rcx
xor esi, esi
lea r12d, [rbp - 0x17]
jmp 0x140008356
cmp r12w, ax
ja 0x14000834a
cmp ax, 0xd
jbe 0x14000835b
cmp bp, ax
je 0x14000835b
add rdi, 2
mov ax, word [rdi]
cmp ax, si
jne 0x14000833e
mov rax, rdi
sub rax, rcx
mov ecx, 0x400
sar rax, 1
cmp eax, ecx
cmovg eax, ecx
lea rcx, [rsp + 0x40]
cdqe
lea rbx, [rax + rax]
mov r8, rbx
call fcn.14001c8fc
mov word [rsp + rbx + 0x40], si
cmp r12w, word [rdi]
ja 0x140008392
cmp word [rdi], 0xd
jbe 0x140008397
cmp bp, word [rdi]
jne 0x14000839d
add rdi, 2
jmp 0x140008386
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rbx, rax
cmp rax, rsi
je 0x14000840d
lea rdx, [rsp + 0x40]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_OpenServiceW]
mov rdi, rax
cmp rax, rsi
je 0x14000840d
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_ControlService]
mov esi, 0xc8
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x140008413
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14000a478
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov bpl, dl
xor edx, edx
mov sil, r9b
mov rdi, r8
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rcx, qword [rbx]
mov qword [0x14012c9f8], 0
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
and qword [rbx], 0
test rdi, rdi
je 0x14000a4dd
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000a4dd
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_TerminateJobObject]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
and qword [rdi], 0
test sil, sil
je 0x14000a4f3
lea rcx, [0x14010e1c8]
mov r8b, 1
xor edx, edx
call fcn.140007ef0
mov rcx, qword [0x14012cab0]
call fcn.140005464
test bpl, bpl
je 0x14000a521
mov ebx, 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_AbortSystemShutdownW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
sub ebx, 1
jns 0x14000a509
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015f18
Capabilities:
Accept command line arguments

Disassembly:
mov rax, r9
mov r9d, dword [rsp + 0x28]
mov r10, r8
mov r11, rdx
mov qword [0x14012cf28], rcx
mov r8, rax
mov rdx, r10
mov rcx, r11
jmp sym.PECMD.exe_mainW

Function at 0x140015f3c
Capabilities:
Accept command line arguments

Disassembly:
mov r8, rdx
mov rdx, rcx
xor r9d, r9d
xor ecx, ecx
jmp sym.PECMD.exe_mainW

Function at 0x14001647c
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp sym.PECMD.exe_mainB

Function at 0x1400164a0
Capabilities:
Accept command line arguments

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp sym.PECMD.exe_mainB

Function at 0x1400166f0
Capabilities:
Check os version
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x70
lea rcx, [0x14012cb80]
mov dword [0x14012cb80], 0x114
call qword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [0x14012cb84], 5
je 0x14001671d
xor eax, eax
jmp 0x140016814
mov eax, dword [0x14012cb88]
test eax, eax
je 0x140016733
cmp eax, 1
jne 0x140016716
mov ebx, 0x39000
jmp 0x140016738
mov ebx, 0x30000
lea rdx, [0x14010f730]
lea rcx, [rsp + 0x30]
call qword [fcn.14012cb38]
and qword [rsp + 0x48], 0
and dword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [0x14012cce8]
mov edx, 6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
call qword [fcn.14012cb00]
cmp eax, 0xc0000022
jne 0x1400167d8
lea r8, [rsp + 0x40]
lea rcx, [0x14012cce8]
mov edx, 0x60000
call qword [fcn.14012cb00]
mov rcx, qword [0x14012cce8]
call fcn.1400165a0
mov rcx, qword [0x14012cce8]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea r8, [rsp + 0x40]
lea rcx, [0x14012cce8]
mov edx, 6
call qword [fcn.14012cb00]
test eax, eax
js 0x140016716
mov rcx, qword [0x14012cce8]
xor r8d, r8d
mov r9d, ebx
lea edx, [r8 + 6]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov qword [0x14012cce0], rax
neg rax
sbb rax, rax
and rax, qword [0x14012cce8]
add rsp, 0x70
pop rbx
ret

Function at 0x14001681c
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov eax, edx
mov rdi, rdx
mov esi, edx
shr rax, 0x16
mov r9d, dword [rcx + rax*4]
mov eax, r9d
and eax, 1
test al, al
jne 0x140016848
xor eax, eax
jmp 0x1400168b4
mov eax, r9d
and eax, 0x80
test al, al
je 0x140016864
mov ebx, r9d
xor ebx, edx
and ebx, 0x3fffff
xor ebx, r9d
jmp 0x1400168b2
mov rcx, qword [0x14012cce8]
xor r8d, r8d
and r9d, 0xfffff000
lea edx, [r8 + 4]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
shr rsi, 0xc
mov ecx, eax
and esi, 0x3ff
mov eax, dword [rcx + rsi*4]
and eax, 1
test al, al
je 0x140016844
mov ebx, dword [rcx + rsi*4]
xor ebx, edi
and ebx, 0xfff
xor ebx, dword [rcx + rsi*4]
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400168c4
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x14012cce0]
call fcn.14001681c
mov rcx, qword [0x14012cce8]
xor r8d, r8d
mov r9d, eax
lea edx, [r8 + 6]
mov rbx, rax
and r9d, 0xfffff000
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rcx, rax
test rax, rax
je 0x140016921
mov eax, ebx
shr rax, 2
and eax, 0x3ff
mov ebx, dword [rcx + rax*4]
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140016a64
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140016a8b
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140016a94
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
cmp word [rcx], di
je 0x140016af0
cmp word [rcx + 2], di
je 0x140016af0
cmp word [rcx + 4], di
je 0x140016af0
cmp word [rcx + 6], di
je 0x140016af0
cmp word [rcx + 8], di
je 0x140016af0
cmp word [rcx + 0xa], di
je 0x140016af0
cmp word [rcx + 0xc], di
je 0x140016af0
cmp word [rcx + 0xe], di
je 0x140016af0
lea rax, [rcx + 0x10]
jmp 0x140016aeb
mov edx, 0x5c
cmp dx, word [rax]
jne 0x140016ae7
mov edx, 0x2f
mov word [rax], dx
add rax, 2
cmp word [rax], di
jne 0x140016ad5
mov r8, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov rbx, rax
cmp rax, rdi
je 0x140016b11
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140016c74
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov rdi, rcx
mov dword [rax - 0x20], 0x80
lea rcx, [0x14010f770]
lea r8d, [r9 + 7]
mov edx, 0xc0000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140016cf7
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.140058ca4
cmp byte [rdi], 0
je 0x140016cee
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140016df4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rbx, rdx
mov rdx, rcx
mov qword [rax - 0x30], rbp
mov dword [rax - 0x38], ebp
mov rdi, r8
mov dword [rax - 0x40], 3
lea r9d, [rbp + 7]
lea rcx, [rax + 0x10]
mov r8d, 0x80000000
mov qword [rax + 0x10], rbp
mov qword [rax - 0x48], rbp
call fcn.1400037e8
mov rsi, rax
cmp rax, rbp
je 0x140016ee6
lea rdx, [rsp + 0x78]
mov rcx, rax
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov r11, qword [rsp + 0x78]
mov dword [rsp + 0x88], r11d
cmp rdi, rbp
je 0x140016e6c
mov dword [rdi], r11d
jmp 0x140016e74
lea rdi, [rsp + 0x88]
cmp rbx, rbp
jne 0x140016ea0
lea edx, [r11 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.14005f7a0
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
call fcn.140057768
cmp rbx, rbp
je 0x140016edd
mov r8d, dword [rdi]
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov r11d, dword [rsp + 0x78]
cmp r11d, ebp
cmovl r11d, ebp
xor edx, edx
movsxd rcx, r11d
lea r8d, [rdx + 6]
mov dword [rdi], r11d
add rcx, rbx
call fcn.1400f3900
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400177f8
Capabilities:
Parse pe header

Disassembly:
mov r10, r8
mov r9, rcx
cmp r8, 0x40
jae 0x140017807
xor eax, eax
ret
mov eax, 0x5a4d
mov qword [rcx + 0x20], rdx
cmp word [rdx], ax
jne 0x140017804
movsxd r8, dword [rdx + 0x3c]
mov eax, r10d
lea rcx, [r8 + 0x108]
cmp rax, rcx
jb 0x140017804
lea rax, [r8 + rdx]
mov qword [r9 + 0x28], rax
cmp dword [rax], 0x4550
jne 0x140017804
movzx r11d, word [rax + 0x16]
mov ecx, 0x2002
test cx, r11w
je 0x140017804
test byte [rax + 0x16], 2
je 0x140017804
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x140017804
lea rdx, [rax + 0x108]
xor r8d, r8d
mov qword [r9 + 0x30], rdx
cmp r8w, word [rax + 6]
jae 0x140017890
add rdx, 0x10
mov eax, dword [rdx + 4]
add eax, dword [rdx]
cmp rax, r10
ja 0x140017804
mov rax, qword [r9 + 0x28]
inc r8d
add rdx, 0x28
movzx ecx, word [rax + 6]
cmp r8d, ecx
jl 0x140017872
mov eax, r11d
ret

Function at 0x140017930
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
cmp dword [0x14012c934], ebx
setne dil
test dil, dil
je 0x1400179a7
mov rcx, qword [0x14012d2d8]
mov edx, 8
lea r8d, [rdx + 0x30]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14001797e
lea ecx, [rax + 2]
call fcn.14005f5d4
cmp eax, 4
je 0x140017953
mov dword [rbx + 4], 0xaa55
mov qword [rbx], 0x30
add rbx, 8
mov qword [rbx + 0x20], 0xfffffffffff80000
mov ecx, dword [0x14012c934]
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test rsi, rsi
je 0x1400179af
mov qword [rsi], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov al, dil
add rsp, 0x20
pop rdi
ret
Function at 0x1400179c4
Capabilities:
Get thread local storage value
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov sil, cl
lea rdi, [0x14012cb08]
cmp rdx, rbp
jne 0x1400179fc
mov ecx, dword [0x14012c934]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
cmp rax, rbp
je 0x140017a04
cmp qword [rax], rbp
je 0x140017a04
mov rdi, rax
jmp 0x140017a04
cmp rdx, 0xffffffffffffffff
cmovne rdi, rdx
cmp qword [rdi], rbp
je 0x140017a6b
cmp sil, bpl
je 0x140017a6b
cmp qword [rdi + 0x10], rbp
jle 0x140017a6b
mov rcx, qword [rdi + 8]
cmp word [rcx], bp
je 0x140017a6b
test byte [0x14012d57e], 2
je 0x140017a47
call fcn.1400f3e90
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
lea r9, [rsp + 0x60]
mov r8d, eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.DLL_WriteConsoleW]
jmp 0x140017a6b
call fcn.1400f3e90
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
lea r8d, [rax + rax]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [rdi + 0x18]
dec eax
cmp eax, 0x1ffff
jb 0x140017a8d
lea rcx, [rdi + 8]
mov edx, 0x10002
mov qword [rdi + 0x18], 0x10000
call fcn.14005fb18
mov rax, qword [rdi + 8]
mov rbx, qword [rsp + 0x50]
mov word [rax], bp
mov qword [rdi + 0x10], rbp
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140017f04
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and qword [rax - 0x10], 0
and qword [rax + 0x20], 0
and qword [rax - 0x18], 0
mov ebx, r8d
mov edi, edx
lea r9, [rax - 0x18]
lea r8, [rax + 0x20]
lea rdx, [rax - 0x10]
call qword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test ebx, ebx
je 0x140017f3e
cdqe
jmp 0x140017f4b
mov rax, qword [rsp + 0x58]
test edi, edi
cmovne rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140017f74
Capabilities:
Get disk size

Disassembly:
xor edx, edx
lea r8d, [rdx + 1]
jmp fcn.140017f04
Function at 0x140017f80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14012c934]
lea rbx, [0x14012cb08]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor ebp, ebp
cmp rax, rbp
je 0x140017fb8
cmp qword [rax], rbp
cmovne rbx, rax
cmp qword [rbx], rbp
je 0x140018097
lea rcx, [0x14012e0b8]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp qword [rbx], rbp
je 0x14001808a
mov eax, dword [rbx + 0x18]
sub eax, dword [rbx + 0x10]
cmp eax, 0xc96
jge 0x140017ffc
mov rdx, qword [rbx + 0x10]
lea rcx, [rbx + 8]
add rdx, 0x10c96
mov qword [rbx + 0x18], rdx
call fcn.14005fb18
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
lea r8, [rax + rcx*2 + 0x1000]
mov word [r8], bp
mov rax, qword [rsp + 0x58]
mov rsi, rax
cmp rax, 0xffff
ja 0x140018038
mov rcx, qword [0x14012ca58]
mov r9d, 0x400
mov edx, eax
mov rsi, r8
call qword [sym.imp.USER32.DLL_LoadStringW]
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
lea r9, [rsp + 0x60]
lea rcx, [rax + rcx*2]
mov r8, rsi
mov edx, 0x7fd
call fcn.1400f4520
cmp eax, ebp
cmovl eax, ebp
cdqe
add qword [rbx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov word [rax + rcx*2], bp
cmp qword [rbx + 0x10], 0x10000
jg 0x140018080
cmp byte [0x14012cb31], bpl
je 0x14001808a
mov rdx, rbx
mov cl, 1
call fcn.1400179c4
lea rcx, [0x14012e0b8]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400180a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x14012c934]
lea rbx, [0x14012cb08]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
xor esi, esi
cmp rax, rsi
je 0x1400180d7
cmp qword [rax], rsi
cmovne rbx, rax
cmp qword [rbx], rsi
je 0x140018178
lea rcx, [0x14012e0b8]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp qword [rbx], rsi
je 0x14001816b
mov eax, dword [rbx + 0x18]
sub eax, dword [rbx + 0x10]
cmp eax, 0x896
jge 0x140018117
mov rdx, qword [rbx + 0x10]
lea rcx, [rbx + 8]
add rdx, 0x10896
mov qword [rbx + 0x18], rdx
call fcn.14005fb18
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov r8, qword [rsp + 0x48]
lea rcx, [rax + rcx*2]
lea r9, [rsp + 0x50]
mov edx, 0x7fd
call fcn.1400f4520
cmp eax, esi
cmovl eax, esi
cdqe
add qword [rbx + 0x10], rax
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov word [rax + rcx*2], si
cmp qword [rbx + 0x10], 0x10000
jg 0x140018161
cmp byte [0x14012cb31], sil
je 0x14001816b
mov rdx, rbx
mov cl, 1
call fcn.1400179c4
lea rcx, [0x14012e0b8]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018374
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov r13d, edx
mov edx, 0xffffffec
mov ebp, r8d
mov rdi, rcx
call qword [sym.imp.USER32.DLL_GetWindowLongW]
mov rcx, rdi
movsxd r14, eax
call qword [sym.imp.USER32.DLL_GetParent]
xor r15d, r15d
lea rdx, [rsp + 0x68]
mov rcx, rdi
mov r12, rax
mov dword [rsp + 0x68], r15d
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x70], r15d
mov dword [rsp + 0x74], r15d
call qword [sym.imp.USER32.DLL_GetWindowRect]
lea rdx, [rsp + 0xd8]
mov rcx, r12
mov dword [rsp + 0xd8], r15d
mov dword [rsp + 0xdc], r15d
call qword [sym.imp.USER32.DLL_ScreenToClient]
mov r8d, dword [rsp + 0xdc]
mov edx, dword [rsp + 0xd8]
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.DLL_OffsetRect]
mov rcx, rdi
call qword [sym.imp.USER32.DLL_GetWindowTextLengthW]
movsxd rbx, eax
lea ecx, [rbx + 0x1b]
movsxd rdx, ecx
lea rcx, [rsp + 0x60]
call fcn.14005fa8c
mov rsi, qword [rsp + 0x60]
lea r8d, [rbx + 0xb]
mov rdx, rsi
mov rcx, rdi
mov word [rsi], r15w
call qword [sym.imp.USER32.DLL_GetWindowTextW]
mov rax, qword [rsp + 0x60]
lea edx, [r15 + 0x31]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov word [rax + rbx*2 + 0x14], r15w
call qword [sym.imp.USER32.DLL_SendMessageW]
lea r9, [rsp + 0xd0]
mov r15, rax
or eax, 0xffffffff
lea r8, [rsp + 0xc0]
mov edx, 0xb0
mov rcx, rdi
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xd0], eax
call qword [sym.imp.USER32.DLL_SendMessageW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.USER32.DLL_ShowWindow]
test ebp, ebp
jns 0x1400184ab
mov rcx, rdi
call qword [sym.imp.USER32.DLL_DestroyWindow]
and qword [rsp + 0x58], 0
mov r9d, dword [rsp + 0x68]
mov r11d, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x70]
mov r10d, dword [rsp + 0x74]
mov rax, qword [0x14012cf28]
mov qword [rsp + 0x50], rax
sub r8d, r9d
movzx edx, bp
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r12
sub r10d, r11d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r9d
lea rdx, [0x14010fa88]
xor r8d, r8d
mov r9d, r13d
mov ecx, r14d
call qword [sym.imp.USER32.DLL_CreateWindowExW]
mov r9d, 1
mov r8, r15
lea edx, [r9 + 0x2f]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.DLL_SendMessageW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SetWindowTextW]
mov r9d, dword [rsp + 0xd0]
mov r8d, dword [rsp + 0xc0]
mov edx, 0xb1
mov rcx, rbx
call qword [sym.imp.USER32.DLL_SendMessageW]
lea rcx, [rsp + 0x60]
call fcn.140057768
mov rax, rbx
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018924
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov r13, rcx
mov ebp, edx
xor r15d, r15d
lea rcx, [rsp + 0x68]
mov edx, 0x325
mov r12, r8
mov edi, r15d
mov esi, r15d
call fcn.14005fa8c
mov rbx, qword [rsp + 0x68]
mov ecx, 0x324
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
mov rcx, r13
call qword [sym.imp.USER32.DLL_CharUpperW]
mov rcx, rbx
call qword [sym.imp.USER32.DLL_CharUpperW]
cmp word [rbx], r15w
je 0x1400189c1
add ebp, 0x10
mov rcx, rbx
call fcn.140017f58
cmp eax, ebp
jb 0x1400189f2
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
sub eax, 2
je 0x1400189ea
cmp eax, 1
jne 0x1400189f2
movzx eax, word [rbx]
mov edi, 1
mov word [r12 + 2], ax
movzx eax, word [r13]
cmp word [rbx], ax
jb 0x1400189f2
mov esi, edi
lea rcx, [rsp + 0x68]
call fcn.140057768
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
cmp esi, r15d
cmovne edi, esi
mov eax, edi
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
movzx eax, word [rbx]
mov word [r12], ax
mov rcx, rbx
call fcn.1400f3e90
inc eax
lea rbx, [rbx + rax*2]
cmp word [rbx], r15w
je 0x1400189c1
jmp 0x140018988

Function at 0x140019174
Capabilities:
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x180
xor ebx, ebx
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rbx
lea ebp, [rbx + 1]
mov dword [rsp + 0x28], 0x80
mov r8d, ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400191c1
xor eax, eax
jmp 0x14001925a
lea r9, [rsp + 0x198]
lea rdx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [rsp + 0x198], 0x40
jne 0x14001924f
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14001924f
mov edx, dword [rsp + 0x7c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x14001924f
lea r9, [rsp + 0x198]
lea rdx, [rsp + 0x80]
mov r8d, 0xf8
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [rsp + 0x198], 0xf8
jne 0x14001924f
cmp dword [rsp + 0x80], 0x4550
cmove ebx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140019590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
xor edx, edx
mov rbx, r8
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400195db
mov edx, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x1400195d2
test rbx, rbx
je 0x1400195d2
and qword [rbx], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret