joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400396d0
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, 0xfaba0065
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [0x14007eaf8]
call fcn.140008250
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rax]
call fcn.1400388b0
add rsp, 0x48
ret

Function at 0x140039720
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
lea rax, [rsp + 0x50]
mov rdi, rax
mov rsi, qword [rsp + 0xb0]
mov ecx, 0x1c
rep movsb byte [rdi], byte [rsi]
mov eax, 0xbdcac9ce
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [0x14007eaf8]
call fcn.140008250
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1c
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0xc0]
mov r8d, dword [rsp + 0xb8]
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x40]
call fcn.140039570
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140040b70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x58
mov eax, dword [rsp + 0x70]
imul rax, rax, 0x38
mov rcx, qword [0x14007f648]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x140040bdc
mov rax, qword [rsp + 0x30]
sub rax, 5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140040c05
mov eax, 0xa
jmp 0x140040d28
cmp dword [rsp + 0x78], 0
je 0x140040c70
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x30]
add rax, 5
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x140040c6e
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x48]
mov byte [rax + 1], 0xf9
jmp 0x140040cae
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x140040c99
mov rax, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
lea rsi, [rax + 0x18]
mov ecx, 7
rep movsb byte [rdi], byte [rsi]
jmp 0x140040cae
mov rax, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
lea rsi, [rax + 0x18]
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x78]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x78]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x28]
mov byte [rcx + 0x20], al
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140040d90
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x140040f0f
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140040f04
mov eax, dword [rsp + 0x30]
cmp rax, 0x10
jb 0x140040ee5
call qword [0x14007eb60]
cmp dword [rsp + 0x3c], eax
jne 0x140040ee5
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x38], eax
je 0x140040ee5
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
jne 0x140040e52
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], pe_nt_image_headers64
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x14007f640]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
jne 0x140040e50
jmp 0x140040f04
jmp 0x140040ebc
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x140040ebc
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
shl eax, 1
mov eax, eax
shl rax, 2
mov r9, rax
mov rax, qword [rsp + 0x60]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14007f640]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140040e9d
jmp 0x140040f04
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov edx, dword [rsp + 0x38]
mov dword [rcx + rax*4], edx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rsp + 0x60]
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x30], 0x1c
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140040dd5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x58
ret
Function at 0x1400410a0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.140040d90
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x140041162
mov dword [rsp + 0x20], 0
jmp 0x1400410ff
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x140041162
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140041160
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.140041180
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400410f5
add rsp, 0x38
ret

Function at 0x140041310
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x14004139f
mov dword [rsp + 0x20], 0
jmp 0x140041338
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x140041388
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140041386
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004132e
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14007f640]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x38
ret
Function at 0x140041b50
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x90], 0x40000000
jbe 0x140041bb1
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
cmp qword [rsp + 0x30], rax
jae 0x140041bb1
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
cmp qword [rsp + 0x28], rax
jbe 0x140041bd9
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
sub rax, 0xfff
mov qword [rsp + 0x28], rax
mov rax, qword [0x14007f658]
mov qword [rsp + 0x20], rax
jmp 0x140041c04
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140041c3e
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x20], rax
jb 0x140041c24
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x20], rax
jb 0x140041c26
jmp 0x140041bf7
mov rax, qword [rsp + 0x20]
cmp qword [rax + 8], 0
je 0x140041c3c
mov rax, qword [rsp + 0x20]
jmp 0x140041db0
jmp 0x140041bf7
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jb 0x140041ca7
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140041980
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140041c7a
jmp 0x140041ca7
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140041ca5
jmp 0x140041ca7
jmp 0x140041c4b
cmp qword [rsp + 0x20], 0
jne 0x140041d18
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x40], rax
ja 0x140041d18
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140041870
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140041ceb
jmp 0x140041d18
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140041d16
jmp 0x140041d18
jmp 0x140041cbc
cmp qword [rsp + 0x20], 0
je 0x140041dab
mov rax, qword [rsp + 0x20]
add rax, 0x40
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x48]
add rax, 0x40
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
cmp rax, 0xfc0
jbe 0x140041d4b
mov rax, qword [rsp + 0x20]
mov rcx, qword [0x14007f658]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov qword [0x14007f658], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x88
ret
Function at 0x140042550
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1400425a9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1400425a9
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1400425a9
xor eax, eax
jmp 0x1400425f0
mov dword [rsp], 1
jmp 0x1400425ba
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x1400425eb
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1400425e9
xor eax, eax
jmp 0x1400425f0
jmp 0x1400425b2
mov eax, 1
add rsp, 0x18
ret
Function at 0x1400462e4
Capabilities:
Parse pe header

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

Function at 0x140046524
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14004d4fc
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.140045c10
sub rsp, rax
mov rax, qword [0x14007daf8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140052604
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004d54b
mov rax, rbp
jmp 0x14004d653
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 + 0x80430]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005b9fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x80430]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004d64f
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 0x14004d64f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005b9fc
test rax, rax
js 0x14004d64f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004d64f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004d641
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004d641
cmp byte [rcx], 0xd
jne 0x14004d627
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004d636
cmp byte [rcx + 1], 0xa
jne 0x14004d636
inc rcx
jmp 0x14004d636
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7dec0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004d609
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004d653
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140045f60
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 0x1400516c4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14007daf8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140070fe8]
mov rbp, rcx
call fcn.14005e228
xor edi, edi
test rax, rax
je 0x1400517aa
mov ebx, edi
call fcn.140051a34
mov r14d, dword [rax]
call fcn.140051a34
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14005e174
mov rsi, rax
test rax, rax
je 0x14005173b
call fcn.140051a34
mov dword [rax], r14d
jmp 0x140051765
call fcn.140051a34
cmp dword [rax], 0x22
jne 0x1400517a2
call fcn.140051a34
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14005e174
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400517a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140051769
cmp rax, 3
je 0x140051784
mov rcx, rsi
call fcn.140051620
test al, al
je 0x140051795
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140051795
mov dil, 1
mov rcx, rbx
call fcn.14004c198
mov al, dil
jmp 0x1400517ac
mov rcx, rbx
call fcn.14004c198
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140045f60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140052954
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.14005ba04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005ba04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140052aa4
cmp rax, 0xffffffffffffffff
je 0x140052aa4
xor edi, edi
test rbp, rbp
jle 0x140052a4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400596d0
mov rbx, rax
test rax, rax
jne 0x1400529dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140052a45
mov edx, 0x8000
mov ecx, r14d
call fcn.14005855c
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.14005c468
cmp eax, 0xffffffff
je 0x140052a25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400529ec
mov edx, r15d
mov ecx, r14d
call fcn.14005855c
jmp 0x140052a45
cmp byte [rsi + 0x38], dil
je 0x140052a3c
cmp dword [rsi + 0x34], 5
jne 0x140052a3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140052a45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140058f94
jmp 0x140052ab8
jns 0x140052ab8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005ba04
cmp rax, 0xffffffffffffffff
jne 0x140052a70
cmp byte [rsi + 0x30], dil
je 0x140052ab8
mov edi, dword [rsi + 0x2c]
jmp 0x140052ab8
mov ecx, r14d
call fcn.14005e954
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140052ab8
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 0x140052ab8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140052ab1
mov eax, dword [rsi + 0x2c]
jmp 0x140052ab6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005ba04
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 0x140057448
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140057244
Function at 0x14005ac34
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, [0x140080430]
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 0x14005ac8b
cmp word [rdx], r13w
jne 0x14005ac8b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005ac90
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005adb5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005add6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005acc9
mov rdx, r9
mov word [rbx], cx
jmp 0x14005acf0
cmp r9, r8
jae 0x14005ad00
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 0x14005acaa
jmp 0x14005adb5
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 0x14005adaa
cmp dword [rsp + 0x80], esi
je 0x14005adaa
lea r8, [0x140080430]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005ad82
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005ad52
mov word [rbx], r13w
jmp 0x14005adb2
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 0x14005ad5f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005adb2
cmp word [rsp + 0x70], r13w
jne 0x14005ad8f
cmp rbx, r14
je 0x14005ad4c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005ba04
cmp word [rsp + 0x70], r13w
je 0x14005adb5
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, [0x140080430]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005adaf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005adb5
Function at 0x14005c868
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005c87e
mov al, 1
jmp 0x14005c8de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005c88f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005c8dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005e954
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005c8dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005c8dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005c8dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005c8de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140062888
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 0x1400628b8
xor eax, eax
jmp 0x14006297b
mov rbp, rbx
cmp word [rax], si
je 0x1400628dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400628c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400628c0
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.1400627a8
movsxd r14, eax
test eax, eax
jne 0x14006291b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400628b1
mov rcx, r14
call fcn.140058fd0
mov rdi, rax
test rax, rax
jne 0x140062934
xor ecx, ecx
call fcn.140058f94
jmp 0x140062910
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.1400627a8
test eax, eax
jne 0x140062965
mov rcx, rdi
call fcn.140058f94
jmp 0x14006296f
xor ecx, ecx
call fcn.140058f94
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 0x140062998
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 0x140062a1f
mov rsi, rbx
cmp word [rax], bp
je 0x1400629de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400629c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400629c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140058fd0
mov rdi, rax
test rax, rax
je 0x140062a0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400476f0
mov rbp, rdi
xor ecx, ecx
call fcn.140058f94
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