joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400241a8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov rax, qword [0x14021c740]
cmp byte [rax + 0x11480], 0
je 0x140024316
lea rcx, [rsp + 0x30]
call fcn.140128da8
nop
or r8d, 0xffffffff
mov rdx, qword [rbx + 0x7d78]
lea rcx, [rsp + 0x30]
call fcn.140128e50
xor esi, esi
mov rcx, qword [rbx + 0x7d60]
mov rax, qword [rbx + 0x7d68]
sub rax, rcx
sar rax, 4
test rax, rax
jle 0x14002430c
xor edi, edi
mov rcx, qword [rdi + rcx]
test rcx, rcx
je 0x1400242e7
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x7d60]
test eax, eax
jne 0x14002427a
lea rdx, [rcx + 0xc]
add rdx, rdi
mov rcx, qword [rdi + rcx]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rax, qword [rbx + 0x7d60]
mov r9d, dword [rax + rdi + 0xc]
mov r8d, dword [rax + rdi + 8]
lea rdx, str.ssh_agent.exe_with_PID__u_has_been_already_terminated_with_code__u
lea rcx, [rsp + 0x40]
call fcn.1400011e8
jmp 0x1400242a6
mov edx, 1
mov rcx, qword [rdi + rcx]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rbx + 0x7d60]
mov r8d, dword [rdi + rax + 8]
lea rdx, str.ssh_agent.exe_with_PID__u_was_killed_on_ConEmu_termination
lea rcx, [rsp + 0x40]
call fcn.1400011e8
mov rcx, qword [rbx + 0x3fa0]
test rcx, rcx
je 0x1400242c7
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x40]
call fcn.1401298e4
mov rdx, qword [rbx + 0x7d60]
mov rcx, qword [rdi + rdx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400242e7
and qword [rdi + rdx], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
add rdi, 0x10
mov rcx, qword [rbx + 0x7d60]
mov rax, qword [rbx + 0x7d68]
sub rax, rcx
sar rax, 4
cmp rsi, rax
jl 0x140024225
lea rcx, [rsp + 0x30]
call fcn.140128dec
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400255c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rbx + 0x7c40]
je 0x140025603
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbx + 0x7c80]
mov rcx, qword [0x14021c5e0]
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1400256e3
xor ebp, ebp
mov edi, ebp
lea rcx, [rbx + 0x5740]
cmp word [rcx], bp
je 0x14002563e
lea rdi, [rbx + 0x4dc0]
mov r8d, 0x4c0
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x4be
jbe 0x140025639
lea rdi, [rbx + 0xa90]
test rdi, rdi
jne 0x140025689
lea rcx, [rsp + 0x20]
call fcn.140114b80
nop
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14010f2cc
test eax, eax
js 0x14002567f
mov rcx, qword [rsp + 0x28]
call fcn.14011bab8
test rax, rax
je 0x14002567f
mov rcx, qword [rsp + 0x28]
call fcn.14011bab8
mov rcx, rax
mov dl, 1
call fcn.1400b152c
mov rdi, rax
lea rcx, [rsp + 0x20]
call fcn.140114c28
lea rsi, [rbx + 0xa90]
test rdi, rdi
cmovne rsi, rdi
test rsi, rsi
je 0x1400256ca
lea rdi, [rbx + 0x4dc0]
cmp rsi, rdi
je 0x1400256ca
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400256ca
mov r8d, 0x4c0
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rcx, rbx
call fcn.140025078
lea rcx, [0x14021f640]
call fcn.1401021c4
call fcn.14010d34c
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140028c54
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140028c96
xor eax, eax
jmp 0x140028e0e
xor ebx, ebx
mov rsi, r14
lea rcx, [rsp + 0x60]
call fcn.1401286a8
nop
xor edi, edi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.14012571c
mov rsi, rax
test rax, rax
je 0x140028e02
mov rax, qword [rsp + 0x60]
cmp word [rax], 0x2f
jne 0x140028cd7
mov ecx, 0x2d
mov word [rax], cx
lea rcx, [rsp + 0x60]
call fcn.140058574
mov rcx, rax
lea rdx, str._debug
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140028d63
lea rcx, [rsp + 0x60]
call fcn.140058574
mov rcx, rax
lea rdx, str._debugi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140028d56
lea rcx, [rsp + 0x60]
call fcn.140058574
mov rcx, rax
lea rdx, str._debugw
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140028d4c
inc edi
cmp edi, 1
jle 0x140028ca8
jmp 0x140028e02
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140028d41
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
jmp 0x140028df2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rdx, str.Conemu_started__PID_i
lea rcx, [rbp - 0x70]
call fcn.1400011e8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov r8, rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r14
lea r9, str._n_n_nlpCmdLine_n
lea rdx, str.GetCommandLineW___n
lea rcx, [rsp + 0x50]
call fcn.140120be0
nop
lea rcx, [rsp + 0x50]
call fcn.140058574
mov rdx, rax
mov r9d, 0x11040
lea r8, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ebx, eax
lea rcx, [rsp + 0x50]
call fcn.140120ddc
test ebx, ebx
je 0x140028e02
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x60]
call fcn.1401286cc
mov eax, ebx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140139b10
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140029d9c
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x28], ecx
lea rcx, [0x140029dc8]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14002b274
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
xor ebx, ebx
mov rsi, r8
mov rbp, rcx
test dx, dx
je 0x14002b2a1
movzx edx, dx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbp, rax
test rbp, rbp
jne 0x14002b2b2
mov rcx, rsi
call fcn.1401211c4
xor eax, eax
jmp 0x14002b30d
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdi, eax
mov rcx, rsi
test eax, eax
jle 0x14002b303
mov rdx, rdi
call fcn.140121228
test rax, rax
je 0x14002b30a
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1401219f8
mov rcx, rsi
call fcn.140121428
mov rcx, rsi
mov rbx, rax
call fcn.140058574
mov rdx, rax
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002b30a
mov edi, ebx
call fcn.1401211c4
movsxd rax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002b8f0
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
xor edx, edx
lea rcx, str.ConEmuFakeDT
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
lea rcx, str.ConEmuHooks
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
Function at 0x14002fd38
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x14
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
mov ecx, 0x90
mov byte [rbx + 0x1a], al
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
mov ecx, 0x91
mov byte [rbx + 0x1b], al
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
mov ecx, 0x5b
mov byte [rbx + 0x1c], al
call fcn.1401239d4
test al, al
jne 0x14002fd8d
mov ecx, 0x5c
call fcn.1401239d4
test al, al
je 0x14002fd8f
mov al, 1
mov ecx, 0x5d
mov byte [rbx + 0x18], al
call fcn.1401239d4
mov ecx, 0xa4
mov byte [rbx + 0x19], al
call fcn.1401239d4
mov ecx, 0xa5
mov byte [rbx + 0x1d], al
call fcn.1401239d4
mov ecx, 0xa2
mov byte [rbx + 0x1e], al
call fcn.1401239d4
mov ecx, 0xa3
mov byte [rbx + 0x1f], al
call fcn.1401239d4
mov ecx, 0xa0
mov byte [rbx + 0x20], al
call fcn.1401239d4
mov ecx, 0xa1
mov byte [rbx + 0x21], al
call fcn.1401239d4
mov cl, byte [rbx + 0x1a]
mov r8b, al
neg cl
mov byte [rbx + 0x22], al
sbb edx, edx
and edx, 0x80
mov ecx, edx
or ecx, 0x20
cmp byte [rbx + 0x1b], 0
cmove ecx, edx
mov eax, ecx
or eax, 0x40
cmp byte [rbx + 0x1c], 0
cmove eax, ecx
mov ecx, eax
or ecx, 2
cmp byte [rbx + 0x1d], 0
cmove ecx, eax
mov eax, ecx
or eax, 1
cmp byte [rbx + 0x1e], 0
cmove eax, ecx
mov ecx, eax
or ecx, 8
cmp byte [rbx + 0x1f], 0
cmove ecx, eax
mov eax, ecx
or eax, 4
cmp byte [rbx + 0x20], 0
cmove eax, ecx
cmp byte [rbx + 0x21], 0
jne 0x14002fe50
test r8b, r8b
je 0x14002fe53
or eax, 0x10
mov dword [rbx + 0x14], eax
add rsp, 0x20
pop rbx
ret
Function at 0x14003a5c4
Capabilities:
Check for time delay via gettickcount
Check for unmoving mouse cursor

Disassembly:
sub rsp, 0x38
mov r10d, edx
xor edx, edx
test r8d, r8d
je 0x14003a600
mov eax, dword [rcx + 0xf8]
test eax, eax
je 0x14003a600
mov r9d, r8d
sub r9d, eax
jns 0x14003a600
mov dword [rsp + 0x20], r9d
lea rdx, str.DoMinimizeRestore_skipped__vk_u_time_u_delay_i
mov r9d, r8d
mov r8d, r10d
call fcn.140037d58
add rsp, 0x38
ret
cmp r10d, 0x9b4
mov eax, 3
cmove edx, eax
add rsp, 0x38
jmp fcn.14003492c
Function at 0x140041af8
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rbx, [rcx + 0x308]
mov rdi, rcx
mov rcx, rbx
call fcn.14012148c
lea rdx, [0x14015a140]
test al, al
jne 0x140041b27
mov rdx, qword [rbx]
lea rcx, str.ConEmuArgs
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rsi, [rdi + 0x328]
mov rcx, rsi
call fcn.14012148c
test al, al
je 0x140041b50
lea rdx, [0x14015a140]
jmp 0x140041b8f
mov rcx, rsi
lea rbx, [rdi + 0x318]
call fcn.140120ef0
cmp byte [rdi + 0x338], 0
lea rdx, [0x140176350]
movzx r8d, al
mov rcx, rbx
lea rax, [0x140176340]
cmovne rdx, rax
call fcn.140121718
mov rcx, rbx
call fcn.140058574
mov rdx, rax
lea rcx, str.ConEmuArgs2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]

Function at 0x140041bc8
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareHoopoePG_2x
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140041c34
and dword [rsp + 0x48], eax
lea r9d, [rax + 4]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], r9d
lea rdx, str.CreateInNewEnvironment
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x140043278
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d8
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x358]
mov r12d, r9d
mov rdi, qword [rsp + 0x350]
mov r15, r8
mov r13, qword [rsp + 0x348]
mov r14, rdx
mov rsi, qword [rsp + 0x368]
mov rbp, rcx
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov rax, qword [rsp + 0x360]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x60], rdi
call fcn.140123140
test al, al
je 0x14004333d
and qword [rsp + 0x58], rbx
mov r9, r14
mov rax, qword [rsp + 0x70]
mov r8, rbp
mov qword [rsp + 0x50], rax
xor edx, edx
mov rax, qword [rsp + 0x78]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x340]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r15
call fcn.1400fef9c
mov ebx, eax
test eax, eax
jne 0x14004347c
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x238
call fcn.14013b230
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x80]
lea rcx, str.explorer.exe
call fcn.140129e54
test al, al
je 0x140043409
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140043404
lea r8, [rsp + 0x68]
mov edx, 0x2000b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400433f5
mov rax, qword [rsp + 0x70]
mov r9, r14
mov rcx, qword [rsp + 0x68]
mov r8, rbp
mov qword [rsp + 0x50], rax
xor edx, edx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x340]
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140043404
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14004342a
and qword [rsp + 0x68], 0
cmp rcx, 0xffffffffffffffff
je 0x14004342a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14004347c
mov rax, qword [rsp + 0x70]
mov r9, r15
mov qword [rsp + 0x48], rax
mov r8, r14
mov rax, qword [rsp + 0x78]
mov rdx, rbp
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov eax, dword [rsp + 0x340]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test rsi, rsi
je 0x14004347c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140139b10
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140043a2c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor esi, esi
mov rbx, r9
and qword [rbp - 0x18], rsi
mov r14, r8
and qword [rbp - 0x20], rsi
mov r15, rdx
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x18]
mov edx, 0x2000b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140043b82
lea edx, [rsi + 1]
lea ecx, [rsi + 0x14]
call fcn.14012005c
mov rdi, rax
lea edx, [rsi + 1]
lea r9, [rbp - 0x10]
mov r8d, edx
mov word [rax], 0x201
mov byte [rax + 7], 5
mov dword [rax + 8], 0x20
mov dword [rax + 0xc], 0x220
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
xor eax, eax
mov qword [rbp - 8], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], rsi
and dword [rsp + 0x30], esi
and qword [rsp + 0x28], rsi
and dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x140043b5d
mov rax, qword [rbp + 0x68]
mov r9, r14
mov rcx, qword [rbp - 0x20]
mov r8, r15
mov qword [rsp + 0x50], rax
mov rdx, r12
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x48]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140043b3b
mov esi, 1
jmp 0x140043b4c
mov rbx, qword [rbp + 0x70]
test rbx, rbx
je 0x140043b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp - 0x20], 0
jmp 0x140043b6e
mov rbx, qword [rbp + 0x70]
test rbx, rbx
je 0x140043b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rcx, rdi
call fcn.14012008c
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140043b93
mov rbx, qword [rbp + 0x70]
test rbx, rbx
je 0x140043b93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
lea r11, [rsp + 0x80]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140044d64
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x50
and qword [rax - 0x28], 0
xor r9d, r9d
and dword [rax - 0x30], 0
mov r14, r8
mov rdi, rdx
mov dword [rax - 0x38], 3
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140044e45
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140044e3c
cmp dword [rsp + 0x44], 0
jne 0x140044e3c
mov ecx, dword [rsp + 0x40]
inc ecx
call fcn.140120104
mov qword [rdi], rax
test rax, rax
je 0x140044e3c
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x78]
and dword [rsp + 0x78], 0
mov rdx, rax
and qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140044e32
mov eax, dword [rsp + 0x78]
cmp eax, dword [rsp + 0x40]
jne 0x140044e32
mov ecx, eax
mov rax, qword [rdi]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x78]
add rax, qword [rdi]
mov qword [r14], rax
mov rax, qword [rdi]
jmp 0x140044e47
mov rcx, qword [rdi]
call fcn.14012008c
jmp 0x140044e45
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret

Function at 0x140045198
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov edi, dword [rsp + 0x98]
mov r14d, r9d
mov ebp, r8d
mov r15, rdx
mov rbx, rcx
test edi, edi
je 0x140045223
mov r9d, dword [rcx + 0x18]
mov rsi, qword [rsp + 0x90]
movzx eax, word [rsi]
mov r8d, r14d
mov edx, dword [rbx + 0x1c]
mov ecx, eax
mov dword [rsp + 0x40], 0xe20746
shr ecx, 8
imul ecx, edx
movzx eax, al
imul eax, r9d
mov dword [rsp + 0x38], ecx
mov rcx, r15
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov edx, ebp
call qword [sym.imp.GDI32.dll_BitBlt]
mov r9d, dword [rbx + 0x18]
lea rsi, [rsi + 2]
add ebp, r9d
add edi, 0xffffffff
jne 0x1400451d3
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140045a8c
Capabilities:
Persist via run registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor esi, esi
movzx ebx, sil
lea r14d, [rsi + 1]
mov rax, qword [0x14021c740]
cmp byte [rax + 0xa60], sil
je 0x140045aca
cmp byte [rax + 0xa61], sil
mov dil, r14b
jne 0x140045acd
mov dil, sil
lea rcx, [rbp - 0x10]
call fcn.140120d54
nop
xor r8d, r8d
lea rdx, [rbp - 0x10]
mov rcx, qword [0x14021c5d8]
call fcn.140017028
mov rcx, qword [0x14021c740]
lea rdx, str.__Exit
cmp byte [rcx + 0xa62], sil
cmovne rdx, rsi
mov r8, qword [0x14021c5d8]
add r8, 0xaf0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdx
lea rcx, str._SetDefTerm__Detached__MinTSA
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x14016b500]
lea rdx, [0x14016b508]
lea rcx, [rbp - 0x20]
call fcn.140120be0
nop
lea rcx, [rbp - 0x30]
call fcn.140120d54
nop
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004602c
test al, al
je 0x140045b78
lea rcx, [rbp - 0x30]
call fcn.14012148c
test al, al
cmove ebx, r14d
cmp bl, dil
jne 0x140045bab
test dil, dil
je 0x140045c26
lea rcx, [rbp - 0x30]
call fcn.140058574
mov rbx, rax
lea rcx, [rbp - 0x20]
call fcn.140058574
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140045c26
test dil, dil
je 0x140045be7
lea rcx, [rbp - 0x20]
call fcn.140058574
mov r9, rax
mov dword [rsp + 0x20], esi
lea r8, str.ConEmuDefaultTerminal
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call fcn.140132cf4
test eax, eax
je 0x140045c26
lea rcx, str.Failed_to_set_ConEmuDefaultTerminal_value_in_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x140045c13
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.ConEmuDefaultTerminal
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call fcn.140132cf4
test eax, eax
je 0x140045c26
lea rcx, str.Failed_to_remove_ConEmuDefaultTerminal_value_from_HKCUSoftwareMicrosoftWindowsCurrentVersionRun
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, eax
call fcn.14011f550
nop
lea rcx, [rbp - 0x30]
call fcn.140120ddc
nop
lea rcx, [rbp - 0x20]
call fcn.140120ddc
nop
lea rcx, [rbp - 0x10]
call fcn.140120ddc
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004602c
Capabilities:
Persist via run registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
xor dil, dil
mov rax, qword [0x14021c740]
mov bpl, byte [rax + 0xa62]
lea rcx, [r11 - 0x18]
call fcn.140120d54
nop
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, str.ConEmuDefaultTerminal
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call fcn.140132b30
test eax, eax
jle 0x1400460b4
mov dil, 1
lea rdx, [0x14015a140]
lea rcx, [rsp + 0x30]
call fcn.140121ccc
mov rcx, rax
lea rdx, str._Exit
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
sete bpl
test rsi, rsi
je 0x1400460d4
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140121ccc
mov rdx, rax
or r8, 0xffffffffffffffff
mov rcx, rsi
call fcn.140121718
test rbx, rbx
je 0x1400460dc
mov byte [rbx], bpl
lea rcx, [rsp + 0x30]
call fcn.140120ddc
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400462fc
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140045a8c
lea rcx, [rbx + 0x88]
mov edx, 1
add rsp, 0x20
pop rbx
jmp fcn.140046468