joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013e434
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rdx + 8], 0x100
mov rdi, rdx
mov rbx, rcx
jne 0x14013e542
cmp qword [rdx + 0x10], 9
je 0x14013e478
cmp qword [rdx + 0x10], 0x1b
jne 0x14013e4cc
call fcn.1400304a0
test rax, rax
je 0x14013e4cc
mov rcx, rbx
call fcn.1400304a0
jmp 0x14013e4ba
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14002fe6c
test rax, rax
je 0x14013e4cc
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14002fe6c
mov rdx, qword [rbx + 0x40]
xor r8d, r8d
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.14002fe6c
mov rcx, rax
call fcn.1400369b0
mov eax, 1
jmp 0x14013e54d
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14002fe6c
cmp rax, rbx
jne 0x14013e542
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14013e542
mov rax, qword [rdi + 0x10]
cmp rax, 0x2e
je 0x14013e53b
cmp rax, 0x43
je 0x14013e534
cmp rax, 0x56
je 0x14013e51d
cmp rax, 0x58
je 0x14013e516
cmp rax, 0x5a
jne 0x14013e542
lea edx, [rax + 0x6d]
jmp 0x14013e522
mov edx, 0x300
jmp 0x14013e522
mov edx, 0x302
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x14013e4c2
mov edx, 0x301
jmp 0x14013e522
mov edx, 0x303
jmp 0x14013e522
mov rdx, rdi
mov rcx, rbx
call fcn.140046c0c
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140141e88
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov rdi, rcx
xor ebp, ebp
cmp edx, 0x79
jne 0x140141eb6
lea ecx, [rdx - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140141ebb
cmp esi, 0x5d
jne 0x140141ee0
or eax, 0xffffffff
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov r8, qword [rsp + 0x50]
mov rdx, rdi
mov rcx, rdi
call fcn.140141a30
mov eax, 1
jmp 0x140141f82
mov edx, esi
mov rcx, qword [rdi + 0x1558]
call fcn.140152b34
test eax, eax
jne 0x140141ed6
cmp qword [rdi + 0x1560], rbp
je 0x140141f3c
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1400b83d0
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1402c5cfc], ebp
mov rcx, qword [rdi + 0x1560]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1b8]
mov edx, esi
call qword [case.0x140045926.0]
nop
mov dword [0x1402c5cfc], ebx
jmp 0x140141f82
cmp qword [rdi + 0x1580], rbp
je 0x140141f80
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1400b83d0
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1402c5cfc], ebp
mov rcx, qword [rdi + 0x1580]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1d0]
mov edx, esi
call qword [case.0x140045926.0]
nop
jmp 0x140141f34
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14016458c
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x1c0
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x38], rdx
mov rax, r8
mov rbx, rdx
test r8, r8
je 0x14016460b
mov rcx, qword [rax + 8]
lea r8, [rsp + 0x40]
mov r9d, 0x168
mov dword [rsp + 0x20], 0x208
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov rcx, rbx
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x1401645ea
lea rdx, [0x140239620]
call fcn.140005fa0
mov rax, rbx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x1c0
pop rbx
ret
call fcn.140027884
int3

Function at 0x140179110
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x28]
xor ebx, ebx
cmp dword [rdi - 0x10], ebx
je 0x140179188
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
call fcn.14004c384
mov rcx, rax
test rax, rax
je 0x14017915f
mov rax, qword [rax]
mov rax, qword [rax + 0xe8]
call qword [case.0x140045926.0]
test rax, rax
je 0x14017915f
mov rcx, qword [rax + 0x40]
jmp 0x140179162
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov r9, rbp
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
setae bl
mov eax, ebx
jmp 0x14017918a
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14017da40
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140294974], 0
mov ebx, ecx
je 0x14017dadd
cmp dword [0x14029534c], 0xfffffffe
jne 0x14017daca
cmp ecx, 0xffffffff
je 0x14017dadd
lea rcx, [0x1402c6328]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1402c6350], 0
jne 0x14017dae3
xor r8d, r8d
lea rcx, [0x14017daec]
xor edx, edx
call fcn.1401db310
mov rcx, rax
mov qword [0x1402c6350], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14017daaf
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x14029534c], ebx
jmp 0x14017dab7
and qword [0x1402c6350], 0
lea rcx, [0x1402c6328]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x14029534c], ebx
cmp ebx, 0xffffffff
jne 0x14017dadd
and qword [0x1402c6350], 0
add rsp, 0x20
pop rbx
ret
call fcn.140027884
int3
Function at 0x140184880
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401e0144
test eax, eax
jne 0x1401848e4
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140041254
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1401848a4
jmp 0x1401848f6
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1401987b4
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
mov rbp, rcx
cmp dword [rdx + 8], 0x100
jne 0x1401988e6
mov ebx, dword [rdx + 0x10]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1401988e6
cmp ebx, 0x43
je 0x140198800
cmp ebx, 0x2d
jne 0x1401988e6
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1401988e6
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.1400292dc
mov rcx, rax
test rax, rax
je 0x140198903
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140045926.0]
add rax, 0x18
mov qword [rsp + 0x58], rax
movzx eax, byte [rbp + 0x196]
movzx r9d, byte [rbp + 0x195]
movzx r8d, byte [rbp + 0x194]
mov dword [rsp + 0x20], eax
lea rdx, str.RGB__d___d___d_
lea rcx, [rsp + 0x58]
call fcn.1400077d0
mov rbx, qword [rsp + 0x58]
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
mov ecx, 0x2000
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x1401988bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401988bd
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x1401988e6
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140045926.0]
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp method.CActivateDlg.virtual_536
mov ecx, 0x80004005
call fcn.140007000
int3

Function at 0x1401ba68c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401ba6d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401ba6d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401ba6d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ba6d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1401ba6d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401ba6d8
xor al, al
add rsp, 0x28
ret

Function at 0x1401c0ab0
Capabilities:
Get graphical window text

Disassembly:
mov rax, qword [rcx + 0x100]
mov r9, rdx
test rax, rax
je 0x1401c0ac7
mov rcx, rax
jmp fcn.1400305ac
lea rdx, [rcx + 0x108]
cmp qword [rdx + 0x18], 0xf
jbe 0x1401c0ad8
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1401c0ae8
xor r8d, r8d
mov rcx, r9
jmp fcn.140008210
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x1401c0af0
mov rcx, r9
jmp fcn.140008210
Function at 0x1401ce8fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401b9f10
sub rsp, rax
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401df2e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401ce94b
mov rax, rbp
jmp 0x1401cea53
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2c6f00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401e4754
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2c6f00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401cea4f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401cea4f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401e4754
test rax, rax
js 0x1401cea4f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401cea4f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401cea41
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401cea41
cmp byte [rcx], 0xd
jne 0x1401cea27
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401cea36
cmp byte [rcx + 1], 0xa
jne 0x1401cea36
inc rcx
jmp 0x1401cea36
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x295de0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401cea09
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401cea53
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401b9b30
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401d5b0c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401d5977
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401d5977
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401d5977
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401d5977
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401d5977
cmp dword [rcx + 0x84], 0xe
jbe 0x1401d5977
cmp dword [rcx + 0xf8], 0
je 0x1401d5977
mov ecx, ebx
call fcn.1401d5a28
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401d5804
nop
cmp dword [rbp + 0x20], 0
je 0x1401d59c5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401d59d0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401d5908
Function at 0x1401db3d8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401db40f
call fcn.1401ccf98
mov dword [rax], 0x16
call fcn.1401cce2c
xor eax, eax
jmp 0x1401db49d
mov rdx, r9
mov rcx, r8
call fcn.1401db2ac
mov rbx, rax
test rax, rax
je 0x1401db49a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401db168]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401db487
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401ccf0c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401db46e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401db47d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401e324c
jmp 0x1401db49a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401db497
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401db4cc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1401db4eb
call fcn.1401e892c
jmp 0x1401db5a0
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1401cd63c
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1401db536
cmp byte [rbp - 0x38], 0
je 0x1401db56b
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401db56b
call fcn.1401e5e2c
test eax, eax
jne 0x1401db557
cmp byte [rbp - 0x38], al
je 0x1401db54f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401db56b
cmp byte [rbp - 0x38], 0
je 0x1401db568
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1401cef8c
test eax, eax
je 0x1401db584
or ebx, 0xffffffff
jmp 0x1401db58f
mov rcx, qword [rbp - 0x20]
call fcn.1401e892c
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1401db59e
mov rcx, qword [rbp - 0x20]
call fcn.1401e324c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x1401e376c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1402c6f00]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401e37c3
cmp word [rdx], r13w
jne 0x1401e37c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401e37c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401e38ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401e390e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401e3801
mov rdx, r9
mov word [rbx], cx
jmp 0x1401e3828
cmp r9, r8
jae 0x1401e3838
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401e37e2
jmp 0x1401e38ed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e38e2
cmp dword [rsp + 0x80], esi
je 0x1401e38e2
lea r8, [0x1402c6f00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401e38ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401e388a
mov word [rbx], r13w
jmp 0x1401e38ea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401e3897
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401e38ea
cmp word [rsp + 0x70], r13w
jne 0x1401e38c7
cmp rbx, r14
je 0x1401e3884
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401e475c
cmp word [rsp + 0x70], r13w
je 0x1401e38ed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1402c6f00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401e38e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401e38ed
Function at 0x1401e5834
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401e584a
mov al, 1
jmp 0x1401e58aa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401e585b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401e58a8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401dfa20
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401e58a8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401e58a8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401e58a8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401e58aa
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1401e62d4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401e62f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401ccf0c
or eax, 0xffffffff
jmp 0x1401e62f6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1401e8f0c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140295a80]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401e8f56
call fcn.1401ccf78
mov dword [rax], 0xf
call fcn.1401ccf98
mov dword [rax], 0xd
call fcn.1401cce2c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401b9b30
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401e8f61
lea eax, [rbx + 1]
jmp 0x1401e8f43
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401e8f41
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401e8f43
Function at 0x1401ec2dc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1401ec30c
xor eax, eax
jmp 0x1401ec3cf
mov rbp, rbx
cmp word [rax], si
je 0x1401ec331
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401ec318
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401ec314
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1401e8fb8
movsxd r14, eax
test eax, eax
jne 0x1401ec36f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401ec305
mov rcx, r14
call fcn.1401e5ad0
mov rdi, rax
test rax, rax
jne 0x1401ec388
xor ecx, ecx
call fcn.1401e324c
jmp 0x1401ec364
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1401e8fb8
test eax, eax
jne 0x1401ec3b9
mov rcx, rdi
call fcn.1401e324c
jmp 0x1401ec3c3
xor ecx, ecx
call fcn.1401e324c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1401ec3ec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401ec473
mov rsi, rbx
cmp word [rax], bp
je 0x1401ec432
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401ec41c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401ec418
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401e5ad0
mov rdi, rax
test rax, rax
je 0x1401ec460
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401f1c30
mov rbp, rdi
xor ecx, ecx
call fcn.1401e324c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401f0700
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401e475c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401e475c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401f0850
cmp rax, 0xffffffffffffffff
je 0x1401f0850
xor edi, edi
test rbp, rbp
jle 0x1401f07fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401e74dc
mov rbx, rax
test rax, rax
jne 0x1401f0788
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401f07f1
mov edx, 0x8000
mov ecx, r14d
call fcn.1401e1b4c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401e5434
cmp eax, 0xffffffff
je 0x1401f07d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401f0798
mov edx, r15d
mov ecx, r14d
call fcn.1401e1b4c
jmp 0x1401f07f1
cmp byte [rsi + 0x38], dil
je 0x1401f07e8
cmp dword [rsi + 0x34], 5
jne 0x1401f07e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401f07f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401e324c
jmp 0x1401f0864
jns 0x1401f0864
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401e475c
cmp rax, 0xffffffffffffffff
jne 0x1401f081c
cmp byte [rsi + 0x30], dil
je 0x1401f0864
mov edi, dword [rsi + 0x2c]
jmp 0x1401f0864
mov ecx, r14d
call fcn.1401dfa20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401f0864
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401f0864
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401f085d
mov eax, dword [rsi + 0x2c]
jmp 0x1401f0862
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401e475c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1401f1910
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401f1938
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401f1938
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret