joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800067b0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180006993
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.1800050d0
mov qword [rsi + 0x38], rdi
lea rax, [rdi - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x180006958
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + 0x11]
movzx r9d, byte [rcx + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rdx, qword [rdx]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x12]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x13]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x14]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x15]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x16]
imul r9, rdi
xor r9, rax
movzx eax, byte [rcx + 0x17]
imul r9, rdi
xor r9, rax
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r10, qword [r11]
cmp r10, rbx
jne 0x1800068cc
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x180006947
mov rax, qword [r11 + 8]
mov r9, qword [rcx + 0x10]
cmp r9, qword [rax + 0x10]
jne 0x180006909
mov r10, qword [rax]
cmp r10, rcx
je 0x180006903
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x180006947
mov r8, rax
cmp r10, rax
je 0x180006923
mov rax, qword [rax + 8]
mov r8, rax
cmp r9, qword [rax + 0x10]
je 0x18000696d
cmp r10, rax
jne 0x180006911
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x180006850
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x180006947
lea rcx, str.invalid_hash_bucket_count
call fcn.180027dc4
int3
Function at 0x18000a110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, qword [0x180068ab8]
lea r8, str.Dice
xor eax, eax
mov rbx, rcx
mov qword [rcx], rax
mov dword [rcx + 8], eax
mov rcx, rsi
lea edx, [rax + 0x65]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
je 0x18000a198
mov rdx, rax
mov qword [rsp + 0x30], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbp
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbx + 8], eax
test rdi, rdi
je 0x18000a180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbx], rax
mov rdi, qword [rsp + 0x30]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbp, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x18000dfa0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
mov r8, qword [rdx]
test r8, r8
jne 0x18000dfc3
mov rdi, qword [rdx + 8]
jmp 0x18000e157
mov r8, qword [r8 + 0x10]
movzx edx, r8b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs r9, 0x100000001b3
imul rdx, r9
mov rax, r8
shr rax, 8
movzx ecx, al
xor rdx, rcx
imul rdx, r9
mov rax, r8
shr rax, 0x10
movzx ecx, al
xor rdx, rcx
imul rdx, r9
mov rax, r8
shr rax, 0x18
movzx ecx, al
xor rdx, rcx
imul rdx, r9
mov rax, r8
shr rax, 0x20
movzx ecx, al
xor rdx, rcx
imul rdx, r9
mov rax, r8
shr rax, 0x28
movzx ecx, al
xor rdx, rcx
imul rdx, r9
mov rax, r8
shr rax, 0x30
movzx ecx, al
xor rdx, rcx
imul rdx, r9
mov rax, r8
shr rax, 0x38
xor rdx, rax
imul rdx, r9
mov rcx, qword [rbx + 0x38]
and rcx, rdx
shl rcx, 4
add rcx, qword [rbx + 0x20]
mov rax, qword [rcx + 8]
cmp rax, qword [rbx + 0x10]
je 0x18000e0f9
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x18000e08f
cmp rax, rcx
je 0x18000e0f9
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x18000e080
test rax, rax
je 0x18000e0f9
mov qword [rsp + 0x80], r8
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 8]
call fcn.180011320
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x18]
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x18000e0ee
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18000e0ee
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x18000e0ee
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov rax, rsi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x18000e113
lock inc dword [rcx + 8]
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18000d1e0
test rax, rax
je 0x18000e153
mov rax, qword [rdi]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x88], rdx
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x40]
jmp 0x18000e0a9
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x18000e188
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18000e188
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x18000e188
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x180012160
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x180012194
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x180012180
ret
Function at 0x18001ad50
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x70
mov rdi, rcx
lea rbp, [0x1800687e0]
mov qword [rsp + 0x20], rbp
mov byte [rsp + 0x28], 1
mov rcx, rbp
call sub.KERNEL32.dll_AcquireSRWLockShared
nop
mov r8, qword [rsp + 0x88]
movzx edx, r8b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0x89]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x8a]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x8b]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x8c]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x8d]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x8e]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x8f]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x180068900]
and rcx, rdx
shl rcx, 4
add rcx, qword [0x1800688e8]
mov rax, qword [rcx + 8]
cmp rax, qword [0x1800688d8]
je 0x18001ae9c
mov rcx, qword [rcx]
cmp r8, qword [rax + 0x10]
je 0x18001ae50
cmp rax, rcx
je 0x18001ae9c
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
jne 0x18001ae41
test rax, rax
je 0x18001ae9c
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x30]
call fcn.18001df40
mov r8, qword [rax]
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov rdx, qword [r8 + 0x20]
test rdx, rdx
je 0x18001ae84
lock inc dword [rdx + 8]
mov rdx, qword [r8 + 0x20]
mov rax, qword [r8 + 0x18]
mov qword [rdi], rax
mov qword [rdi + 8], rdx
mov rcx, rbp
call sub.KERNEL32.dll_ReleaseSRWLockShared
jmp 0x18001af57
mov rcx, rbp
call sub.KERNEL32.dll_ReleaseSRWLockShared
mov qword [rsp + 0x30], rbp
mov rcx, rbp
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rsp + 0x38], 1
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.18001d480
nop
mov r9, rax
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x50]
call fcn.18001d640
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x18001af15
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18001af15
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x18001af15
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x60]
call fcn.18001df40
mov rdx, qword [rax]
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov rcx, qword [rdx + 0x20]
test rcx, rcx
je 0x18001af44
lock inc dword [rcx + 8]
mov rcx, qword [rdx + 0x20]
mov rax, qword [rdx + 0x18]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov rcx, rbp
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rax, rdi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180021690
Capabilities:
Create thread

Disassembly:
sub rsp, 0x78
call fcn.18000cab0
mov ecx, dword [0x1800686f8]
call qword [sym.imp.CQP.dll_CQ_getLoginQQ]
xchg qword [0x1800686e8], rax
mov rcx, qword [0x1800686e8]
test rcx, rcx
je 0x1800216d1
mov rdx, qword [0x1800686e8]
lea rcx, [rsp + 0x60]
call fcn.18001cb80
mov rdx, rax
call fcn.180025190
cmp qword [0x180068950], 0
je 0x18002170f
mov rax, qword [0x180068958]
test rax, rax
je 0x1800216eb
lock inc dword [rax + 8]
movups xmm0, xmmword [0x180068950]
lea rdx, [rsp + 0x40]
lea rcx, [0x180068840]
movups xmmword [rsp + 0x40], xmm0
call fcn.18000dfa0
xchg qword [0x1800686f0], rax
mov eax, 1
mov ecx, 8
xchg byte [0x180068840], al
call fcn.18002ad50
lea rcx, [0x18000cc70]
mov r9, rax
lea r8, [0x180014a40]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.180032a00
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800217a6
cmp dword [rsp + 0x38], 0
je 0x1800217b9
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
call fcn.180029d24
test eax, eax
jne 0x1800217c4
xorps xmm0, xmm0
lea rcx, str.DiceDriver.enabled
movdqa xmmword [rsp + 0x30], xmm0
call fcn.180022590
cmp dword [rsp + 0x38], 0
jne 0x1800217a0
xor eax, eax
add rsp, 0x78
ret
call fcn.180032c34
int3
mov ecx, 6
mov dword [rsp + 0x38], 0
call fcn.180028f3c
int3
mov ecx, 1
call fcn.180028f3c
int3
mov ecx, eax
call fcn.180028f00
int3

Function at 0x180021890
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1800686e8]
test rax, rax
je 0x18002191e
mov rax, qword [0x1800686f0]
test rax, rax
je 0x18002191e
mov rcx, qword [0x1800686f0]
lea rdx, [0x18005a2c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 8
mov rbx, rax
call fcn.18002ad50
lea rcx, [rsp + 0x38]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x180014a40]
xor edx, edx
xor ecx, ecx
mov qword [rax], rbx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.180032a00
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180021926
cmp dword [rsp + 0x38], ebx
je 0x180021935
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.180029d24
test eax, eax
jne 0x180021940
xor eax, eax
add rsp, 0x50
pop rbx
ret
mov ecx, 6
mov dword [rsp + 0x38], ebx
call fcn.180028f3c
int3
mov ecx, 1
call fcn.180028f3c
int3
mov ecx, eax
call fcn.180028f00
int3
Function at 0x140003ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rsi, rcx
mov eax, dword [0x14003ced8]
mov ecx, dword [0x14003cedc]
lea edx, [rax - 1]
imul edx, eax
not edx
or edx, 0xfffffffe
cmp edx, 0xffffffff
sete byte [rsp + 0x2d]
cmp ecx, 0xa
setl byte [rsp + 0x2e]
mov eax, 0x28b2a4e2
mov r14, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 0xedb76d5c
mov ebp, 0xb7f4fcc5
mov edi, 0xc1acbc0c
nop
cmp eax, 0xedb76d5b
jg 0x1400040a0
cmp eax, 0xb7f4fcc5
je 0x1400040d5
cmp eax, 0xc1acbc0c
jne 0x140004040
mov rcx, rsi
call r14
mov ecx, eax
xor ecx, 0xffffffef
test ecx, eax
sete byte [rsp + 0x2f]
mov eax, dword [0x14003ced8]
lea ecx, [rax - 1]
imul ecx, eax
not ecx
or ecx, 0xfffffffe
cmp ecx, 0xffffffff
sete cl
mov eax, 0xb7f4fcc5
cmove eax, ebx
cmp dword [0x14003cedc], 0xa
cmovge eax, ebp
setl dl
xor dl, cl
cmovne eax, ebx
jmp 0x140004040
cmp eax, 0xedb76d5c
je 0x1400040e5
cmp eax, 0x28b2a4e2
jne 0x140004040
movzx ecx, byte [rsp + 0x2d]
movzx eax, byte [rsp + 0x2e]
mov edx, ecx
xor dl, al
test al, al
mov eax, 0xb7f4fcc5
cmovne eax, edi
test cl, cl
cmove eax, ebp
test dl, dl
cmovne eax, edi
jmp 0x140004040
mov rcx, rsi
call r14
mov eax, 0xc1acbc0c
jmp 0x140004040
mov al, byte [rsp + 0x2f]
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14001c008
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001c150

Function at 0x14001e290
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.140017750
sub rsp, rax
mov rax, qword [0x14003c368]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140023f6c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e2df
mov rax, rbp
jmp 0x14001e3e7
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 + 0x3e210]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002717c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3e210]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e3e3
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 0x14001e3e3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002717c
test rax, rax
js 0x14001e3e3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e3e3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e3d5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e3d5
cmp byte [rcx], 0xd
jne 0x14001e3bb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e3ca
cmp byte [rcx + 1], 0xa
jne 0x14001e3ca
inc rcx
jmp 0x14001e3ca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3cc70]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e39d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e3e7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400177b0
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 0x1400252b4
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 0x14002533b
mov rsi, rbx
cmp word [rax], bp
je 0x1400252fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400252e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400252e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140022d10
mov rdi, rax
test rax, rax
je 0x140025328
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400190e0
mov rbp, rdi
xor ecx, ecx
call fcn.1400221e4
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 0x140026d14
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, [0x14003e210]
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 0x140026d6b
cmp word [rdx], r13w
jne 0x140026d6b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140026d70
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026e95
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140026eb6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140026da9
mov rdx, r9
mov word [rbx], cx
jmp 0x140026dd0
cmp r9, r8
jae 0x140026de0
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 0x140026d8a
jmp 0x140026e95
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 0x140026e8a
cmp dword [rsp + 0x80], esi
je 0x140026e8a
lea r8, [0x14003e210]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140026e62
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140026e32
mov word [rbx], r13w
jmp 0x140026e92
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 0x140026e3f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140026e92
cmp word [rsp + 0x70], r13w
jne 0x140026e6f
cmp rbx, r14
je 0x140026e2c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400270d8
cmp word [rsp + 0x70], r13w
je 0x140026e95
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, [0x14003e210]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140026e8f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026e95
Function at 0x14002a8e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002a8fe
mov al, 1
jmp 0x14002a95e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002a90f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002a95c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400257ac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002a95c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002a95c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002a95c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002a95e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14002cd14
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.1400270d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400270d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002ce64
cmp rax, 0xffffffffffffffff
je 0x14002ce64
xor edi, edi
test rbp, rbp
jle 0x14002ce0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140022ba0
mov rbx, rax
test rax, rax
jne 0x14002cd9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002ce05
mov edx, 0x8000
mov ecx, r14d
call fcn.14001d6d4
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.140027e20
cmp eax, 0xffffffff
je 0x14002cde5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002cdac
mov edx, r15d
mov ecx, r14d
call fcn.14001d6d4
jmp 0x14002ce05
cmp byte [rsi + 0x38], dil
je 0x14002cdfc
cmp dword [rsi + 0x34], 5
jne 0x14002cdfc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002ce05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400221e4
jmp 0x14002ce78
jns 0x14002ce78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400270d8
cmp rax, 0xffffffffffffffff
jne 0x14002ce30
cmp byte [rsi + 0x30], dil
je 0x14002ce78
mov edi, dword [rsi + 0x2c]
jmp 0x14002ce78
mov ecx, r14d
call fcn.1400257ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002ce78
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 0x14002ce78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002ce71
mov eax, dword [rsi + 0x2c]
jmp 0x14002ce76
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400270d8
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 0x140e5f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e5f1df
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 0x140e5f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e5f06f
add dl, dl
jne 0x140e5f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e5f0f6
xor eax, eax
add dl, dl
jne 0x140e5f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e5f1ad
add dl, dl
jne 0x140e5f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e5f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e5f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e5f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e5f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e5f07e
mov eax, 1
add dl, dl
jne 0x140e5f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e5f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e5f0fb
sub eax, ebx
mov ebx, 1
jne 0x140e5f14c
mov ecx, 1
add dl, dl
jne 0x140e5f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e5f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e5f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e5f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e5f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e5f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e5f15d
cmp eax, 0x7d00
jae 0x140e5f19b
cmp eax, 0x500
jb 0x140e5f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e5f07e
cmp eax, 0x7f
ja 0x140e5f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e5f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e5f1d2
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 0x140e5f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20