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

Disassembly:
cld
pop r11
jmp 0x101c2ff5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x101c2ff6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x101c2ff55
lea eax, [rcx + 1]
jmp 0x101c2ff7b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x101c2ff8e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x101c2ff74
sub eax, 3
jb 0x101c2ffae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x101c2fffd
sar eax, 1
movsxd rbp, eax
jb 0x101c2ffe4
jmp 0x101c2ffbc
add ebx, ebx
jne 0x101c2ffba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x101c2ffe4
inc ecx
add ebx, ebx
jne 0x101c2ffca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x101c2ffe4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x101c2ffdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x101c2ffcc
add ecx, 2
jmp 0x101c2ffe9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.101c2ff12
jmp 0x101c2ff5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1d2710
mov dl, 0x2c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x101c30049
cmp rsi, rcx
jae 0x101c30051
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x101c30030
cmp al, 0x8f
ja 0x101c30030
cmp byte [rsi - 2], 0xf
je 0x101c30036
sub al, 0xe8
cmp al, 1
ja 0x101c3001a
cmp rsi, rcx
jae 0x101c30051
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x101c30020
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x101c30051
lodsb al, byte [rsi]
jmp 0x101c30030
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1c2c000]
mov eax, dword [rdi]
or eax, eax
je 0x101c300ae
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1c367f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x101c3005e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x101c300a8
mov qword [rbx], rax
add rbx, 8
jmp 0x101c3007e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.101c30131], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.101c30131
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x101c30121
sub rsp, 0xffffffffffffff80
jmp 0x100002df0
Function at 0x140004b50
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.140023720
sub rsp, rax
mov rax, qword [0x14006f0d0]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor ebp, ebp
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
jne 0x140004ba2
mov rdx, rbp
jmp 0x140004c6b
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.140003590
test al, al
je 0x140004b9a
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140004be0
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140004c48
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call fcn.140025830
test eax, eax
jne 0x140004c41
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140004c33
cmp rdi, rax
je 0x140004ca5
inc esi
cmp esi, r15d
jb 0x140004c10
mov rdx, rbp
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140004a40
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140022b50
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140004c48
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x140004c48
test ecx, ecx
je 0x140004c48
lea rax, [rsp + 0x50]
mov ebp, ecx
sub rdx, rax
add rdx, r13
jmp 0x140004c4b
Function at 0x1400058b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400058d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000594c
mov rdi, r14
mov rcx, rbx
call fcn.140007030
test rax, rax
jle 0x140005924
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140024d30
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000593c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140005944
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400058e6
sub r14, rdi
jmp 0x140005a2f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005963
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005965
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005997
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140024d30
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140005a2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400059d2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140005a0d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002e100
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140005a2c
cmp rbp, rax
ja 0x1400059e0
test rbp, rbp
je 0x140005a2c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002e100
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140009ce0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009d7f
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140009d7f
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x140009d72
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x140009d72
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x140009d7f
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14000a410
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006f0d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000a522
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000a522
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14000a489
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000a52d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000a510
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000a510
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000a4e9
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000a505
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000ae40
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000a4a1
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000a52d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140022b50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000be70
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14006f0d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000befe
test rbx, rbx
je 0x14000bec6
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000beb0
test eax, eax
jns 0x14000bf1f
test rbx, rbx
je 0x14000bf24
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000c021
test rbx, rbx
jne 0x14000bf2b
xor eax, eax
jmp 0x14000c021
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000c001
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000bf80
lea rcx, [rsp + 0x28]
call fcn.140008c60
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14000bfa0
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.14002dc0c
test eax, eax
je 0x14000c037
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000bff7
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bff2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c08a
call fcn.140022b70
inc edi
cmp edi, dword [rbx]
jb 0x14000bf44
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140022b50
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000c085
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c080
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c08a
call fcn.140022b70
mov rax, rdi
jmp 0x14000c014
call fcn.14002e910
int3
Function at 0x14001fac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push r12
push r13
push r14
sub rsp, 0x38
mov qword [rsp + 0x30], rsi
mov r13, rcx
mov rsi, qword [rdx + 0x10]
mov r8, rdx
mov qword [rsp + 0x28], rdi
mov rdi, rdx
mov qword [rsp + 0x20], r15
mov r15, qword [rdx + 0x18]
cmp r15, 0x10
jb 0x14001faf5
mov r8, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rsi, rsi
je 0x14001fb24
movabs r9, 0x100000001b3
movzx eax, byte [rcx + r8]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, rsi
jb 0x14001fb10
mov r14, qword [r13 + 0x30]
mov r12, qword [r13 + 8]
and r14, rdx
shl r14, 4
add r14, qword [r13 + 0x18]
mov rcx, qword [r14 + 8]
mov rbx, rcx
cmp rcx, r12
jne 0x14001fb47
xor ebx, ebx
jmp 0x14001fb95
mov qword [rsp + 0x70], rbp
mov rbp, qword [r14]
nop
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jb 0x14001fb62
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0x10
jb 0x14001fb6e
mov rcx, qword [rdi]
cmp rsi, rax
jne 0x14001fb7f
mov r8, rsi
call fcn.140025830
test eax, eax
je 0x14001fb8c
cmp rbx, rbp
je 0x14001fb8a
mov rbx, qword [rbx + 8]
jmp 0x14001fb50
xor ebx, ebx
mov rcx, qword [r14 + 8]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
test rbx, rbx
je 0x14001fc57
mov rax, qword [r14]
cmp rcx, rbx
jne 0x14001fbcd
cmp rax, rbx
jne 0x14001fbc3
mov qword [r14], r12
mov qword [r14 + 8], r12
jmp 0x14001fbd8
mov r12, qword [rbx + 8]
mov qword [r14 + 8], r12
jmp 0x14001fbd8
cmp rax, rbx
jne 0x14001fbd8
mov rax, qword [rbx]
mov qword [r14], rax
mov rcx, qword [rbx]
dec qword [r13 + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rcx
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rdx, qword [rbx + 0x28]
cmp rdx, 0x10
jb 0x14001fc25
mov rcx, qword [rbx + 0x10]
inc rdx
cmp rdx, 0x1000
jb 0x14001fc20
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001fc65
mov rcx, r8
call fcn.140022b70
mov edx, 0x30
mov qword [rbx + 0x20], 0
mov rcx, rbx
mov qword [rbx + 0x28], 0xf
mov byte [rbx + 0x10], 0
call fcn.140022b70
mov eax, 1
add rsp, 0x38
pop r14
pop r13
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x38
pop r14
pop r13
pop r12
pop rbx
ret
call fcn.14002e910
int3
Function at 0x140021c40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140021cc4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004e740]
cmp byte [rcx + rax], 0
je 0x140021cc4
dec r8
sub rdx, 1
jne 0x140021caa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400223e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140021d54
mov ebx, eax
test eax, eax
jne 0x140022418
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140022474
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002246b
test al, 0x10
je 0x14002246b
bt eax, 0xa
jae 0x140022464
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14002248c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140022460
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140022484
test edi, edi
jne 0x14002246b
and dword [rsp + 0x3c], 0
jmp 0x140022470
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14003057c
int3

Function at 0x140023900
Capabilities:
Parse pe header

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

Function at 0x14002d1d4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002d1f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002e9d0
or eax, 0xffffffff
jmp 0x14002d1f6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140032bb4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400329b0
Function at 0x14003a4e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003a4fa
mov al, 1
jmp 0x14003a55a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003a50b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003a558
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004187c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003a558
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003a558
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003a558
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003a55a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003bc98
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.140023720
sub rsp, rax
mov rax, qword [0x14006f0d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400392d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003bce7
mov rax, rbp
jmp 0x14003bdef
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 + 0x73260]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003cbe4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x73260]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003bdeb
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 0x14003bdeb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003cbe4
test rax, rax
js 0x14003bdeb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003bdeb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003bddd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003bddd
cmp byte [rcx], 0xd
jne 0x14003bdc3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003bdd2
cmp byte [rcx + 1], 0xa
jne 0x14003bdd2
inc rcx
jmp 0x14003bdd2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6f680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003bda5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003bdef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140022b50
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 0x14003bf84
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, [0x140073260]
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 0x14003bfdb
cmp word [rdx], r13w
jne 0x14003bfdb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003bfe0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003c105
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003c126
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003c019
mov rdx, r9
mov word [rbx], cx
jmp 0x14003c040
cmp r9, r8
jae 0x14003c050
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 0x14003bffa
jmp 0x14003c105
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 0x14003c0fa
cmp dword [rsp + 0x80], esi
je 0x14003c0fa
lea r8, [0x140073260]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003c0d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003c0a2
mov word [rbx], r13w
jmp 0x14003c102
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 0x14003c0af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003c102
cmp word [rsp + 0x70], r13w
jne 0x14003c0df
cmp rbx, r14
je 0x14003c09c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003cbec
cmp word [rsp + 0x70], r13w
je 0x14003c105
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, [0x140073260]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003c0ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003c105