joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014d028
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1402c4d40]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov edi, 0xfffffffd
mov dword [rcx + 0xd4], r15d
cmp dword [rcx + 0xc8], r15d
je 0x14014d0c8
test r8d, r8d
jne 0x14014d0c8
cmp dword [rcx + 0xcc], r15d
jne 0x14014d0c8
mov eax, dword [rcx + 0x24]
dec eax
cmp eax, edi
ja 0x14014d0be
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], r15
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [r14 + 0x40]
lea rdx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbx + 0x108]
call qword [sym.imp.USER32.dll_PtInRect]
mov dword [rbx + 0xd4], eax
test eax, eax
je 0x14014d294
jmp 0x14014d0c8
mov dword [rcx + 0xd4], 1
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x1e0]
call qword [case.0x14007b45e.0]
test eax, eax
je 0x14014d118
test esi, esi
jne 0x14014d118
lea rcx, [rbp - 0x20]
mov qword [rbp - 0x20], r15
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [r14 + 0x40]
lea rdx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbx + 0x118]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x14014d294
cmp dword [rbx + 0xd4], r15d
jne 0x14014d140
mov eax, dword [rbx + 0x24]
dec eax
cmp eax, edi
ja 0x14014d140
cmp dword [rbx + 0xc8], r15d
jne 0x14014d140
cmp dword [rbx + 0xe0], r15d
je 0x14014d294
mov rdx, qword [rbx + 0x80]
lea rcx, str.CMFCMenuBar
call fcn.14005ed24
mov rdi, rax
mov rax, qword [rbx + 0xc0]
test rax, rax
je 0x14014d190
mov dword [rax + 0x1f0], r15d
mov rcx, qword [rbx + 0xc0]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc0]
call qword [case.0x14007b45e.0]
mov qword [rbx + 0xc0], r15
test rdi, rdi
je 0x14014d1e2
xor edx, edx
jmp 0x14014d1da
mov rdx, qword [rbx + 0x80]
lea rcx, str.CMFCPopupMenuBar
call fcn.14005ed24
test esi, esi
je 0x14014d24f
test rax, rax
je 0x14014d24f
cmp dword [0x1402e5dec], r15d
jne 0x14014d24f
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call fcn.14012578c
test rdi, rdi
je 0x14014d1e2
mov rdx, rbx
mov rcx, rdi
call fcn.1400b5f80
cmp qword [rbx + 0x80], r15
je 0x14014d22a
movups xmm0, xmmword [rbx + 0x68]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.140066454
lea rcx, [rbp - 0x20]
mov edx, dword [rax + 0xcc]
mov r8d, edx
call qword [sym.imp.USER32.dll_InflateRect]
mov rcx, qword [rbx + 0x80]
lea rdx, [rbp - 0x20]
mov r9d, 0x401
xor r8d, r8d
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401d4ee0
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test rdi, rdi
je 0x14014d276
xor edx, edx
mov rcx, rdi
call fcn.1400ae0d8
mov rcx, rax
test rax, rax
je 0x14014d276
mov rax, qword [rax]
mov rax, qword [rax + 0xb0]
call qword [case.0x14007b45e.0]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
mov rax, qword [rax + 0x198]
call qword [case.0x14007b45e.0]
test eax, eax
jne 0x14014d1d2
xor eax, eax
jmp 0x14014d22f
Function at 0x140159518
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 0x140159590
mov rsi, qword [rcx + 0x18]
mov rbp, qword [rcx + 0x10]
call fcn.14005bee0
mov rcx, rax
test rax, rax
je 0x140159567
mov rax, qword [rax]
mov rax, qword [rax + 0xe8]
call qword [case.0x14007b45e.0]
test rax, rax
je 0x140159567
mov rcx, qword [rax + 0x40]
jmp 0x14015956a
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 0x140159592
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 0x140161eb8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1402c3e64], 0
mov ebx, ecx
je 0x140161f55
cmp dword [0x1402c43f8], 0xfffffffe
jne 0x140161f42
cmp ecx, 0xffffffff
je 0x140161f55
lea rcx, [0x1402e7c88]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1402e7cb0], 0
jne 0x140161f5b
xor r8d, r8d
lea rcx, [0x140161f64]
xor edx, edx
call fcn.1401f2b98
mov rcx, rax
mov qword [0x1402e7cb0], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140161f27
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x1402c43f8], ebx
jmp 0x140161f2f
and qword [0x1402e7cb0], 0
lea rcx, [0x1402e7c88]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x1402c43f8], ebx
cmp ebx, 0xffffffff
jne 0x140161f55
and qword [0x1402e7cb0], 0
add rsp, 0x20
pop rbx
ret
call fcn.14004d5d0
int3
Function at 0x1401641e0
Capabilities:
Log keystrokes via polling

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, 0x20
cmp dword [rdx + 8], 0x100
mov rbp, rdx
mov rbx, rcx
jne 0x1401642d0
xor edx, edx
call fcn.1400ae0d8
mov rcx, rbx
test rax, rax
je 0x140164228
mov rdx, rbp
call fcn.140099348
jmp 0x1401642db
call fcn.1400ae0d0
cmp dword [rbx + 0x1394], 0
mov esi, eax
je 0x14016423e
sub esi, dword [rbx + 0x1388]
mov r14d, dword [rbx + 0x1138]
test r14d, r14d
js 0x1401642d0
cmp r14d, esi
jge 0x1401642d0
mov edi, dword [rbp + 0x10]
cmp edi, 9
jne 0x140164271
lea ecx, [rdi + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
movzx edi, al
btc edi, 7
shr edi, 6
or edi, 0x25
mov rcx, rbx
call fcn.1400594b0
bt eax, 0x16
jae 0x140164291
cmp edi, 0x25
je 0x140164313
cmp edi, 0x27
je 0x140164369
sub edi, 0xd
je 0x1401643af
sub edi, 0xe
je 0x14016437d
sub edi, 0xa
je 0x140164369
sub edi, 2
je 0x140164313
mov rcx, rbx
cmp edi, 1
je 0x1401642f6
mov rax, qword [rbx]
mov edx, dword [rbp + 0x10]
mov rax, qword [rax + 0x728]
call qword [case.0x14007b45e.0]
test eax, eax
jne 0x14016430c
mov rdx, rbp
mov rcx, rbx
call fcn.1400b41b4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, dword [rbx + 0x1138]
call fcn.1400adfb0
mov rdx, rax
mov rcx, rbx
call fcn.1400ad5b8
mov eax, 1
jmp 0x1401642db
inc dword [rbx + 0x1138]
cmp dword [rbx + 0x1138], esi
jl 0x140164328
and dword [rbx + 0x1138], 0
mov edx, r14d
mov rcx, rbx
call fcn.1400ae8b8
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.1400ae8b8
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x1138]
mov rax, qword [rax + 0x4b8]
call qword [case.0x14007b45e.0]
jmp 0x1401642d0
sub dword [rbx + 0x1138], 1
jns 0x140164328
lea eax, [rsi - 1]
mov dword [rbx + 0x1138], eax
jmp 0x140164328
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c0]
call qword [case.0x14007b45e.0]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x6c8]
call qword [case.0x14007b45e.0]
and dword [0x1402e7cb8], 0
jmp 0x1401642d0
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.1400adfb0
mov rdx, rax
mov rcx, rbx
call fcn.1400ad5b8
test eax, eax
jne 0x14016430c
mov edx, dword [rbx + 0x1138]
mov rcx, rbx
call fcn.1400adfb0
mov rdx, rax
mov rcx, rbx
call fcn.1400b4448
jmp 0x14016430c
Function at 0x14017a5c8
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.1401f5a9c
test eax, eax
jne 0x14017a62c
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.140013130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14017a5ec
jmp 0x14017a63e
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 0x14017ab3c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14017abfd
mov ebx, 0x811c9dc5
xor esi, esi
mov rcx, rdx
call fcn.1401f2710
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x14017aba0
movsx ecx, byte [rsi + rdi]
imul ebx, ebx, 0x1000193
xor ebx, ecx
add esi, edx
cmp esi, r8d
jb 0x14017ab8d
mov dword [r14], ebx
xor edx, edx
mov eax, ebx
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x14017abdd
mov rbx, qword [rbx + rdx*8]
jmp 0x14017abd8
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x14017abd5
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.1401e3efc
nop
test eax, eax
je 0x14017abf8
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14017abbc
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, rbx
jmp 0x14017abdf
call fcn.14004d5d0
int3
Function at 0x140183c1c
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 0x140183d4e
mov ebx, dword [rdx + 0x10]
mov ecx, send
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x140183d4e
cmp ebx, 0x43
je 0x140183c68
cmp ebx, 0x2d
jne 0x140183d4e
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140183d4e
call qword [sym.imp.USER32.dll_EmptyClipboard]
nop
call fcn.14004ed68
mov rcx, rax
test rax, rax
je 0x140183d6b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14007b45e.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.1400114f0
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 0x140183d25
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140183d25
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 0x140183d4e
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14007b45e.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.CDialogEx.virtual_536
mov ecx, 0x80004005
call fcn.140011290
int3
Function at 0x1401a4f3c
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 0x1401a4f6a
lea ecx, [rdx - 0x69]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1401a4f6f
cmp esi, 0x5d
jne 0x1401a4f94
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.1401a4ae4
mov eax, 1
jmp 0x1401a5036
mov edx, esi
mov rcx, qword [rdi + 0x1558]
call fcn.1401a05b8
test eax, eax
jne 0x1401a4f8a
cmp qword [rdi + 0x1560], rbp
je 0x1401a4ff0
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1400ade9c
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1402e793c], ebp
mov rcx, qword [rdi + 0x1560]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1b8]
mov edx, esi
call qword [case.0x14007b45e.0]
nop
mov dword [0x1402e793c], ebx
jmp 0x1401a5036
cmp qword [rdi + 0x1580], rbp
je 0x1401a5034
lea rax, vtable.CMFCDisableMenuAnimation.0
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1400ade9c
mov ebx, eax
mov dword [rsp + 0x28], eax
mov dword [0x1402e793c], ebp
mov rcx, qword [rdi + 0x1580]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x1d0]
mov edx, esi
call qword [case.0x14007b45e.0]
nop
jmp 0x1401a4fe8
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 0x1401cb020
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 0x1401cb12e
cmp qword [rdx + 0x10], 9
je 0x1401cb064
cmp qword [rdx + 0x10], 0x1b
jne 0x1401cb0b8
call fcn.1400532ec
test rax, rax
je 0x1401cb0b8
mov rcx, rbx
call fcn.1400532ec
jmp 0x1401cb0a6
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140052ce0
test rax, rax
je 0x1401cb0b8
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140052ce0
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.140052ce0
mov rcx, rax
call fcn.1400597e4
mov eax, 1
jmp 0x1401cb139
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140052ce0
cmp rax, rbx
jne 0x1401cb12e
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1401cb12e
mov rax, qword [rdi + 0x10]
cmp rax, 0x2e
je 0x1401cb127
cmp rax, 0x43
je 0x1401cb120
cmp rax, 0x56
je 0x1401cb109
cmp rax, 0x58
je 0x1401cb102
cmp rax, 0x5a
jne 0x1401cb12e
lea edx, [rax + 0x6d]
jmp 0x1401cb10e
mov edx, 0x300
jmp 0x1401cb10e
mov edx, 0x302
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1401cb0ae
mov edx, 0x301
jmp 0x1401cb10e
mov edx, 0x303
jmp 0x1401cb10e
mov rdx, rdi
mov rcx, rbx
call fcn.14007c744
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401d5930
Capabilities:
Parse pe header

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

Function at 0x1401ed3b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401ed1ac
Function at 0x1401f60c4
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.1401d52a0
sub rsp, rax
mov rax, qword [0x1402c4d40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401f2648
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401f6113
mov rax, rbp
jmp 0x1401f621b
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 + 0x2e9380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140201910
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2e9380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401f6217
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 0x1401f6217
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140201910
test rax, rax
js 0x1401f6217
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401f6217
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401f6209
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401f6209
cmp byte [rcx], 0xd
jne 0x1401f61ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401f61fe
cmp byte [rcx + 1], 0xa
jne 0x1401f61fe
inc rcx
jmp 0x1401f61fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2c5570]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401f61d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401f621b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401d4ee0
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 0x1401ff0e0
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, [0x1402e9380]
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 0x1401ff137
cmp word [rdx], r13w
jne 0x1401ff137
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401ff13c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401ff261
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401ff282
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401ff175
mov rdx, r9
mov word [rbx], cx
jmp 0x1401ff19c
cmp r9, r8
jae 0x1401ff1ac
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 0x1401ff156
jmp 0x1401ff261
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 0x1401ff256
cmp dword [rsp + 0x80], esi
je 0x1401ff256
lea r8, [0x1402e9380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401ff22e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401ff1fe
mov word [rbx], r13w
jmp 0x1401ff25e
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 0x1401ff20b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401ff25e
cmp word [rsp + 0x70], r13w
jne 0x1401ff23b
cmp rbx, r14
je 0x1401ff1f8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140201918
cmp word [rsp + 0x70], r13w
je 0x1401ff261
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, [0x1402e9380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401ff25b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401ff261
Function at 0x140201560
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140201576
mov al, 1
jmp 0x1402015d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140201587
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402015d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401f67f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402015d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402015d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402015d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402015d6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140205ab0
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 0x140205ae0
xor eax, eax
jmp 0x140205ba3
mov rbp, rbx
cmp word [rax], si
je 0x140205b05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140205aec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140205ae8
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.1402035c4
movsxd r14, eax
test eax, eax
jne 0x140205b43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140205ad9
mov rcx, r14
call fcn.1401faf60
mov rdi, rax
test rax, rax
jne 0x140205b5c
xor ecx, ecx
call fcn.1401faf24
jmp 0x140205b38
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.1402035c4
test eax, eax
jne 0x140205b8d
mov rcx, rdi
call fcn.1401faf24
jmp 0x140205b97
xor ecx, ecx
call fcn.1401faf24
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 0x140205bc0
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 0x140205c47
mov rsi, rbx
cmp word [rax], bp
je 0x140205c06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140205bf0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140205bec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401faf60
mov rdi, rax
test rax, rax
je 0x140205c34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14020d7d0
mov rbp, rdi
xor ecx, ecx
call fcn.1401faf24
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