joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180082e40
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp r9d, dword [0x180184b94]
mov rdi, rcx
mov rbx, r8
cmovb r9d, dword [0x180184b94]
mov dword [rcx + 8], edx
lea rdx, [rcx + 0x28]
mov dword [rcx + 0xc], r9d
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor eax, eax
mov qword [rdi + 0x18], rbx
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, rbx
mov dword [rsp + 0x20], eax
lea r8d, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 0x20], rax
add rsp, 0x30
pop rdi
ret

Function at 0x180083b10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x180182000]
mov r11, rdx
mov rbx, rcx
cmp rdx, 8
jb 0x180083bd7
mov qword [rsp + 0x10], rdi
mov rdi, rdx
shr rdi, 3
imul rax, rdi, 0xfffffffffffffff8
add r11, rax
xor r8d, dword [rbx]
mov r10d, dword [rbx + 4]
add rbx, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
sub rdi, 1
jne 0x180083b40
mov rdi, qword [rsp + 0x10]
test r11, r11
je 0x180083bfc
nop dword [rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rsi + rcx*4]
sub r11, 1
jne 0x180083be0
mov rbx, qword [rsp + 0x18]
mov eax, r8d
pop rsi
ret

Function at 0x180093830
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
movzx r8d, byte [rdx]
mov rbx, rcx
movabs rcx, 0x100000001b3
mov rdi, rdx
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rdx + 1]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rcx
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, rcx
xor r8, rax
movabs rax, 0xde5fb9d2630458e9
imul r8, rcx
mov rcx, rbx
mul r8
mov r8, rdi
lea r9, [rax + rdx]
lea rdx, [rsp + 0x20]
call fcn.180093a10
cmp byte [rsp + 0x28], 0
mov rdx, qword [rsp + 0x20]
je 0x1800938c4
mov eax, dword [rdi]
mov rcx, rdx
shl rcx, 4
add rcx, qword [rbx + 8]
mov dword [rcx], eax
mov qword [rcx + 8], 0
mov rax, qword [rbx + 8]
mov rbx, qword [rsp + 0x40]
shl rdx, 4
add rdx, 8
add rax, rdx
add rsp, 0x30
pop rdi
ret
Function at 0x1800938e0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
movzx r9d, byte [r8]
mov r15, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov r14, r8
movzx eax, byte [r8 + 1]
xor r12d, r12d
mov r10, qword [r15 + 0x18]
mov rbp, rdx
mov rsi, qword [r15]
mov edi, r12d
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rcx
xor r9, rax
movabs rax, 0xde5fb9d2630458e9
imul r9, rcx
mul r9
lea rcx, [rax + rdx]
mov r8, rcx
shr r8, 7
and r8, r10
and cl, 0x7f
movsx eax, cl
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm1, xmmword [rsi + r8]
movdqa xmm0, xmm1
pcmpeqb xmm0, xmm2
pmovmskb eax, xmm0
test eax, eax
je 0x1800939c2
mov r11, qword [r15 + 8]
mov ebx, dword [r14]
nop
bsf ecx, eax
movsxd rcx, ecx
add rcx, r8
and rcx, r10
mov r9, rcx
shl r9, 4
add r9, r11
cmp dword [r9], ebx
je 0x1800939e2
lea ecx, [rax - 1]
and eax, ecx
jne 0x1800939a0
movdqa xmm0, xmmword [0x180143d90]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
test eax, eax
jne 0x1800939e8
add rdi, 0x10
add r8, rdi
and r8, r10
jmp 0x180093981
mov qword [rbp + 8], r9
jmp 0x1800939eb
mov rcx, r10
lea rax, [rsi + rcx]
mov qword [rbp], rax
mov rax, rbp
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret

Function at 0x180094270
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
cmp r8d, dword [rcx + 0x40]
jae 0x1800942aa
mov rcx, qword [rcx + 0x130]
call fcn.180094270
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x48], rdi
lea rdi, [rcx + 0x760]
cmp qword [rdi], 0
jne 0x1800942dc
mov qword [rdi], 0
mov r8, rdi
mov rcx, qword [rcx + 0x78]
mov edx, 1
call fcn.180046450
test eax, eax
je 0x1800942f1
mov rcx, qword [rdi]
lea r8, [rsp + 0x40]
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x60]
test eax, eax
jne 0x180094301
mov rcx, qword [rbx + 0x10]
call fcn.180043260
xor eax, eax
jmp 0x180094393
movzx ecx, byte [rsp + 0x40]
lea r8, [rsp + 0x40]
movabs rdx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movzx eax, byte [rsp + 0x41]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rsp + 0x42]
imul rcx, rdx
xor rcx, rax
movzx eax, byte [rsp + 0x43]
imul rcx, rdx
xor rcx, rax
movabs rax, 0xde5fb9d2630458e9
imul rcx, rdx
mul rcx
lea rcx, [rbx + 0x178]
lea r9, [rax + rdx]
lea rdx, [rsp + 0x20]
call fcn.1800680e0
cmp byte [rsp + 0x28], 0
je 0x18009438e
mov rdx, qword [rbx + 0x180]
mov rcx, qword [rsp + 0x20]
lea r8, [rdx + rcx*8]
mov ecx, dword [rsp + 0x40]
mov dword [r8], ecx
mov dword [r8 + 4], esi
mov eax, 1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x180095000
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
lea r15, [rcx + 8]
mov rdi, rcx
mov rcx, r15
mov qword [rsp + 0x98], r15
mov ebp, r9d
movzx r14d, r8w
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [rsi]
movzx edx, r14w
mov rcx, rsi
call qword [rax + 0x18]
sub eax, ebp
lea rdx, [0x180139860]
mov ecx, eax
mov dword [rsp + 0xa8], ecx
call fcn.18000bbe4
mov rbx, rax
test rax, rax
jne 0x18009506b
mov rcx, qword [rdi + 0x10]
call fcn.180043260
xor esi, esi
jmp 0x1800951ae
mov rax, qword [rsi]
lea rcx, [rsp + 0xa8]
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rcx, rsi
mov r8d, ebp
movzx edx, r14w
call qword [rax + 0x28]
test eax, eax
jne 0x18009509f
mov rcx, qword [rdi + 0x10]
call fcn.180043280
xor esi, esi
jmp 0x1800951ae
mov ebp, dword [rsp + 0xa8]
add rbp, rbx
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0x30], rbx
mov r12, rbx
cmp rbx, rbp
jae 0x180095199
mov qword [rsp + 0x50], r13
xor esi, esi
movabs r13, 0x100000001b3
movabs r12, 0xcbf29ce484222325
movabs r15, 0xde5fb9d2630458e9
nop word [rax + rax]
mov edx, dword [rbx]
mov r14d, dword [rbx + 4]
mov eax, edx
shr eax, 8
add rbx, 8
movzx r8d, al
movzx eax, dl
xor rax, r12
mov dword [rsp + 0x90], edx
imul rax, r13
xor r8, rax
mov eax, edx
imul r8, r13
shr eax, 0x10
movzx ecx, al
mov rax, r15
xor r8, rcx
shr rdx, 0x18
imul r8, r13
lea rcx, [rdi + 0x70]
xor r8, rdx
imul r8, r13
mul r8
lea r8, [rsp + 0x90]
lea r9, [rax + rdx]
lea rdx, [rsp + 0x38]
call fcn.1800680e0
mov r8, qword [rsp + 0x38]
cmp byte [rsp + 0x40], sil
je 0x180095175
mov rax, qword [rdi + 0x78]
lea rdx, [rax + r8*8]
mov eax, dword [rsp + 0x90]
mov dword [rdx], eax
mov dword [rdx + 4], esi
mov rax, qword [rdi + 0x78]
mov dword [rax + r8*8 + 4], r14d
cmp rbx, rbp
jb 0x1800950f0
mov r15, qword [rsp + 0x98]
mov r12, qword [rsp + 0x30]
mov r13, qword [rsp + 0x50]
mov rcx, r12
call fcn.18000b6f0
mov r12, qword [rsp + 0xa0]
mov esi, 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, esi
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180098240
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
lea rdi, [rdx + 0x18]
mov rsi, qword [rcx]
and rdi, 0xfffffffffffffff8
mov r14, qword [rcx + 8]
xor r15d, r15d
mov qword [rcx + 0x18], rdx
mov rbx, rcx
shl rdx, 4
add rdx, rdi
cmp rdx, 0x1000
jb 0x1800982a6
lea rcx, [rdx + 0x27]
cmp rcx, rdx
jbe 0x180098472
call fcn.18000c190
test rax, rax
je 0x18009846c
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
jmp 0x1800982bb
test rdx, rdx
je 0x1800982b8
mov rcx, rdx
call fcn.18000c190
mov rcx, rax
jmp 0x1800982bb
mov rcx, r15
mov r8, qword [rbx + 0x18]
lea rax, [rcx + rdi]
add r8, 0x10
mov qword [rbx], rcx
mov edx, 0xffffff80
mov qword [rbx + 8], rax
call fcn.18000c7b0
mov rcx, qword [rbx]
mov r9, r15
mov rax, qword [rbx + 0x18]
mov byte [rcx + rax], 0xff
mov rcx, qword [rbx + 0x18]
mov rax, rcx
shr rax, 3
sub rcx, rax
sub rcx, qword [rbx + 0x10]
mov qword [rbx + 0x28], rcx
test rbp, rbp
je 0x18009845b
mov qword [rsp + 0x58], r12
lea rdi, [r14 + 2]
mov qword [rsp + 0x60], r13
movabs rax, 0xcbf29ce484222325
movabs r13, 0xde5fb9d2630458e9
movabs r12, 0x100000001b3
cmp byte [r9 + rsi], r15b
jl 0x180098409
movzx ecx, byte [rdi - 2]
mov r10, qword [rbx + 0x18]
xor rcx, rax
movzx eax, byte [rdi - 1]
mov r11, qword [rbx]
movdqa xmm2, xmmword [0x180139870]
imul rcx, r12
movdqa xmm1, xmm2
xor rcx, rax
movzx eax, byte [rdi]
imul rcx, r12
xor rcx, rax
movzx eax, byte [rdi + 1]
imul rcx, r12
xor rcx, rax
mov rax, r13
imul rcx, r12
mul rcx
lea r14, [rax + rdx]
mov rdx, r15
mov rcx, r14
shr rcx, 7
and rcx, r10
movdqu xmm0, xmmword [r11 + rcx]
pcmpgtb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
jne 0x1800983c2
add rdx, 0x10
movdqa xmm1, xmm2
add rcx, rdx
and rcx, r10
movdqu xmm0, xmmword [r11 + rcx]
pcmpgtb xmm1, xmm0
pmovmskb eax, xmm1
test eax, eax
je 0x1800983a2
bsf edx, eax
and r14b, 0x7f
movsxd r8, edx
add r8, rcx
and r8, r10
mov byte [r11 + r8], r14b
lea rcx, [r8 - 0x10]
mov rax, qword [rbx + 0x18]
and rcx, rax
and eax, 0xf
add rcx, rax
mov rax, qword [rbx]
add r8, r8
mov byte [rcx + rax + 1], r14b
mov rax, qword [rbx + 8]
movups xmm0, xmmword [rdi - 2]
movups xmmword [rax + r8*8], xmm0
movabs rax, 0xcbf29ce484222325
inc r9
add rdi, 0x10
cmp r9, rbp
jne 0x180098331
mov r13, qword [rsp + 0x60]
lea rdx, [rbp + 0x18]
mov r12, qword [rsp + 0x58]
and rdx, 0xfffffffffffffff8
shl rbp, 4
add rdx, rbp
cmp rdx, 0x1000
jb 0x180098453
mov rcx, qword [rsi - 8]
add rdx, 0x27
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x18009846c
mov rsi, rcx
mov rcx, rsi
call fcn.18000b6f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18002c4c8
int3
call fcn.18000c350
int3
Function at 0x1800a8e40
Capabilities:
Hash data with crc32

Disassembly:
movzx eax, byte [rdx]
lea r10, [0x18014fb60]
not al
mov r8, rdx
movzx ecx, al
movzx eax, byte [rdx + 1]
mov r9d, dword [r10 + rcx*4]
xor r9d, 0xffffff
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 2]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 3]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 4]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 5]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 6]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 7]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 8]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 9]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0xa]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0xb]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0xc]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0xd]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0xe]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0xf]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
xor r9d, dword [r10 + rcx*4]
movzx eax, byte [rdx + 0x10]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x11]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x12]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x13]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x14]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x15]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x16]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x17]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x18]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x19]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
movzx eax, byte [rdx + 0x1a]
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
xor r9d, dword [r10 + rcx*4]
movzx ecx, byte [r8 + 0x1b]
movzx edx, r9b
xor rdx, rcx
shr r9d, 8
xor r9d, dword [r10 + rdx*4]
mov eax, r9d
ret
Function at 0x1800e1830
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov r10d, r8d
mov rcx, qword [rcx + 0x70]
mov rbx, r9
mov rsi, rdx
test rcx, rcx
je 0x1800e1899
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov rax, qword [rcx]
mov edx, r10d
mov r8d, ebx
mov qword [rsp + 0x20], rsi
call qword [rax + 0x18]
test eax, eax
js 0x1800e1909
mov eax, dword [rsp + 0x40]
cmp rbx, rax
jne 0x1800e1909
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x1800e18c2
mov dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
mov rax, qword [rcx]
mov r8d, ebx
mov edx, r10d
mov qword [rsp + 0x20], rsi
call qword [rax + 0x18]
jmp 0x1800e1872
mov rcx, qword [rdi + 0x108]
test rcx, rcx
je 0x1800e1909
xor r8d, r8d
mov edx, r10d
call fcn.18012caac
test eax, eax
jne 0x1800e1909
mov r9, qword [rdi + 0x108]
lea r8d, [rax + 1]
mov rdx, rbx
mov rcx, rsi
call fcn.18012c794
cmp rax, 1
jne 0x1800e1909
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800e1920
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x40], 0
mov rbx, rcx
jne 0x1800e19d8
mov edx, dword [rcx + 0x54]
xor r8d, r8d
mov byte [rcx + 0x40], 1
mov rcx, qword [rcx + 0x48]
call fcn.18012caac
test eax, eax
jne 0x1800e19d8
mov qword [rsp + 0x30], rbp
movsxd rbp, dword [rbx + 0x50]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
test ebp, ebp
js 0x1800e19a1
mov eax, dword [rbx + 0x18]
sub eax, dword [rbx + 0x10]
add eax, dword [rbx + 8]
cmp ebp, eax
jle 0x1800e1981
mov edx, ebp
lea rcx, [rbx + 8]
call fcn.1800a12d0
test eax, eax
je 0x1800e19a1
mov rcx, qword [rbx + 0x10]
mov r8d, 1
add qword [rbx + 0x10], rbp
mov edx, dword [rbx + 0x50]
mov r9, qword [rbx + 0x48]
call fcn.18012c794
cmp rax, 1
je 0x1800e19c1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1800e19c1
mov eax, dword [rbx + 0x10]
xor edx, edx
sub eax, ecx
movsxd r8, eax
call fcn.18000c7b0
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov rsi, qword [rsp + 0x38]
mov al, 1
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1800e31d0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebp, ebp
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbp + 1]
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800e3271
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x1800e3271
mov qword [rsp + 0x28], rbp
lea r8d, [rbp + 2]
xor r9d, r9d
mov dword [rsp + 0x20], eax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
je 0x1800e3271
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
lea edx, [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r14], rax
test rax, rax
je 0x1800e3271
mov dil, 1
jmp 0x1800e3279
xor dil, dil
test rbx, rbx
je 0x1800e3282
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 0xffffffffffffffff
je 0x1800e3291
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
movzx eax, dil
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1800f6980
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
sub rsp, 0x60
xor ebp, ebp
mov dword [rax - 0x28], 0x18
mov rsi, rdx
mov qword [rax - 0x38], rbp
mov rbx, rcx
mov dword [rax - 0x40], 0x80
lea r9, [rax - 0x28]
mov qword [rax - 0x20], rbp
lea r8d, [rbp + 5]
mov dword [rax - 0x18], ebp
mov edx, 0x80000000
mov dword [rax - 0x48], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1800f6a19
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1800f69ea
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rbx + 0xb8]
xor r9d, r9d
mov r8, rsi
mov edx, eax
mov rcx, qword [rcx + 0x280]
call fcn.1800adc20
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
test dword [rbx + 0x30], 0x800000
mov qword [rsp + 0x78], rdi
je 0x1800f6a96
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x1800f6a96
cmp dword [rsp + 0x70], ebp
jne 0x1800f6a96
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor edx, edx
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
je 0x1800f6a96
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rbp
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x20], 0
jne 0x1800f6ae4
mov rcx, qword [rbx + 0x18]
mov edx, 0x8080
and dword [rbx + 0x30], 0xff7fffff
call fcn.1800321b8
mov dword [rbx + 0x10], eax
cmp eax, 0xffffffff
jne 0x1800f6ae4
call fcn.18002c5f4
mov edx, dword [rax]
test edx, edx
jle 0x1800f6ac7
movzx edx, dx
or edx, 0x80070000
mov rcx, qword [rbx + 0xb8]
xor r9d, r9d
mov r8, rsi
mov rcx, qword [rcx + 0x280]
call fcn.1800adc20
xor al, al
jmp 0x1800f6ae6
mov al, 1
mov rdi, qword [rsp + 0x78]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x1800f7760
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x18017b008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov esi, r9d
mov rdi, r8
mov r9d, edx
mov rbx, rcx
test esi, esi
jne 0x1800f7794
mov al, 1
jmp 0x1800f7867
test dword [rcx + 0x30], 0x800000
mov eax, dword [rcx + 0x28]
je 0x1800f77e2
mov rdx, qword [rcx + 0x20]
mov r8, rsi
add rdx, rax
add rdx, r9
test rdi, rdi
je 0x1800f77cb
mov rcx, rdi
test rdx, rdx
je 0x1800f77c6
call fcn.180018d80
mov al, 1
jmp 0x1800f7867
call fcn.18000c7b0
call fcn.18002c614
mov dword [rax], 0x16
call fcn.18002c4a8
mov al, 1
jmp 0x1800f7867
mov ecx, dword [rcx + 0x10]
lea edx, [r9 + rax]
xor r8d, r8d
call fcn.180034f80
cmp rax, 0xffffffffffffffff
je 0x1800f7809
mov ecx, dword [rbx + 0x10]
mov r8d, esi
mov rdx, rdi
call fcn.1800355b0
cmp eax, esi
je 0x1800f778d
mov rax, qword [rbx + 0xb8]
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rax + 0xf8]
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
test eax, eax
je 0x1800f7865
call fcn.18002c5f4
mov edx, dword [rax]
test edx, edx
jle 0x1800f784a
movzx edx, dx
or edx, 0x80070000
mov rcx, qword [rbx + 0xb8]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov rcx, qword [rcx + 0x280]
call fcn.1800adc20
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18000b6d0
add rsp, 0x250
pop rdi
pop rsi
pop rbx
ret
Function at 0x18012a840
Capabilities:
Parse pe header

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

Function at 0x18012ce7c
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.18012aa00
sub rsp, rax
mov rax, qword [0x18017b008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002dd54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18012cecb
mov rax, rbp
jmp 0x18012cfd3
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x181820]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18003501c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x181820]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18012cfcf
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 0x18012cfcf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18003501c
test rax, rax
js 0x18012cfcf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18012cfcf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18012cfc1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18012cfc1
cmp byte [rcx], 0xd
jne 0x18012cfa7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18012cfb6
cmp byte [rcx + 1], 0xa
jne 0x18012cfb6
inc rcx
jmp 0x18012cfb6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x17b920]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18012cf89
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18012cfd3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000b6d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret