joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402f0170
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x100]
mov rbp, r8
mov dword [rsp + 0x20], 0x61707865
mov rsi, rdx
mov dword [rsp + 0x24], 0x3320646e
mov rdi, rcx
mov dword [rsp + 0x28], 0x79622d32
mov dword [rsp + 0x2c], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
test r8, r8
je 0x1402f03aa
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r14
mov qword [r11 + 0x20], r15
mov r15d, dword [rsp + 0x50]
nop word [rax + rax]
mov ebx, 0x40
lea rdx, [rsp + 0x20]
cmp rbp, rbx
lea rcx, [rsp + 0x70]
cmovb rbx, rbp
call fcn.1402f03d0
xor eax, eax
test rbx, rbx
je 0x1402f037b
cmp rbx, 8
jb 0x1402f0341
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rsp + rbx + 0x6f]
cmp rdi, rcx
ja 0x1402f024f
lea rcx, [rsp + 0x70]
cmp rdx, rcx
jae 0x1402f0341
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x1402f0264
cmp rdx, rsi
jae 0x1402f0341
cmp rbx, 0x40
jb 0x1402f030c
mov rdx, rbx
mov r8, rbx
and edx, 0x3f
sub r8, rdx
lea r9, [rsp + 0x70]
mov r11, rsi
lea r10, [rsp + 0x80]
sub r9, rdi
sub r10, rdi
lea r14, [rsp + 0x90]
sub r11, rdi
lea rcx, [rdi + 0x10]
sub r14, rdi
movdqu xmm0, xmmword [rcx + r11 - 0x10]
add rax, 0x40
movdqu xmm1, xmmword [r9 + rcx - 0x10]
movdqu xmm2, xmmword [r9 + rcx]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx + r11 - 0x40]
movdqu xmmword [rcx - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rcx + r11 - 0x30]
movdqu xmm1, xmmword [r10 + rcx - 0x40]
movdqu xmmword [rcx - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rcx + r11 - 0x20]
movdqu xmm2, xmmword [r14 + rcx - 0x40]
movdqu xmmword [rcx - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
cmp rax, r8
jb 0x1402f02a2
cmp rdx, 8
jb 0x1402f033c
mov rcx, rbx
and rcx, 0xfffffffffffffff8
nop dword [rax]
nop word [rax + rax]
movq xmm1, qword [rsi + rax]
movq xmm0, qword [rsp + rax + 0x70]
xorps xmm1, xmm0
movq qword [rdi + rax], xmm1
add rax, 8
cmp rax, rcx
jb 0x1402f0320
cmp rax, rbx
jae 0x1402f037b
lea rcx, [rsp + 0x70]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rsp + 0x70]
sub r9, rcx
nop word [rax + rax]
lea rdx, [rsp + 0x70]
add rdx, rax
inc rax
movzx ecx, byte [rdx + r8]
xor cl, byte [rdx]
mov byte [rdx + r9], cl
cmp rax, rbx
jb 0x1402f0360
inc r15d
add rdi, rbx
add rsi, rbx
mov dword [rsp + 0x50], r15d
sub rbp, rbx
jne 0x1402f0200
mov r15, qword [rsp + 0xf8]
mov r14, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140154c90
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402f3030
Capabilities:
Encode data using xor

Disassembly:
cmp dword [rsp + 0x30], 0
je 0x1402f3048
lea rax, [0x1402f1630]
mov qword [rsp + 0x30], rax
jmp fcn.1402e9600
lea rax, [0x1402f07e0]
mov qword [rsp + 0x30], rax
jmp fcn.1402e9350
Function at 0x1402fadf0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, r9
mov rbp, r9
shr rsi, 3
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp r8, r9
jb 0x1402faea0
xor edx, edx
test rsi, rsi
je 0x1402fae90
nop dword [rax]
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx]
shl rcx, 8
add rbx, 8
or rcx, rax
xor qword [r14 + rdx*8], rcx
inc rdx
cmp rdx, rsi
jb 0x1402fae30
mov rcx, r14
call fcn.1402fa5d0
sub rdi, rbp
cmp rdi, rbp
jae 0x1402fae22
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1402fb130
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1402fb305
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [r11 + 0x10], rbp
mov rbx, rdx
mov qword [r11 + 0x18], rsi
lea rbp, [r8 - 1]
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x10], r14
lea r14, [rcx + 0xc]
shr rbp, 3
mov qword [r11 - 0x18], r15
inc rbp
lea r15, [rcx + 0x14]
movzx eax, byte [rbx + 1]
mov rcx, r14
movzx edi, byte [rbx]
movzx esi, byte [rbx + 4]
lea rbx, [rbx + 8]
shl eax, 8
or edi, eax
movzx eax, byte [rbx - 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbx - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbx - 3]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbx - 2]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x28], edi
movzx eax, byte [rbx - 1]
and byte [r14], 0xdf
and byte [r15], 0xbf
or byte [r14], 0x40
or byte [r15], 0x20
shl eax, 0x18
or esi, eax
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x2c], esi
call fcn.14024b850
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14024b200
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.14027f910
mov rcx, r15
call fcn.14024b850
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14024b200
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.14027f910
mov edx, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
xor edx, edi
xor edi, dword [rsp + 0x28]
xor ecx, esi
xor esi, dword [rsp + 0x2c]
mov eax, edi
shr eax, 8
mov byte [r14 + 1], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, ecx
shr eax, 8
mov byte [r14 + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [r14 + 6], al
mov eax, edx
shr eax, 8
mov byte [r15 + 1], al
mov eax, edx
shr eax, 0x10
mov byte [r14], dil
shr edi, 0x18
mov byte [r14 + 4], cl
shr ecx, 0x18
mov byte [r15], dl
shr edx, 0x18
mov byte [r15 + 3], dl
mov byte [r14 + 3], dil
mov byte [r14 + 7], cl
mov byte [r15 + 2], al
mov byte [r15 + 4], sil
mov eax, esi
shr eax, 8
mov byte [r15 + 5], al
mov eax, esi
shr eax, 0x10
shr esi, 0x18
mov byte [r15 + 6], al
mov byte [r15 + 7], sil
sub rbp, 1
jne 0x1402fb180
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140154c90
add rsp, 0xd0
pop rbx
ret
Function at 0x1403094e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9d, dword [rdx + 8]
mov rsi, rdx
cmp r9d, dword [r8 + 8]
mov rbx, r8
mov rdi, rcx
cmovge rbx, rdx
cmovge rsi, r8
mov edx, dword [rbx + 8]
call fcn.1402374f0
test rax, rax
jne 0x140309525
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
cmp dword [rsi + 8], eax
jle 0x140309553
mov r9d, eax
nop
mov rcx, qword [rbx]
lea r9, [r9 + 8]
mov rdx, qword [rsi]
inc eax
mov r8, qword [r9 + rdx - 8]
xor r8, qword [r9 + rcx - 8]
mov rcx, qword [rdi]
mov qword [r9 + rcx - 8], r8
cmp eax, dword [rsi + 8]
jl 0x140309530
mov ecx, dword [rbx + 8]
cmp eax, ecx
jge 0x14030958d
movsxd rcx, eax
lea r8, [rcx*8]
nop word [rax + rax]
mov rcx, qword [rbx]
lea r8, [r8 + 8]
mov rdx, qword [rdi]
inc eax
mov rcx, qword [r8 + rcx - 8]
mov qword [r8 + rdx - 8], rcx
mov ecx, dword [rbx + 8]
cmp eax, ecx
jl 0x140309570
mov dword [rdi + 8], ecx
mov rcx, rdi
call fcn.1402373b0
mov rbx, qword [rsp + 0x30]
mov eax, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1403459d0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xd8
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, qword [rdx + 8]
xor esi, esi
mov r15, qword [rdx + 0x10]
mov rax, r12
sub rax, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rdi, r8
mov r13, rdx
mov ebp, esi
cmp r15, r8
jb 0x140345ba6
cmp r8, 0x40
ja 0x140345ba6
lea rax, [rsp + 0x40]
mov qword [r11 + 0x10], rbx
neg rax
mov qword [r11 - 0x38], r14
and eax, 0x3f
lea r14, [rsp + 0x40]
add r14, rax
lea rax, [r8 + 0x100]
cmp r15, rax
jbe 0x140345a5e
mov rbp, r15
sub rbp, r8
sub rbp, 0x100
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rbx, rsi
call fcn.140355f20
mov r9, rsi
cmp rbp, r15
jae 0x140345b17
mov r11, qword [r13 + 0x20]
mov r10, qword [rsp + 0x28]
lea r13, [r11 + r12]
nop dword [rax]
lea rdx, [r11 + rbp]
mov rax, rbp
xor rax, r10
mov rcx, rdx
sub rcx, r13
xor rcx, r12
lea r8, [rax - 1]
not rax
shr rax, 0x3f
shr r8, 0x3f
and r8, rax
mov rax, rbp
xor rax, r12
neg r8
or rcx, rax
mov rax, r8
xor rcx, rbp
or rax, rsi
shr rcx, 0x3f
and r8, r9
neg rcx
or rbx, r8
mov rsi, rcx
inc rbp
and rsi, rax
movzx eax, byte [rdx]
and al, sil
or byte [r9 + r14], al
inc r9
mov rcx, r9
mov rax, rdi
sub rcx, rdi
xor rax, r9
xor rcx, rdi
or rcx, rax
xor rcx, r9
shr rcx, 0x3f
neg rcx
and r9, rcx
cmp rbp, r15
jb 0x140345a90
xor esi, esi
test rdi, rdi
je 0x140345b8f
mov r9, qword [rsp + 0x30]
mov rax, rbx
and rax, 0xffffffffffffffdf
movzx r8d, byte [rax + r14]
mov rax, rbx
or rax, 0x20
movzx edx, byte [rax + r14]
mov eax, ebx
and eax, 0x20
inc rbx
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
and cl, dl
and al, r8b
or al, cl
mov rcx, rbx
sub rcx, rdi
mov byte [r9 + rsi], al
xor rcx, rdi
mov rax, rdi
xor rax, rbx
inc rsi
or rcx, rax
xor rcx, rbx
shr rcx, 0x3f
neg rcx
and rbx, rcx
cmp rsi, rdi
jb 0x140345b21
mov r14, qword [rsp + 0xd0]
mov eax, 1
mov rbx, qword [rsp + 0x118]
jmp 0x140345ba8
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140154c90
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140346b40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rax, qword [rcx + 8]
lea rsi, [r9 + 1]
mov rbx, rdx
mov rdx, qword [rdx + 8]
mov r9, qword [rax + 0xc0]
test byte [r9 + 0x60], 1
je 0x140346bcf
lea rax, [rsi + r8]
cmp rax, rdx
ja 0x140346bd4
add qword [rbx + 0x20], r8
sub rdx, r8
add qword [rbx + 0x28], r8
sub qword [rbx + 0x10], r8
mov qword [rbx + 8], rdx
mov rax, qword [rbx + 0x20]
mov rcx, qword [rcx + 0x438]
mov qword [rsp + 0x38], rdi
movzx edi, byte [rdx + rax - 1]
call fcn.140158ca0
mov rcx, rax
call fcn.140240880
mov rdx, qword [rbx + 8]
and eax, 0x200000
je 0x140346be1
sub rdx, rdi
mov eax, 1
mov rdi, qword [rsp + 0x38]
dec rdx
mov qword [rbx + 8], rdx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
cmp rsi, rdx
jbe 0x140346b83
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [rdi + rsi]
mov r8, rdx
sub r8, rcx
mov esi, 0x100
xor r8, rcx
mov rax, rdx
xor rax, rcx
or r8, rax
xor r8, rdx
shr r8, 0x3f
dec r8
cmp rdx, rsi
cmovb rsi, rdx
xor r9d, r9d
test rsi, rsi
je 0x140346c6a
mov r10, qword [rbx + 0x20]
mov r11, rdi
shr r11, 0x3f
dec r10
add r10, rdx
nop word [rax + rax]
mov rax, r9
lea r10, [r10 - 1]
shr rax, 0x3f
mov rcx, rdi
sub rcx, r9
inc r9
shr rcx, 0x3f
xor cl, al
xor al, r11b
or cl, al
dec cl
movzx edx, cl
movzx ecx, byte [r10 + 1]
xor rcx, rdi
and rdx, rcx
not rdx
and r8, rdx
cmp r9, rsi
jb 0x140346c30
lea rax, [rdi + 1]
not r8
mov rdi, qword [rsp + 0x38]
movzx ecx, r8b
dec rcx
shr rcx, 0x3f
neg rcx
and rax, rcx
sub qword [rbx + 8], rax
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x30], ecx
not ecx
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x48]
and ecx, 1
or eax, ecx
add rsp, 0x20
pop rsi
ret
Function at 0x1403532d0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1403532f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401937dc
or eax, 0xffffffff
jmp 0x1403532f2
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000190c
Capabilities:
Parse pe header

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

Function at 0x140fac058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140fac1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140fac089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fac06f
add dl, dl
jne 0x140fac096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fac0f6
xor eax, eax
add dl, dl
jne 0x140fac0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fac1ad
add dl, dl
jne 0x140fac0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fac0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fac0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fac0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140fac0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140fac07e
mov eax, 1
add dl, dl
jne 0x140fac106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fac113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fac0fb
sub eax, ebx
mov ebx, 1
jne 0x140fac14c
mov ecx, 1
add dl, dl
jne 0x140fac12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fac13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fac123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fac07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140fac168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fac175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fac15d
cmp eax, 0x7d00
jae 0x140fac19b
cmp eax, 0x500
jb 0x140fac196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fac07e
cmp eax, 0x7f
ja 0x140fac19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fac07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140fac1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140fac07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret
Function at 0x140007ba8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0
jmp 0x140007c5c
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp qword [rsp + 0x28], rax
jae 0x140007ccc
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rdx, [0x14002afe8]
mov rcx, qword [rsp + 0x58]
call fcn.140011cd0
test eax, eax
jne 0x140007cca
mov rax, qword [rsp + 0x60]
jmp 0x140007ccc
jmp 0x140007c4f
add rsp, 0x78
ret
Function at 0x14000a39c
Capabilities:
Read file on windows

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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000a3ca
xor eax, eax
jmp 0x14000a4b0
cmp qword [rcx + 0x68], 0
je 0x14000a3db
call fcn.14000a4cc
jmp 0x14000a4b0
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a3f2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a3f4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a426
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400256a0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000a4aa
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000a45d
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000a486
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140013670
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000a4aa
cmp rsi, rbx
ja 0x14000a464
test rsi, rsi
je 0x14000a4aa
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140013670
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14000b608
Capabilities:
Parse pe header

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

Function at 0x140014e64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014c60
Function at 0x14001bd38
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.14000b260
sub rsp, rax
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a918
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001bd87
mov rax, rbp
jmp 0x14001be8f
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 + 0x3c460]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001ce58
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3c460]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001be8b
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 0x14001be8b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001ce58
test rax, rax
js 0x14001be8b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001be8b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001be7d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001be7d
cmp byte [rcx], 0xd
jne 0x14001be63
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001be72
cmp byte [rcx + 1], 0xa
jne 0x14001be72
inc rcx
jmp 0x14001be72
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001be45
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001be8f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b230
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 0x14001c0b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c0c6
mov al, 1
jmp 0x14001c126
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c0d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c124
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001fefc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c124
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c124
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c124
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c126
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c1f8
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, [0x14003c460]
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 0x14001c24f
cmp word [rdx], r13w
jne 0x14001c24f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c254
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c379
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c39a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c28d
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c2b4
cmp r9, r8
jae 0x14001c2c4
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 0x14001c26e
jmp 0x14001c379
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 0x14001c36e
cmp dword [rsp + 0x80], esi
je 0x14001c36e
lea r8, [0x14003c460]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c346
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c316
mov word [rbx], r13w
jmp 0x14001c376
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 0x14001c323
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c376
cmp word [rsp + 0x70], r13w
jne 0x14001c353
cmp rbx, r14
je 0x14001c310
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001ce60
cmp word [rsp + 0x70], r13w
je 0x14001c379
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, [0x14003c460]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c373
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c379