joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049b20
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140049c87
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x140049b32
cmp edx, ecx
jne 0x140049c75
nop word [rax + rax]
test rsi, rsi
jne 0x140049c75
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x140049b94
nop
call fcn.14006dec0
xorps xmm15, xmm15
mov r14, qword [0x140675318]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.140049a40
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x140049c70
mov rdx, qword [0x1405eee58]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x140049c65
mov rcx, qword [0x1405eee50]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x1405f1650]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x1405f1650], rax
nop
mov edx, 1
lea rsi, [0x1405f1658]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1248]
shr rdx, 0x3d
test dl, dl
jne 0x140049c53
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1248], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x14030c3f8]
mov ebx, 0x28
nop
call fcn.140039a80
mov rax, rsi
mov rcx, rdx
call fcn.14006c5a0
call fcn.140038300
lea rax, [0x14030a39c]
mov ebx, 0x23
call fcn.140039a80
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.14006a2a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.140049b20
Function at 0x140057240
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x1400573b7
movzx edx, byte [rax]
test edx, edx
jne 0x140057274
nop dword [rax]
test r8b, r8b
jne 0x140057274
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x140057287
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x140057377
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x140057365
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x140057357
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x1400572dd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x140057320
mov eax, 1
cmp rax, rbx
ja 0x14005730b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.14006c660
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x14005734f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x140057313
mov rcx, r11
mov eax, r12d
jmp 0x1400572e2
mov rcx, rbx
call fcn.14006c5a0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.14006c5a0
mov eax, r8d
mov rcx, rbx
call fcn.14006c660
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x1400573ad
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x140057370
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x14005728d
mov eax, edx
mov rcx, rbx
call fcn.14006c5a0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.14006c5a0
nop
int3

Function at 0x14005d3c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005d475
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.14005b040
nop
test bl, bl
je 0x14005d46f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x14005d4c0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.14006a180
xorps xmm15, xmm15
mov r14, qword [0x140675318]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.14006a2a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.14005d3c0
Function at 0x1400603e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14006048f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x1400604e0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.14006a180
xorps xmm15, xmm15
mov r14, qword [0x140675318]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.14006a2a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.1400603e0
Function at 0x140228f00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1405de480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140228f20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140228f28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140228f20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140228f75
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140228f6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140228f20
add rax, 0x28
cmp rax, r9
jne 0x140228f58
xor eax, eax
ret

Function at 0x140228f80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405de480]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140228fa0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140228fa8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140228fa0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140229030
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405de480]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140229050
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140229058
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x2fc4d7f00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d8902
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d899a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d897e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8972
cmp qword [rbp - 0x10], 0
je 0x2fc4d8972
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8938
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d899b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8aa0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d8ac8
mov eax, 0
jmp 0x2fc4d8b16
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 0x2fc4d8af1
mov eax, 0
jmp 0x2fc4d8b16
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8b11
mov eax, 0
jmp 0x2fc4d8b16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb620
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cc022
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cc0ba
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cc09e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cc092
cmp qword [rbp - 0x10], 0
je 0x2fc4cc092
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cc058
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cc0bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cc1c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cc1e8
mov eax, 0
jmp 0x2fc4cc236
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 0x2fc4cc211
mov eax, 0
jmp 0x2fc4cc236
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cc231
mov eax, 0
jmp 0x2fc4cc236
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cc23c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cc2ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cc2b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cc2b1
mov rax, qword [rbp - 8]
jmp 0x2fc4cc2cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cc284
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x4015a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x30]
mov qword [rsp + 0xf0], r8
mov r14, rcx
mov r12, rdx
lea rdx, section..rdata
mov r8d, 0x58
mov rcx, rbp
mov qword [rsp + 0xf8], r9
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call fcn.0040a010
test eax, eax
mov ebx, eax
jne 0x40183a
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x4017f0
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rdi, rax
je 0x401810
mov r15d, dword [r12 + 8]
cmp r15, 0x2000
mov r13d, 0x2000
mov r9, r14
cmovbe r13, r15
mov edx, 1
mov rcx, rsi
mov r8, r13
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x401830
mov rcx, r14
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401830
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 0x2000
call fcn.0040a0b0
cmp eax, 0xfffffffc
mov ebx, eax
jl 0x401715
cmp eax, 0xfffffffe
jle 0x401710
cmp eax, 2
jne 0x401715
mov r10d, 0xfffffffd
lea rdx, [r12 + 0x12]
mov r8d, r10d
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00402970
mov rcx, rbp
call fcn.0040bd00
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10d, eax
jmp 0x4016c3
mov eax, dword [rsp + 0x48]
mov r11d, 0x2000
sub r11, rax
mov r9, rax
cmp qword [rsp + 0xf0], 0
je 0x4017b0
mov r8, r11
mov edx, 1
mov rcx, rdi
mov qword [rsp + 0x20], r11
mov r9, qword [rsp + 0xf0]
call sub.msvcrt.dll_fwrite
mov r11, qword [rsp + 0x20]
cmp rax, r11
jne 0x401858
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401858
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x401695
mov r10d, ebx
sub r15, r13
mov ebx, dword [rsp + 0x28]
cmp r10d, 1
je 0x40179b
test r15, r15
jne 0x40164a
cmp r10d, 1
je 0x4016dc
jmp 0x4016c3
cmp qword [rsp + 0xf8], 0
je 0x401779
mov rcx, qword [rsp + 0xf8]
mov r8, r11
mov rdx, rdi
mov qword [rsp + 0x20], r11
mov dword [rsp + 0x2c], eax
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x20]
mov r9d, dword [rsp + 0x2c]
add qword [rsp + 0xf8], r11
jmp 0x401779
lea r8, [r12 + 0x12]
xor edi, edi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.00402a30
jmp 0x4016dc
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.00402a30
jmp 0x4016dc
mov ebx, 0xffffffff
jmp 0x4016dc
lea rdx, [r12 + 0x12]
mov r8d, eax
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00402970
jmp 0x4016f4
mov r10d, 0xffffffff
jmp 0x4016c3
Function at 0x4018b0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rdx
mov rbx, rcx
lea rdx, [0x0041112c]
call fcn.00404190
test rax, rax
mov rsi, rax
je 0x4019d0
mov edx, dword [rbp + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call fcn.0040eb50
test eax, eax
js 0x4019b0
mov ebx, dword [rbp + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
mov r12, rax
je 0x4019e5
cmp byte [rbp + 0x10], 1
je 0x401990
test rbx, rbx
mov r13, rax
mov r14d, 0x2000
jne 0x40192d
jmp 0x401976
add r13, rdi
sub rbx, rdi
je 0x401976
cmp rbx, 0x2000
mov rdi, r14
mov r9, rsi
cmovbe rdi, rbx
mov r8d, 1
mov rcx, r13
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401925
lea r8, [rbp + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402a30
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r8d, r8d
mov r9, rax
mov rdx, rbp
mov rcx, rsi
call fcn.004015a0
test eax, eax
je 0x401976
jmp 0x40196b
lea r8, [rbp + 0x12]
xor r12d, r12d
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402a30
jmp 0x401976
lea rdx, [rbp + 0x12]
xor r12d, r12d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402970
jmp 0x40197e
lea r8, [rbp + 0x12]
mov r9d, ebx
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.00402a30
jmp 0x401976
Function at 0x401a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x11], 0x6e
mov rbx, rcx
mov rdi, rdx
je 0x401b30
lea rdx, [0x00411254]
mov rcx, r8
call fcn.00404190
test rax, rax
mov r12, rax
je 0x401c22
lea rdx, [0x0041112c]
mov rcx, rbx
call fcn.00404190
test rax, rax
mov rbp, rax
je 0x401bb2
mov edx, dword [rdi + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call fcn.0040eb50
test eax, eax
js 0x401c01
cmp byte [rdi + 0x10], 1
je 0x401b71
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov r13, rax
je 0x401c43
mov ebx, dword [rdi + 0xc]
test rbx, rbx
je 0x401bd0
mov r14d, 0x2000
jmp 0x401ada
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r13
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401be0
sub rbx, rsi
je 0x401bd0
cmp rbx, 0x2000
mov rsi, r14
mov r9, rbp
cmovbe rsi, rbx
mov r8d, 1
mov rcx, r13
mov rdx, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401ab4
lea r8, [rdi + 0x12]
mov ebx, 0xffffffff
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402a30
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x401b84
mov qword [rsp + 0x70], r8
call fcn.004018b0
test rax, rax
mov rsi, rax
je 0x401b96
mov r8, qword [rsp + 0x70]
mov rcx, rax
mov rdx, r8
call fcn.00404230
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
js 0x401ba0
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call fcn.004015a0
mov ebx, eax
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rcx, r12
call sub.msvcrt.dll_fclose
jmp 0x401b60
mov ebx, 0xffffffff
nop dword [rax + rax]
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.00402970
jmp 0x401b60
lea rdx, [rdi + 0x12]
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402970
jmp 0x401b8c
xor ebx, ebx
jmp 0x401b1d
lea r8, [rdi + 0x12]
mov ebx, 0xffffffff
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.00402a30
jmp 0x401b1d
lea r8, [rdi + 0x12]
mov ebx, 0xffffffff
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402a30
jmp 0x401b84
lea r8, [rdi + 0x12]
mov ebx, 0xffffffff
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.00402a30
jmp 0x401b60
lea r8, [rdi + 0x12]
or ebx, 0xffffffff
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.00402a30
jmp 0x401b84
Function at 0x401c70
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rdx, [0x0041112c]
mov rbp, rcx
call fcn.00404190
test rax, rax
mov rbx, rax
je 0x401e92
mov rax, qword [0x00416820]
lea r12, [rsp + 0x20]
mov r8d, 8
xor esi, esi
mov rdx, r12
mov rcx, rbx
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x23], al
call fcn.00407ba0
test rax, rax
mov rdi, rax
jne 0x401ce5
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rax, rsi
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.0040eb50
test eax, eax
js 0x401ea2
mov r9, rbx
mov r8d, 1
mov edx, 0x58
mov rcx, r12
call sub.msvcrt.dll_fread
test rax, rax
je 0x401ec0
mov edx, 0x1060
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rsi, rax
je 0x401ee0
mov r9, rbp
mov edx, 0x1000
mov rcx, rax
lea r8, [0x00411129]
call fcn.00401870
mov eax, dword [rsp + 0x28]
lea r9, [r12 + 0x18]
mov edx, 0x40
lea rcx, [rsi + 0x1020]
lea r8, [0x00411129]
bswap eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
bswap eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x30]
bswap eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x34]
bswap eax
mov dword [rsi + 0x101c], eax
mov dword [rsp + 0x34], eax
call fcn.00401870
mov eax, dword [rsp + 0x28]
xor r8d, r8d
mov rcx, rbx
sub rdi, rax
lea rdx, [rdi + 0x58]
mov qword [rsi + 0x1000], rdx
add edx, dword [rsp + 0x2c]
call fcn.0040eb50
mov edi, dword [rsp + 0x30]
mov rcx, rdi
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [rsi + 0x1008], rax
je 0x401f20
mov r9, rbx
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_fread
test rax, rax
je 0x401f00
mov eax, dword [rsp + 0x30]
mov rcx, rbx
add rax, qword [rsi + 0x1008]
mov qword [rsi + 0x1010], rax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401f40
mov rax, qword [rsi + 0x1008]
mov r8, qword [rsi + 0x1010]
cmp rax, r8
jae 0x401ccf
movzx r9d, byte [rsi + 0x1018]
mov r10d, 1
nop word [rax + rax]
mov ecx, dword [rax + 4]
movzx edi, byte [rax + 0x11]
mov edx, dword [rax]
bswap ecx
mov dword [rax + 4], ecx
mov ecx, dword [rax + 8]
bswap edx
mov dword [rax], edx
bswap ecx
mov dword [rax + 8], ecx
mov ecx, dword [rax + 0xc]
bswap ecx
mov dword [rax + 0xc], ecx
lea ecx, [rdi - 0x5a]
cmp cl, 0x1e
ja 0x401e7c
mov rdi, r10
shl rdi, cl
test edi, 0x40100501
setne cl
or r9d, ecx
mov edx, edx
add rax, rdx
cmp rax, r8
jb 0x401e40
mov byte [rsi + 0x1018], r9b
jmp 0x401ccf
xor esi, esi
mov rax, rsi
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.00402a30
jmp 0x401ccf
lea rdx, str.Failed_to_read_cookie__n
lea rcx, str.fread
call fcn.00402a30
jmp 0x401ccf
lea rdx, str.Could_not_allocate_memory_for_archive_structure__n
lea rcx, [0x0041138a]
call fcn.00402a30
jmp 0x401ccf
lea rdx, str.Could_not_read_full_TOC__n
lea rcx, str.fread
call fcn.00402a30
jmp 0x401ccf
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
lea rcx, str.malloc
call fcn.00402a30
jmp 0x401ccf
lea rcx, str.Error_on_file._n
call fcn.00402970
jmp 0x401ccf