joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fb200
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x40]
movups xmm2, xmmword [rax + 0x10]
movups xmm3, xmmword [rax + 0x50]
movups xmm4, xmmword [rax + 0x20]
movups xmm5, xmmword [rax + 0x60]
xorps xmm6, xmm6
mov rcx, 0xf
movq xmm7, rcx
pshufb xmm7, xmm6
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 8]
mov rbx, qword [rsp + 0x20]
movups xmm9, xmmword [rbx]
movups xmm10, xmmword [rbx + 0x20]
movaps xmm8, xmm9
psrlq xmm8, 4
movaps xmm6, xmm9
pand xmm6, xmm7
pand xmm8, xmm7
movups xmm11, xmm0
movups xmm12, xmm1
pshufb xmm11, xmm6
pshufb xmm12, xmm6
movups xmm6, xmm2
movups xmm13, xmm3
pshufb xmm6, xmm8
pshufb xmm13, xmm8
pxor xmm11, xmm6
pxor xmm12, xmm13
movaps xmm6, xmm10
movaps xmm8, xmm10
pand xmm6, xmm7
psrlq xmm8, 4
pand xmm8, xmm7
movups xmm13, xmm4
movups xmm14, xmm5
pshufb xmm13, xmm6
pshufb xmm14, xmm6
pxor xmm11, xmm13
pxor xmm12, xmm14
movups xmm13, xmmword [rax + 0x30]
movups xmm14, xmmword [rax + 0x70]
pshufb xmm13, xmm8
pshufb xmm14, xmm8
pxor xmm11, xmm13
pxor xmm12, xmm14
movups xmm6, xmmword [rdx]
movups xmm8, xmmword [rdx + 0x20]
pxor xmm6, xmm11
pxor xmm8, xmm12
movups xmmword [rdx], xmm6
movups xmmword [rdx + 0x20], xmm8
pxor xmm9, xmm6
pxor xmm10, xmm8
movups xmmword [rbx], xmm9
movups xmmword [rbx + 0x20], xmm10
movups xmm9, xmmword [rbx + 0x10]
movups xmm10, xmmword [rbx + 0x30]
movaps xmm8, xmm9
psrlq xmm8, 4
movaps xmm6, xmm9
pand xmm6, xmm7
pand xmm8, xmm7
movups xmm11, xmm0
movups xmm12, xmm1
pshufb xmm11, xmm6
pshufb xmm12, xmm6
movups xmm6, xmm2
movups xmm13, xmm3
pshufb xmm6, xmm8
pshufb xmm13, xmm8
pxor xmm11, xmm6
pxor xmm12, xmm13
movaps xmm6, xmm10
movaps xmm8, xmm10
pand xmm6, xmm7
psrlq xmm8, 4
pand xmm8, xmm7
movups xmm13, xmm4
movups xmm14, xmm5
pshufb xmm13, xmm6
pshufb xmm14, xmm6
pxor xmm11, xmm13
pxor xmm12, xmm14
movups xmm13, xmmword [rax + 0x30]
movups xmm14, xmmword [rax + 0x70]
pshufb xmm13, xmm8
pshufb xmm14, xmm8
pxor xmm11, xmm13
pxor xmm12, xmm14
movups xmm6, xmmword [rdx + 0x10]
movups xmm8, xmmword [rdx + 0x30]
pxor xmm6, xmm11
pxor xmm8, xmm12
movups xmmword [rdx + 0x10], xmm6
movups xmmword [rdx + 0x30], xmm8
pxor xmm9, xmm6
pxor xmm10, xmm8
movups xmmword [rbx + 0x10], xmm9
movups xmmword [rbx + 0x30], xmm10
add rdx, 0x40
add rbx, 0x40
sub rcx, 0x40
jne 0x5fb23f
ret
Function at 0x5fb400
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x40]
movups xmm2, xmmword [rax + 0x10]
movups xmm3, xmmword [rax + 0x50]
movups xmm4, xmmword [rax + 0x20]
movups xmm5, xmmword [rax + 0x60]
movups xmm6, xmmword [rax + 0x30]
movups xmm7, xmmword [rax + 0x70]
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x20]
xorps xmm8, xmm8
mov rbx, 0xf
movq xmm9, rbx
pshufb xmm9, xmm8
movups xmm8, xmmword [rdx]
movups xmm10, xmmword [rdx + 0x20]
movaps xmm11, xmm8
psrlq xmm11, 4
movaps xmm8, xmm8
pand xmm8, xmm9
pand xmm11, xmm9
movups xmm12, xmm0
movups xmm13, xmm1
pshufb xmm12, xmm8
pshufb xmm13, xmm8
movups xmm8, xmm2
movups xmm14, xmm3
pshufb xmm8, xmm11
pshufb xmm14, xmm11
pxor xmm12, xmm8
pxor xmm13, xmm14
movaps xmm8, xmm10
movaps xmm10, xmm10
pand xmm8, xmm9
psrlq xmm10, 4
pand xmm10, xmm9
movups xmm11, xmm4
movups xmm14, xmm5
pshufb xmm11, xmm8
pshufb xmm14, xmm8
pxor xmm12, xmm11
pxor xmm13, xmm14
movups xmm11, xmm6
movups xmm14, xmm7
pshufb xmm11, xmm10
pshufb xmm14, xmm10
pxor xmm12, xmm11
pxor xmm13, xmm14
movups xmmword [rcx], xmm12
movups xmmword [rcx + 0x20], xmm13
movups xmm8, xmmword [rdx + 0x10]
movups xmm10, xmmword [rdx + 0x30]
movaps xmm11, xmm8
psrlq xmm11, 4
movaps xmm8, xmm8
pand xmm8, xmm9
pand xmm11, xmm9
movups xmm12, xmm0
movups xmm13, xmm1
pshufb xmm12, xmm8
pshufb xmm13, xmm8
movups xmm8, xmm2
movups xmm14, xmm3
pshufb xmm8, xmm11
pshufb xmm14, xmm11
pxor xmm12, xmm8
pxor xmm13, xmm14
movaps xmm8, xmm10
movaps xmm10, xmm10
pand xmm8, xmm9
psrlq xmm10, 4
pand xmm10, xmm9
movups xmm11, xmm4
movups xmm14, xmm5
pshufb xmm11, xmm8
pshufb xmm14, xmm8
pxor xmm12, xmm11
pxor xmm13, xmm14
movups xmm11, xmm6
movups xmm14, xmm7
pshufb xmm11, xmm10
pshufb xmm14, xmm10
pxor xmm12, xmm11
pxor xmm13, xmm14
movups xmmword [rcx + 0x10], xmm12
movups xmmword [rcx + 0x30], xmm13
add rcx, 0x40
add rdx, 0x40
sub rax, 0x40
jne 0x5fb449
ret

Function at 0x5fcf60
Capabilities:
Encode data using xor

Disassembly:
mov rsi, qword [rsp + 8]
mov rdx, qword [rsp + 0x20]
movdqu xmm6, xmmword [rsi]
movdqu xmm7, xmmword [rdx]
mov rbx, 0xf
movq xmm8, rbx
pxor xmm5, xmm5
mov rsi, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
pshufb xmm8, xmm5
shr r9, 4
mov rax, rsi
mov rbx, rdx
and rax, 0xf
and rbx, 0xf
cmp r9, 0
je 0x5fd04c
or rbx, rax
cmp rbx, 0
jne 0x5fd005
movdqa xmm0, xmmword [rsi]
movdqa xmm4, xmmword [rdx]
movdqa xmm1, xmm0
movdqa xmm2, xmm6
movdqa xmm3, xmm7
psrlq xmm1, 4
pand xmm0, xmm8
pand xmm1, xmm8
pshufb xmm2, xmm0
pshufb xmm3, xmm1
pxor xmm3, xmm2
pxor xmm3, xmm4
movdqa xmmword [rdx], xmm3
add rsi, 0x10
add rdx, 0x10
sub r9, 1
jne 0x5fcfbc
jmp 0x5fd04c
movdqu xmm0, xmmword [rsi]
movdqu xmm4, xmmword [rdx]
movdqu xmm1, xmm0
movdqu xmm2, xmm6
movdqu xmm3, xmm7
psrlq xmm1, 4
pand xmm0, xmm8
pand xmm1, xmm8
pshufb xmm2, xmm0
pshufb xmm3, xmm1
pxor xmm3, xmm2
pxor xmm3, xmm4
movdqu xmmword [rdx], xmm3
add rsi, 0x10
add rdx, 0x10
sub r9, 1
jne 0x5fd005
ret
Function at 0x5fd060
Capabilities:
Encode data using xor

Disassembly:
mov rsi, qword [rsp + 8]
mov rdx, qword [rsp + 0x20]
movdqu xmm6, xmmword [rsi]
movdqu xmm7, xmmword [rdx]
mov rbx, 0xf
movq xmm8, rbx
pxor xmm5, xmm5
mov rsi, qword [rsp + 0x38]
mov r9, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
pshufb xmm8, xmm5
mov rax, rsi
mov rbx, rdx
shr r9, 4
and rax, 0xf
and rbx, 0xf
cmp r9, 0
je 0x5fd13c
or rbx, rax
cmp rbx, 0
jne 0x5fd0fd
movdqa xmm0, xmmword [rsi]
movdqa xmm1, xmm0
movdqa xmm2, xmm6
movdqa xmm3, xmm7
psrlq xmm1, 4
pand xmm0, xmm8
pand xmm1, xmm8
pshufb xmm2, xmm0
pshufb xmm3, xmm1
pxor xmm3, xmm2
movdqa xmmword [rdx], xmm3
add rsi, 0x10
add rdx, 0x10
sub r9, 1
jne 0x5fd0bc
jmp 0x5fd13c
movdqu xmm0, xmmword [rsi]
movdqu xmm1, xmm0
movdqa xmm2, xmm6
movdqa xmm3, xmm7
psrlq xmm1, 4
pand xmm0, xmm8
pand xmm1, xmm8
pshufb xmm2, xmm0
pshufb xmm3, xmm1
pxor xmm3, xmm2
movdqu xmmword [rdx], xmm3
add rsi, 0x10
add rdx, 0x10
sub r9, 1
jne 0x5fd0fd
ret

Function at 0x5fd920
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x5fd9f5
movdqa xmm0, xmmword [0x006bc820]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x5fd961
movdqa xmm0, xmmword [0x006bc830]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x5fda77
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x5fda4b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x006bc5b0]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x006bc840]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x14000366c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400036b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400036b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400036b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400036b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400036b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400036b8
xor al, al
add rsp, 0x28
ret
Function at 0x140087c50
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x140087c64
Capabilities:
Encode data using xor
Hash data using fnv

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

Function at 0x1400a57b8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400a55af
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a55af
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a55af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a55af
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a55af
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a55af
cmp dword [rcx + 0xf8], 0
je 0x1400a55af
mov ecx, ebx
call fcn.1400a56c0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400a5314
nop
cmp dword [rbp + 0x20], 0
je 0x1400a55fd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a5608
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400a5540
Function at 0x1400e68e4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e68fa
mov al, 1
jmp 0x1400e695a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e690b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e6958
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f3320
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e6958
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400e6958
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400e6958
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e695a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400f1978
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 0x1400f19a8
xor eax, eax
jmp 0x1400f1a6b
mov rbp, rbx
cmp word [rax], si
je 0x1400f19cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f19b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f19b0
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.1400edad4
movsxd r14, eax
test eax, eax
jne 0x1400f1a0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f19a1
mov rcx, r14
call fcn.1400e8848
mov rdi, rax
test rax, rax
jne 0x1400f1a24
xor ecx, ecx
call fcn.1400e3710
jmp 0x1400f1a00
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.1400edad4
test eax, eax
jne 0x1400f1a55
mov rcx, rdi
call fcn.1400e3710
jmp 0x1400f1a5f
xor ecx, ecx
call fcn.1400e3710
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 0x1400f1a88
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 0x1400f1b0f
mov rsi, rbx
cmp word [rax], bp
je 0x1400f1ace
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f1ab8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f1ab4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e8848
mov rdi, rax
test rax, rax
je 0x1400f1afc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140096aa0
mov rbp, rdi
xor ecx, ecx
call fcn.1400e3710
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 0x1400f5dd8
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.1400e3368
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 0x1400f5e79
cmp ebx, dword [rsp + 0x30]
je 0x1400f5e72
test esi, esi
je 0x1400f5e72
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400f5e4d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400f5e5a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400f5e37
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400f5e5e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400f5e7b
mov eax, 1
jmp 0x1400f5e7b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f8dec
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, [0x14046d000]
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 0x1400f8e43
cmp word [rdx], r13w
jne 0x1400f8e43
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400f8e48
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400f8f6d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400f8f8e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400f8e81
mov rdx, r9
mov word [rbx], cx
jmp 0x1400f8ea8
cmp r9, r8
jae 0x1400f8eb8
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 0x1400f8e62
jmp 0x1400f8f6d
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 0x1400f8f62
cmp dword [rsp + 0x80], esi
je 0x1400f8f62
lea r8, [0x14046d000]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400f8f3a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400f8f0a
mov word [rbx], r13w
jmp 0x1400f8f6a
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 0x1400f8f17
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400f8f6a
cmp word [rsp + 0x70], r13w
jne 0x1400f8f47
cmp rbx, r14
je 0x1400f8f04
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400f7f88
cmp word [rsp + 0x70], r13w
je 0x1400f8f6d
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, [0x14046d000]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400f8f67
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400f8f6d
Function at 0x14010063c
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.1400f7f88
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f7f88
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14010078c
cmp rax, 0xffffffffffffffff
je 0x14010078c
xor edi, edi
test rbp, rbp
jle 0x140100737
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e88a8
mov rbx, rax
test rax, rax
jne 0x1401006c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14010072d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400df4a0
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.1400e6250
cmp eax, 0xffffffff
je 0x14010070d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401006d4
mov edx, r15d
mov ecx, r14d
call fcn.1400df4a0
jmp 0x14010072d
cmp byte [rsi + 0x38], dil
je 0x140100724
cmp dword [rsi + 0x34], 5
jne 0x140100724
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14010072d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e3710
jmp 0x1401007a0
jns 0x1401007a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f7f88
cmp rax, 0xffffffffffffffff
jne 0x140100758
cmp byte [rsi + 0x30], dil
je 0x1401007a0
mov edi, dword [rsi + 0x2c]
jmp 0x1401007a0
mov ecx, r14d
call fcn.1400f3320
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401007a0
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 0x1401007a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140100799
mov eax, dword [rsi + 0x2c]
jmp 0x14010079e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f7f88
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 0x1400064f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r12, r9
mov ebx, r8d
mov r15, rdx
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
mov r13d, esi
call fcn.140040a20
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x14000654f
mov ecx, 0x80004005
call fcn.1400118e0
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
call fcn.140040a20
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al

Function at 0x14000656e
Capabilities:
Resolve function by parsing pe exports

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
mov r14, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400065c9
movsxd rax, dword [rcx + 0x3c]
xor ebp, ebp
mov esi, dword [rax + rcx + 0x88]
add rsi, rcx
mov edi, dword [rsi + 0x20]
add rdi, rcx
cmp dword [rsi + 0x18], ebp
jbe 0x1400065c9
mov ecx, dword [rdi]
mov rdx, r14
add rcx, rbx
call fcn.14000665e
test al, al
jne 0x1400065e6
inc ebp
add rdi, 4
cmp ebp, dword [rsi + 0x18]
jb 0x1400065ad
xor eax, eax
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 eax, dword [rsi + 0x24]
mov ecx, dword [rsi + 0x1c]
add rax, rbx
add rcx, rbx
movzx edx, word [rax + rbp*2]
mov eax, dword [rcx + rdx*4]
add rax, rbx
jmp 0x1400065cb

Function at 0x1400065fe
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rdi, rdx
mov esi, ecx
mov rbx, qword [rax + 0x18]
add rbx, 0x10
mov rbx, qword [rbx]
mov rax, qword [rbx + 0x60]
test rax, rax
je 0x140006623
test rdi, rdi
je 0x140006637
mov qword [rdi], rax
test esi, esi
je 0x140006648
mov rcx, qword [rbx + 0x60]
call fcn.1400066b2
cmp esi, eax
jne 0x140006623
mov rax, qword [rbx + 0x30]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret