joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004210
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140011134]
mov rbx, rcx
test esi, esi
jle 0x140004340
mov rax, qword [0x140011138]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000425b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400042e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140004240
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140004362
mov rax, qword [0x140011138]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140011138]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004347
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400042de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400042f0
add dword [0x140011134], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140011138]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400042de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140004268
mov rax, qword [0x140011138]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140004900
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400111a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011180]
test rbx, rbx
je 0x140004964
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000495b
test eax, eax
jne 0x14000495b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140004940
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004ba0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004bb8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140004bc0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140004bd0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140004c1d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140004c14
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c1f
add rax, 0x28
cmp rax, r9
jne 0x140004c00
xor eax, eax
ret

Function at 0x140004c20
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140004cb0
mov rdx, qword [0x14000c8f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140004c9e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140004c9e
cmp word [rax + 0x18], 0x20b
jne 0x140004c9e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140004cb0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140004c89
add rbx, 0x28
cmp rbx, rdi
je 0x140004cb0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140004c80
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140004cc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000c8f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004ce0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004ce8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004ce0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140004d3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140004d34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004ce0
add rax, 0x28
cmp rax, r9
jne 0x140004d20
xor eax, eax
ret

Function at 0x140004d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c8f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140004d5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140004d68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140004d5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140004d80
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000c8f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140004da0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140004da8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140004da0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140004df8
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140004def
test rcx, rcx
je 0x140004da0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140004de0
xor eax, eax
ret
Function at 0x140004e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c8f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140004e1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140004e28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140004e40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000c8f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004e60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004e68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004e60
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140004e60
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140004eb4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140004ec0
add rdx, 0x28
cmp r9, rdx
jne 0x140004ea0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140004ed0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000c8f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140004ef2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140004f00
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004ef2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140004ef2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140004ef2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140004f55
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140004f68
add rdx, 0x28
cmp r10, rdx
jne 0x140004f40
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140004f77
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140004f87
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140004f5e
test ecx, ecx
jg 0x140004f70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140028974
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.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
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.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
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 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
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 0x140029bd0
Capabilities:
Parse pe header

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

Function at 0x1406c1c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6c1c70
movabs r10, 0x6c1c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406c1c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406c1c50
lea rax, [r9 + r11]
jmp rax
Function at 0x1400044e8
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call 0x18200fa51
call 0x18200fa51
std
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
stc
rcl dword [rax], 0xb5
jmp 0x17dd8e664
push rsi
mov eax, 0x5f73c071
insb byte [rdi], dx
mov ds, word [rsi]
test al, 0xd3
sbb byte [rdi + 0x14], bpl
sahf
jne 0x14003f682
in al, dx
jl 0x14003f619
wait
invalid
invalid
in eax, dx
in eax, dx
xchg byte [rcx + rbx*8 + 0x59], dh
add ecx, ebp
mov esi, 0x6aa16683
push 0x6c
invalid
mov ebp, 0xd077640b
invalid
invalid
cmpsb byte [rsi], byte [rdi]
push rsi
not byte [rbx - 0x12]
loop 0x14003f618
lahf
push rsp
nop
mov ch, 0xcf
nop
invalid
invalid
adc ecx, dword [0xf4be13e8]
cmovne esp, dword [rsi + 0x273c47dd]
cmp al, 0x27
or dword [rdx], esp
invalid
Function at 0x140001000
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor r8d, r8d
lea r9, [0x14001a7c0]
mov r10d, r8d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140001013
inc r8d
mov dword [r9], r10d
add r9, 4
cmp r8d, 0x100
jl 0x14000100a
repz ret

Function at 0x140001048
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, r8
mov rbp, rdx
mov ebx, ecx
cmp dword [0x14001a7c4], esi
jne 0x140001073
call fcn.140001000
lea r9, [0x14001a7c0]
jmp 0x14000109d
test bpl, 7
je 0x1400010a2
movzx ecx, byte [rbp]
movzx eax, bl
dec rdi
xor rcx, rax
mov eax, ebx
mov ebx, dword [r9 + rcx*4]
shr eax, 8
xor ebx, eax
inc rbp
cmp rdi, rsi
ja 0x14000107c
cmp rdi, 8
jb 0x14000112d
mov r8, rdi
shr r8, 3
mov rax, r8
imul rax, rax, 0xfffffffffffffff8
add rdi, rax
xor ebx, dword [rbp]
add rbp, 8
movzx eax, bl
shr ebx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, ebx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, dword [rbp - 4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov ebx, dword [r9 + rax*4]
xor ebx, ecx
sub r8, 1
jne 0x1400010bd
cmp rdi, rsi
jbe 0x14000114f
movzx ecx, byte [rsi + rbp]
movzx eax, bl
inc rsi
xor rcx, rax
mov eax, ebx
mov ebx, dword [r9 + rcx*4]
shr eax, 8
xor ebx, eax
cmp rsi, rdi
jb 0x140001132
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400015e4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rbx, rcx
movzx eax, r9b
cmp byte [rcx + 0x1e], r14b
mov dword [rcx + 0xc20], r14d
mov ecx, 0xc0000000
lea r15d, [r14 + 1]
mov ebp, 0x80000000
mov rdi, r8
cmovne eax, r15d
cmp byte [rsp + 0x90], r14b
mov r13d, r15d
cmovne ebp, ecx
cmp al, r14b
mov al, byte [rbx + 0x1d]
lea ecx, [r14 + 3]
mov r12, rdx
cmovne r13d, ecx
neg al
sbb esi, esi
not esi
and esi, 0x8000000
call fcn.1400040f4
cmp eax, r14d
je 0x14000168e
cmp rdi, r14
je 0x14000168e
cmp word [rdi], r14w
je 0x14000168e
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1400016b0
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, r13d
mov edx, ebp
mov rcx, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400016cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400016cb
mov dword [rbx + 0xc20], r15d
cmp rsi, 0xffffffffffffffff
mov byte [rbx + 0x1a], r14b
mov dword [rbx + 0x14], r14d
setne bpl
mov byte [rbx + 0x18], r14b
cmp bpl, r14b
je 0x140001750
mov qword [rbx + 8], rsi
cmp rdi, r14
je 0x14000170b
mov rcx, rdi
call fcn.140007fd4
lea rcx, [rbx + 0x420]
mov rdx, rdi
lea r8, [rax + rax + 2]
call fcn.140007ca0
jmp 0x140001713
mov word [rbx + 0x420], r14w
cmp r12, r14
je 0x140001732
mov rcx, r12
call fcn.140007c7c
lea rcx, [rbx + 0x1f]
mov rdx, r12
lea r8, [r15 + rax]
call fcn.140007ca0
jmp 0x140001744
lea rdx, [rbx + 0x1f]
mov r8d, 0x1000000
mov rcx, rdi
call fcn.140005dc8
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.14000138c
lea r11, [rsp + 0x40]
mov al, bpl
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140001774
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov ebp, 0x4e20
jne 0x1400017b2
cmp r8, rbp
mov ecx, 0xfffffff6
cmova rdi, rbp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000180c
mov rcx, rbx
call fcn.140001580
test al, al
je 0x1400017f2
cmp rdi, rbp
jbe 0x1400017f2
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.140001774
jmp 0x140001810
cmp dword [rbx + 0x14], 1
jne 0x140001807
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140001807
xor eax, eax
jmp 0x140001810
or eax, 0xffffffff
jmp 0x140001810
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140001a14
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
call fcn.1400040f4
xor ebx, ebx
cmp eax, ebx
je 0x140001a4f
cmp rdi, rbx
je 0x140001a4f
cmp word [rdi], bx
je 0x140001a4f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
jmp 0x140001a69
cmp rsi, rbx
je 0x140001a67
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140001a67
mov ebx, 1
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp fcn.140001a14

Function at 0x140001a88
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.1400040f4
xor ebx, ebx
cmp eax, ebx
je 0x140001ac7
cmp rdi, rbx
je 0x140001ac7
cmp word [rdi], bx
je 0x140001ac7
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140001ad7
cmp rsi, rbx
je 0x140001adc
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, ebx
setne bl
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001af4
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp rcx, rbx
je 0x140001b10
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
je 0x140001b10
mov ebx, 1
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x140001b18
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1400040f4
xor esi, esi
cmp eax, esi
je 0x140001b4d
cmp rbx, rsi
je 0x140001b4d
cmp word [rbx], si
je 0x140001b4d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140001b56
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [rsp + 0x30]
cmp eax, esi
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret