joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180051f54
Capabilities:
Get number of processors

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov rsi, rcx
cmp byte [rcx + 0x19], 0
je 0x180051f7e
mov byte [rbp + 0x2e], 3
jmp 0x180051fa9
mov eax, dword [0x18009f55c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp qword [rax + 0x30], 1
jbe 0x180051fa1
mov byte [rbp + 0x2e], 1
jmp 0x180051fa9
call fcn.18004e230
mov byte [rbp + 0x2e], al
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x10], rax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.180052990
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
mov eax, dword [0x18009f55c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rcx, qword [rax + 0x60]
cmp rcx, 3
jb 0x180052008
lea rax, [0x18009f408]
cmp rcx, rax
je 0x18005201c
lock inc qword [rcx - 0x10]
jle 0x180052194
add rcx, 0xfffffffffffffff0
push 1
pop rdx
mov rax, rcx
jmp 0x18005201e
mov qword [rbp - 8], 2
push 9
pop rax
lea rcx, str._unnamed_thread__panicked_at__n
jmp 0x180052043
xor edx, edx
lea rcx, [rbp - 8]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.180049ea0
test rax, rax
lea rcx, str._unnamed_thread__panicked_at__n
cmovne rcx, rax
push 9
pop rax
cmovne rax, rdx
lea rdx, [rbp - 0x60]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov qword [rbp - 0x50], rdx
lea rax, [rbp - 0x10]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
lea rax, [rbp + 0x2e]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x38], eax
ud2

Function at 0x180054110
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x18008c128]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x18005419f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x1800541ac
xor edx, edx
xor eax, eax
jmp 0x1800541d6
cmp eax, 0x103
je 0x1800541e0
test eax, eax
js 0x1800541bf
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1800541d6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.18004dc50
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.180047b40
mov ecx, 7
int 0x29
ud2
Function at 0x180054230
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x18008c128]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1800542c6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1800542f3
test eax, eax
js 0x1800542d2
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1800542e9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.18004dc50
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.180047b40
mov ecx, 7
int 0x29
ud2
Function at 0x1800556c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x18005572c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x18005572c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x18005572c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x1800557d8
cmp byte [rdx], 0xed
jne 0x1800557e1
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x1800557e1
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x180055771
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x1800558cb
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.180051880
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x1800558f0
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x18005587e
test rdi, rdi
je 0x180055870
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x180055808
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x180055870
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x180055800
cmp r10b, 0xe0
jb 0x1800557ea
cmp r10b, 0xed
jne 0x18005583f
cmp r8, rax
je 0x180055870
lea r8, [r9 + 2]
cmp r8, rax
je 0x180055870
cmp byte [r9 + 1], 0x9f
ja 0x18005586c
add r9, 3
mov r8, r9
jmp 0x180055800
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x180055800
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x180055800
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x18005589e
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.18006d7d0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x18005587b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.18006d7d0
mov rdx, r15
jmp 0x18005578c
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.18006d7d0
mov rbx, qword [rsi + 0x10]
jmp 0x1800557c9
Function at 0x140003690
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov r8, rcx
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
movzx eax, byte [0x140076e6a]
movzx edx, byte [0x140076e6b]
shl edx, 8
or edx, eax
movzx eax, byte [0x140076e69]
shl edx, 8
or edx, eax
movzx eax, byte [0x140076e68]
shl edx, 8
or edx, eax
movzx eax, byte [0x140076e6e]
mov dword [rcx + 0x10], edx
movzx ecx, byte [0x140076e6f]
shl ecx, 8
or ecx, eax
movzx eax, byte [reloc.OLEAUT32.dll_SysReAllocString]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e6c]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e72]
mov dword [r8 + 0x14], ecx
movzx ecx, byte [0x140076e73]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e71]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e70]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e76]
mov dword [r8 + 0x18], ecx
movzx ecx, byte [0x140076e77]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e75]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e74]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e7a]
mov dword [r8 + 0x1c], ecx
movzx ecx, byte [0x140076e7b]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e79]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e78]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e7e]
mov dword [r8 + 0x20], ecx
movzx ecx, byte [0x140076e7f]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e7d]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e7c]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e82]
mov dword [r8 + 0x24], ecx
movzx ecx, byte [0x140076e83]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e81]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e80]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e86]
mov dword [r8 + 0x28], ecx
movzx ecx, byte [0x140076e87]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e85]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e84]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e2a]
mov dword [r8 + 0x2c], ecx
movzx ecx, byte [0x140076e2b]
shl ecx, 8
or ecx, eax
mov dword [r8 + 0x30], 1
movzx eax, byte [0x140076e29]
shl ecx, 8
or ecx, eax
movzx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e2e]
mov dword [r8 + 0x34], ecx
movzx ecx, byte [0x140076e2f]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e2d]
shl ecx, 8
or ecx, eax
movzx eax, byte [str.._xg:GY]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e32]
mov dword [r8 + 0x38], ecx
movzx ecx, byte [0x140076e33]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e31]
shl ecx, 8
or ecx, eax
movzx eax, byte [0x140076e30]
shl ecx, 8
or ecx, eax
mov dword [r8 + 0x3c], ecx
ret
Function at 0x14002ae68
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140017476
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140017459
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140017444

Function at 0x140036a68
Capabilities:
Parse pe header

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

Function at 0x140047d64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140047b60
Function at 0x14004f2f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14004f306
mov al, 1
jmp 0x14004f366
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14004f317
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14004f364
mov ecx, dword [rcx + 0x18]
nop
call fcn.140054a1c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004f364
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14004f364
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14004f364
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14004f366
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140053d68
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 0x140053d98
xor eax, eax
jmp 0x140053e5b
mov rbp, rbx
cmp word [rax], si
je 0x140053dbd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140053da4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140053da0
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.14004e2fc
movsxd r14, eax
test eax, eax
jne 0x140053dfb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140053d91
mov rcx, r14
call fcn.14004c718
mov rdi, rax
test rax, rax
jne 0x140053e14
xor ecx, ecx
call fcn.14004c6dc
jmp 0x140053df0
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.14004e2fc
test eax, eax
jne 0x140053e45
mov rcx, rdi
call fcn.14004c6dc
jmp 0x140053e4f
xor ecx, ecx
call fcn.14004c6dc
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 0x140053e78
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 0x140053eff
mov rsi, rbx
cmp word [rax], bp
je 0x140053ebe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140053ea8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140053ea4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004c718
mov rdi, rax
test rax, rax
je 0x140053eec
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005d5f0
mov rbp, rdi
xor ecx, ecx
call fcn.14004c6dc
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 0x140056f70
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14004ccac
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140057011
cmp ebx, dword [rsp + 0x30]
je 0x14005700a
test esi, esi
je 0x14005700a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140056fe5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140056ff2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140056fcf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140056ff6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140057013
mov eax, 1
jmp 0x140057013
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140058f20
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, [0x1400794c0]
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 0x140058f77
cmp word [rdx], r13w
jne 0x140058f77
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140058f7c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400590a1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400590c2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140058fb5
mov rdx, r9
mov word [rbx], cx
jmp 0x140058fdc
cmp r9, r8
jae 0x140058fec
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 0x140058f96
jmp 0x1400590a1
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 0x140059096
cmp dword [rsp + 0x80], esi
je 0x140059096
lea r8, [0x1400794c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005906e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005903e
mov word [rbx], r13w
jmp 0x14005909e
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 0x14005904b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005909e
cmp word [rsp + 0x70], r13w
jne 0x14005907b
cmp rbx, r14
je 0x140059038
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140058c58
cmp word [rsp + 0x70], r13w
je 0x1400590a1
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, [0x1400794c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005909b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400590a1
Function at 0x14005bddc
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.140058c58
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140058c58
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14005bf2c
cmp rax, 0xffffffffffffffff
je 0x14005bf2c
xor edi, edi
test rbp, rbp
jle 0x14005bed7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140050060
mov rbx, rax
test rax, rax
jne 0x14005be64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14005becd
mov edx, 0x8000
mov ecx, r14d
call fcn.140048d7c
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.14004eef0
cmp eax, 0xffffffff
je 0x14005bead
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14005be74
mov edx, r15d
mov ecx, r14d
call fcn.140048d7c
jmp 0x14005becd
cmp byte [rsi + 0x38], dil
je 0x14005bec4
cmp dword [rsi + 0x34], 5
jne 0x14005bec4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14005becd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004c6dc
jmp 0x14005bf40
jns 0x14005bf40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140058c58
cmp rax, 0xffffffffffffffff
jne 0x14005bef8
cmp byte [rsi + 0x30], dil
je 0x14005bf40
mov edi, dword [rsi + 0x2c]
jmp 0x14005bf40
mov ecx, r14d
call fcn.140054a1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005bf40
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 0x14005bf40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005bf39
mov eax, dword [rsi + 0x2c]
jmp 0x14005bf3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140058c58
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 0x14005d2d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005d2f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005d2f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400090bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400090f7
xor eax, eax
jmp 0x14000921c
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140009131
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140009131
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x14000921c
cmp qword [rbx + 0x80], 0
je 0x14000921a
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000916c
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000918c
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14001537c
cmp eax, edi
jmp 0x140009217
lea r8, [rbp + 0xf]
mov byte [rbp + 7], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 8]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [0x14002f2c0]
test eax, eax
je 0x1400091e1
sub eax, 1
je 0x1400091e1
cmp eax, 2
jne 0x14000921a
movsx ecx, byte [rbp + 7]
jmp 0x140009179
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14000920b
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.140015c60
cmp r14, rax
jne 0x14000921a
lea rax, [rbp + 7]
mov byte [rbx + 0x71], 1
cmp qword [rbp + 0x17], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000aa70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret