joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3308], 0
lea rbx, [rcx + 0x3310]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400180e7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001809a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400254f0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003a40
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3308]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3318]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140063088]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400180ef
mov rcx, rbx
call fcn.140003a40
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140018530
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x140018582
lea r11, [0x140053e60]
cmp r9b, 0x23
jne 0x140018565
cmp byte [r8], r9b
jne 0x140018565
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140018552
mov r11, qword [0x140063090]
xor r9d, r9d
not eax
mov r10, qword [r11 + 0x32d0]
test r10, r10
lea rcx, [r10 + 4]
cmovne r9, rcx
test r9, r9
je 0x1400185ce
cmp dword [r9], eax
je 0x1400185d7
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x32c8]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x1400185a5
mov rcx, rbx
pop rbx
jmp fcn.140018440
test r9, r9
je 0x1400185ce
mov rax, r9
pop rbx
ret
Function at 0x14001bc60
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14001beae
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x140053e60]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14001be76
mov rcx, rbp
call fcn.14001b260
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14001bd31
movsxd rdx, dword [rbp + 0x3268]
mov r8, qword [rbp + 0x3270]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14001bd21
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14001bd19
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14001bd1c
mov rdx, rcx
test rdx, rdx
jne 0x14001bcf0
cmp r8, r10
je 0x14001bd31
cmp dword [r8], r9d
jne 0x14001bd31
mov rcx, qword [r8 + 8]
jmp 0x14001bd33
xor ecx, ecx
mov qword [rbx + 0x18], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x50], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xbc]
and eax, 0xfffffe49
movss dword [rbx + 0x58], xmm1
or eax, 0x49
mov dword [rbx + 0xbc], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x5c], xmm0
test rcx, rcx
je 0x14001bdc7
cmp qword [rcx + 0x20], 0
jne 0x14001bdbc
mov qword [rcx + 0x20], rbx
jmp 0x14001bdc7
cmp qword [rcx + 0x28], 0
jne 0x14001bdc7
mov qword [rcx + 0x28], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb4], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x60], eax
mov ecx, dword [rdi - 6]
mov eax, dword [rbx + 0xc]
and ecx, 0xc1fc20
or eax, dword [rbx + 4]
or eax, ecx
mov dword [rbx + 8], ecx
mov dword [rbx + 0x10], eax
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14001be0c
nop word [rax + rax]
mov r9, rax
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x14001be00
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.140003150
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14001be68
cmp r9b, 0x23
jne 0x14001be4b
cmp byte [r8], r9b
jne 0x14001be4b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14001be38
not ecx
call fcn.14000b690
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x14001bcb0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140050380
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x14004cdb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x14004cdf0
cmp al, 0x25
jne 0x14004cde4
cmp byte [r8 + 1], al
jne 0x14004cdf0
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x14004cdd7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14004cf4e
cmp byte [r8 + 1], dl
je 0x14004cf4e
lea r11, [rsp + 0x28]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14004ce2d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14004ce55
sub dl, 0x61
cmp dl, 0x19
ja 0x14004ce47
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14004ce55
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14004ce10
jmp 0x14004ce58
inc r9
cmp r8, r9
jae 0x14004ce8f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14004ce84
bt rdx, rax
jb 0x14004ce8a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14004ce70
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x28]
mov edx, 0x40
lea rcx, [rsp + 0x50]
movq r9, xmm3
call fcn.140003150
cmp byte [rsp + 0x50], 0x20
lea rcx, [rsp + 0x50]
jne 0x14004cec8
nop
inc rcx
cmp byte [rcx], 0x20
je 0x14004cec0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14004cf3c
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x14004cee8
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14004cf2a
movss xmm2, dword [0x140058754]
cmp al, 0x39
ja 0x14004cf2a
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x14004cf04
cmp r8b, 0x2d
jne 0x14004cf49
xorps xmm1, xmmword [0x140058cc0]
movaps xmm0, xmm1
jmp 0x14004cf51
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14004cf51
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140050380
add rsp, 0xa0
pop rbx
ret
Function at 0x14004cf70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x14004cfb0
cmp al, 0x25
jne 0x14004cfa4
cmp byte [r8 + 1], al
jne 0x14004cfb0
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x14004cf97
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x14004d108
cmp byte [r8 + 1], dl
je 0x14004d108
lea r11, [rsp + 0x28]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14004cfed
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x14004d015
sub dl, 0x61
cmp dl, 0x19
ja 0x14004d007
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x14004d015
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x14004cfd0
jmp 0x14004d018
inc r9
cmp r8, r9
jae 0x14004d04f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x14004d044
bt rdx, rax
jb 0x14004d04a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x14004d030
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x28]
mov edx, 0x40
lea rcx, [rsp + 0x50]
call fcn.140003150
cmp byte [rsp + 0x50], 0x20
lea rcx, [rsp + 0x50]
jne 0x14004d088
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x14004d080
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x14004d0fa
movzx r8d, byte [rcx]
movzx eax, r8b
cmp r8b, 0x2d
jne 0x14004d0a8
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, byte [rax]
cmp al, 0x2b
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x30
jl 0x14004d0e8
movsd xmm2, qword [0x1400586f0]
cmp al, 0x39
ja 0x14004d0e8
movsx eax, byte [rdx]
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x14004d0c4
cmp r8b, 0x2d
jne 0x14004d103
xorps xmm1, xmmword [0x140058cb0]
movaps xmm0, xmm1
jmp 0x14004d10b
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14004d10b
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140050380
add rsp, 0xa0
pop rbx
ret

Function at 0x14004d4b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rsp + 0x30], rax
movsxd rdi, ecx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [rsp + 0x20]
imul qword [rsp + 0x28]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
mov qword [rsp + 0x20], 0
idiv qword [rsp + 0x28]
add rdi, rax
test rdi, rdi
jle 0x14004d542
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
idiv qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
cmp rax, rdi
jl 0x14004d521
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140050380
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14004d610
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004d633
movsd xmm3, qword [0x1400586d0]
jmp 0x14004d63b
movsd xmm3, qword [0x1400586b8]
cmp byte [0x14006308f], 0
je 0x14004d706
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630d8]
cmp byte [0x14006308a], 0
je 0x14004d6b1
cmp byte [0x1400630a1], 0
je 0x14004d67a
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d682
movsd xmm1, qword [0x140062418]
cmp byte [0x140063089], 0
jne 0x14004d6a7
cmp byte [0x14006308e], 0
jne 0x14004d6a7
cmp byte [0x1400630a0], 0
je 0x14004d6b9
movsd xmm1, qword [0x1400586c0]
jmp 0x14004d6b9
movsd xmm1, qword [0x1400586a8]
jmp 0x14004d6b9
movsd xmm1, qword [0x140062420]
call fcn.14004d560
mulsd xmm0, qword [rax]
movss xmm2, dword [0x1400620c0]
cvtps2pd xmm2, xmm2
mulsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, dword [0x1400620c4]
mulsd xmm2, xmm3
divsd xmm1, qword [0x140058720]
mulsd xmm2, qword [0x1400587c8]
mulsd xmm2, qword [0x1400586d8]
mulsd xmm2, xmm1
divsd xmm0, xmm2
add rsp, 0x20
pop rbx
ret
cmp byte [0x14006308b], 0
je 0x14004d748
mov rax, rbx
shl rax, 4
add rax, qword [0x140063108]
cmp byte [0x14006308a], 0
je 0x14004d6b1
cmp byte [0x1400630a1], 0
je 0x14004d67a
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d682
cmp byte [0x1400630a2], 0
je 0x14004d78e
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630a8]
cmp byte [0x14006308a], 0
je 0x14004d6b1
cmp byte [0x1400630a1], 0
je 0x14004d67a
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d682
cmp byte [0x14006308d], 0
je 0x14004d7d4
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630c0]
cmp byte [0x14006308a], 0
je 0x14004d6b1
cmp byte [0x1400630a1], 0
je 0x14004d67a
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d682
cmp byte [0x1400630a1], 0
je 0x14004d83c
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630f0]
cmp byte [0x14006308a], 0
je 0x14004d6b1
cmp byte [0x140063089], 0
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jne 0x14004d6a7
cmp byte [0x14006308e], 0
jne 0x14004d6a7
cmp byte [0x1400630a0], 0
je 0x14004d6b9
movsd xmm1, qword [0x1400586c0]
jmp 0x14004d6b9
xorps xmm0, xmm0
add rsp, 0x20
pop rbx
ret
Function at 0x14004d850
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004d873
movsd xmm3, qword [0x1400586d0]
jmp 0x14004d87b
movsd xmm3, qword [0x1400586b8]
cmp byte [0x14006308f], 0
je 0x14004d947
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630d8]
cmp byte [0x14006308a], 0
je 0x14004d8f1
cmp byte [0x1400630a1], 0
je 0x14004d8ba
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d8c2
movsd xmm1, qword [0x140062418]
cmp byte [0x140063089], 0
jne 0x14004d8e7
cmp byte [0x14006308e], 0
jne 0x14004d8e7
cmp byte [0x1400630a0], 0
je 0x14004d8f9
movsd xmm1, qword [0x1400586c0]
jmp 0x14004d8f9
movsd xmm1, qword [0x1400586a8]
jmp 0x14004d8f9
movsd xmm1, qword [0x140062420]
call fcn.14004d560
mulsd xmm0, qword [rax + 8]
movss xmm2, dword [0x1400620c0]
cvtps2pd xmm2, xmm2
mulsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, dword [0x1400620c4]
mulsd xmm2, xmm3
divsd xmm1, qword [0x140058720]
mulsd xmm2, qword [0x1400587c8]
mulsd xmm2, qword [0x1400586d8]
mulsd xmm2, xmm1
divsd xmm0, xmm2
add rsp, 0x20
pop rbx
ret
cmp byte [0x14006308b], 0
je 0x14004d989
mov rax, rbx
shl rax, 4
add rax, qword [0x140063108]
cmp byte [0x14006308a], 0
je 0x14004d8f1
cmp byte [0x1400630a1], 0
je 0x14004d8ba
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d8c2
cmp byte [0x1400630a2], 0
je 0x14004d9cf
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630a8]
cmp byte [0x14006308a], 0
je 0x14004d8f1
cmp byte [0x1400630a1], 0
je 0x14004d8ba
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d8c2
cmp byte [0x14006308d], 0
je 0x14004da15
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630c0]
cmp byte [0x14006308a], 0
je 0x14004d8f1
cmp byte [0x1400630a1], 0
je 0x14004d8ba
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jmp 0x14004d8c2
cmp byte [0x1400630a1], 0
je 0x14004da7d
mov rax, rbx
shl rax, 4
add rax, qword [0x1400630f0]
cmp byte [0x14006308a], 0
je 0x14004d8f1
cmp byte [0x140063089], 0
movsd xmm1, qword [0x1400586b0]
movsd qword [0x140062418], xmm1
jne 0x14004d8e7
cmp byte [0x14006308e], 0
jne 0x14004d8e7
cmp byte [0x1400630a0], 0
je 0x14004d8f9
movsd xmm1, qword [0x1400586c0]
jmp 0x14004d8f9
xorps xmm0, xmm0
add rsp, 0x20
pop rbx
ret
Function at 0x1400510a8
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400204d0]
mov dword [rax], 1
mov rax, qword [0x1400204e0]
mov dword [rax], 1
mov rax, qword [0x1400204f0]
mov dword [rax], 1
mov rax, qword [0x140020450]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c30
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rcx
mov rcx, qword [rcx]
mov r12, rdx
test rcx, rcx
je 0x140001d30
mov edx, dword [r12 + 4]
xor r8d, r8d
add edx, dword [rbp + 8]
call fcn.14000f2a0
test eax, eax
js 0x140001d78
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.msvcrt.dll_malloc
mov r13, rax
test rax, rax
je 0x140001d92
cmp byte [r12 + 0x10], 1
je 0x140001d10
mov rdi, rax
test rsi, rsi
jne 0x140001ca0
jmp 0x140001ce9
add rdi, rbx
sub rsi, rbx
je 0x140001ce9
mov ebx, 0x2000
mov r9, qword [rbp]
mov r8d, 1
mov rcx, rdi
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001c98
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002f90
mov rcx, r13
call sub.msvcrt.dll_free
xor r13d, r13d
mov rcx, qword [rbp]
test rcx, rcx
je 0x140001cff
call sub.msvcrt.dll_fclose
mov qword [rbp], 0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001850
test eax, eax
je 0x140001ce9
jmp 0x140001cde
lea rcx, [rbp + 0x78]
lea rdx, [0x14001a1a0]
call fcn.1400044f0
mov qword [rbp], rax
mov rcx, rax
test rax, rax
jne 0x140001c4e
lea rdx, [r12 + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002e10
xor r13d, r13d
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002f90
jmp 0x140001d61
mov r9d, esi
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, [0x14001a0e2]
call fcn.140002f90
jmp 0x140001ce6
Function at 0x140001dc0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, rcx
mov rbx, rdx
call fcn.140007550
cmp eax, 0xffffffff
je 0x140001f8e
lea r13, [rbx + 0x12]
lea rcx, [rdi + 0x3078]
mov rdx, r13
call fcn.1400077d0
mov r12, rax
test rax, rax
je 0x140001f78
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001f00
mov edx, dword [rbx + 4]
xor r8d, r8d
add edx, dword [rdi + 8]
call fcn.14000f2a0
test eax, eax
js 0x140001f60
cmp byte [rbx + 0x10], 1
je 0x140001ec0
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rbp, rax
test rax, rax
je 0x140001f98
mov esi, dword [rbx + 0xc]
test rsi, rsi
jne 0x140001e76
jmp 0x140001f38
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140001f40
sub rsi, rbx
je 0x140001f38
mov ebx, 0x2000
mov r9, qword [rdi]
mov r8d, 1
mov rcx, rbp
cmp rsi, rbx
cmovbe rbx, rsi
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
jne 0x140001e50
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002f90
mov ebx, 0xffffffff
mov rcx, rbp
call sub.msvcrt.dll_free
jmp 0x140001ed3
mov rdx, rbx
xor r9d, r9d
mov r8, r12
mov rcx, rdi
call fcn.140001850
mov ebx, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140001ee7
call sub.msvcrt.dll_fclose
mov qword [rdi], 0
mov rcx, r12
call sub.msvcrt.dll_fclose
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, [rdi + 0x78]
lea rdx, [0x14001a1a0]
call fcn.1400044f0
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x140001e0b
mov rdx, r13
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002e10
mov ebx, 0xffffffff
jmp 0x140001ed3
xor ebx, ebx
jmp 0x140001eb6
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002f90
jmp 0x140001eb1
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002f90
jmp 0x140001f2e
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002f90
mov ebx, 0xffffffff
jmp 0x140001eef
mov r8, r13
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, [0x14001a0e2]
call fcn.140002f90
jmp 0x140001f2e
Function at 0x140001fc0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140002160
mov rax, qword [0x14001ff20]
mov r8d, 8
mov rdx, qword [rax]
mov qword [rsp + 0x28], rdx
shr rdx, 0x18
add edx, 0xc
mov byte [rsp + 0x2b], dl
lea rdx, [rsp + 0x28]
call fcn.140007e80
mov rbx, rax
test rax, rax
je 0x14000219b
mov rcx, qword [rdi]
xor r8d, r8d
mov edx, eax
call fcn.14000f2a0
test eax, eax
js 0x1400021c5
mov r9, qword [rdi]
lea rcx, [rdi + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x140002188
mov eax, dword [rdi + 0x28]
mov ecx, dword [rdi + 0x30]
add rbx, 0x58
xor r8d, r8d
mov dword [rdi + 0x507c], 0
mov edx, dword [rdi + 0x2c]
bswap eax
bswap ecx
mov dword [rdi + 0x28], eax
mov eax, eax
mov dword [rdi + 0x30], ecx
mov ecx, dword [rdi + 0x34]
sub rbx, rax
bswap edx
mov qword [rdi + 8], rbx
bswap ecx
mov dword [rdi + 0x2c], edx
add edx, ebx
mov dword [rdi + 0x34], ecx
mov dword [0x1400250b0], ecx
mov rcx, qword [rdi]
call fcn.14000f2a0
movsxd rbx, dword [rdi + 0x30]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov qword [rdi + 0x10], rax
mov rcx, rax
test rax, rax
je 0x1400021da
mov r9, qword [rdi]
mov r8d, 1
mov rdx, rbx
call sub.msvcrt.dll_fread
test rax, rax
je 0x1400021a2
movsxd rax, dword [rdi + 0x30]
add rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi]
call sub.msvcrt.dll_ferror
mov ebx, eax
test eax, eax
jne 0x1400021b7
mov rax, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
lea rsi, str.Cannot_read_Table_of_Contents._n
nop
cmp rax, r8
jae 0x140002138
mov ecx, dword [rax + 4]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
movsxd rdx, edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
add rax, rdx
cmp rax, qword [rdi + 0x10]
jae 0x1400020f0
mov rcx, rsi
call fcn.140002e10
mov rax, qword [rdi + 0x18]
mov r8, rax
cmp rax, r8
jb 0x1400020f5
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000214c
call sub.msvcrt.dll_fclose
mov qword [rdi], 0
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rdi + 0x78]
lea rdx, [0x14001a1a0]
call fcn.1400044f0
mov qword [rdi], rax
mov rcx, rax
test rax, rax
jne 0x140001fd6
jmp 0x14000219b
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.140002f90
mov ebx, 0xffffffff
jmp 0x14000214c
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.140002f90
jmp 0x14000219b
lea rcx, str.Error_on_file._n
call fcn.140002e10
jmp 0x14000219b
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.140002f90
jmp 0x14000219b
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, [0x14001a0e2]
call fcn.140002f90
jmp 0x14000219b