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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003c60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003c60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002ed0
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002deb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002dd0
mov rcx, rbx
call fcn.1400037f0
mov rdi, rax
test rax, rax
je 0x140002ef2
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003930
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ed7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e80
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d30
nop dword [rax]
xor esi, esi
jmp 0x140002df8
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003460
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x1400034bc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400034b3
test rsi, rsi
je 0x1400034b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003498
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400037f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400059e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003810
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003818
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003810
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000386d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003864
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003810
add rax, 0x28
cmp rax, r9
jne 0x140003850
xor eax, eax
ret

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400059e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003898
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000388f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003930
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400059e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000394f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003958
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000c510
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r10, rcx
test edx, edx
je 0x14000c546
mov r9, rcx
mov rax, r9
lea rcx, [0x140068800]
sub rax, r10
and eax, 0xf
mov cl, byte [rax + rcx]
xor cl, byte [r9]
xor cl, r8b
inc r8d
not cl
mov byte [r9], cl
inc r9
cmp r8d, edx
jb 0x14000c51d
ret
Function at 0x140059b1c
Capabilities:
Parse pe header

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
xor r12d, r12d
mov r14d, 1
cmp qword [0x1400b6678], r12
jne 0x140059c7d
xor ecx, ecx
call fcn.1400604cc
mov rcx, rax
mov rdi, rax
call fcn.14005a7b4
test al, al
jne 0x140059b6d
mov eax, r14d
jmp 0x140059ce6
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x140059b81
mov eax, 2
jmp 0x140059ce6
cmp dword [rdi + 0x3c], 0x400
jl 0x140059b94
mov eax, 3
jmp 0x140059ce6
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
je 0x140059bad
mov eax, 4
jmp 0x140059ce6
mov qword [0x1400b6678], r12
movzx r15d, r12w
movzx esi, word [rbx + 0x14]
add rsi, rbx
cmp r12w, word [rbx + 6]
jae 0x140059c9b
movsx rax, r15w
lea rbp, [rax + rax*4]
mov eax, dword [rsi + rbp*8 + 0x3c]
test eax, 0x22000020
jne 0x140059c05
and eax, 0xc0000000
cmp eax, 0xc0000000
jne 0x140059c05
cmp dword [rsi + rbp*8 + 0x20], 0x10
jb 0x140059c05
mov eax, dword [rsi + rbp*8 + 0x24]
test eax, eax
je 0x140059c05
lea rcx, [rdi + rax]
call fcn.14005a7b4
test al, al
jne 0x140059c34
movzx ecx, word [rbx + 6]
add r15w, r14w
movsx eax, r15w
cmp eax, ecx
jl 0x140059bca
mov rcx, qword [0x1400b6678]
test rcx, rcx
je 0x140059c9b
call fcn.14005a7b4
test al, al
jne 0x140059c4f
mov eax, 6
jmp 0x140059ce6
mov eax, dword [rsi + rbp*8 + 0x24]
mov ecx, dword [rsi + rbp*8 + 0x20]
add rax, rdi
add rcx, 0xfffffffffffffff0
add rcx, rax
mov qword [0x1400b6678], rcx
jmp 0x140059c1c
mov rdx, qword [0x1400b6678]
lea rcx, [0x1400b6668]
mov r8d, 0x10
call sub.ntdll.dll_memcpy
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [0x1400b6680], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x4000
call fcn.140059d48
test eax, eax
jne 0x140059ca2
mov eax, 7
jmp 0x140059ce6
mov eax, 5
jmp 0x140059ce6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, r14d
call fcn.140059d98
test eax, eax
jne 0x140059cbe
mov eax, 8
jmp 0x140059ce6
mov rax, qword [0x1400b6678]
movabs rcx, 0xcccccccc1000029d
mov qword [rax], rcx
lea rcx, [0x1400b65f0]
mov rax, qword [0x1400b6678]
mov qword [rax + 8], rcx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14005c520
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
lea rdx, [rsp + 0x40]
mov rbx, rcx
call fcn.14000c318
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call fcn.1400466c8
mov rdx, rax
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp rdx, 0xffffffffffffffff
jne 0x14005c5a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14005c59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x14005c59e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
jne 0x14005c5bd
xor al, al
jmp 0x14005c5ac
mov rcx, rdx
call fcn.140009de8
mov al, 1
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, [0x14009fb84]
mov r8d, eax
call fcn.14005dfe0
call fcn.140061634
int3

Function at 0x1400606c4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rsi, rdx
mov rbx, rcx
mov edx, dword [rax + rcx + 0x88]
test edx, edx
je 0x1400607a5
cmp dword [rax + rcx + 0x8c], 0
je 0x1400607a5
call 0x140061e5c
mov r14d, eax
mov rcx, rbx
add r14, rbx
mov edx, dword [r14 + 0x20]
call 0x140061e5c
mov edx, dword [r14 + 0x24]
mov rcx, rbx
mov r13d, eax
add r13, rbx
call 0x140061e5c
mov edx, dword [r14 + 0x1c]
mov rcx, rbx
mov r15d, eax
add r15, rbx
call 0x140061e5c
mov r12d, eax
xor edi, edi
add r12, rbx
cmp dword [r14 + 0x18], edi
jbe 0x1400607b7
mov edx, dword [r13 + rdi*4]
mov rcx, rbx
call 0x140061e5c
mov edx, eax
mov rcx, rsi
add rdx, rbx
call fcn.140046db8
test al, al
jne 0x140060778
inc edi
cmp edi, dword [r14 + 0x18]
jae 0x1400607b7
jmp 0x140060750
movzx edx, word [r15 + rdi*2]
mov rcx, rbx
mov edx, dword [r12 + rdx*4]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp 0x140061e5c
lea rcx, [0x14009fdb2]
call fcn.14005dfe0
call fcn.140061634
int3
mov rdx, rsi
lea rcx, [0x14009fe28]
call fcn.14005dfe0
call fcn.140061634
int3
push rbx
sub rsp, 0x20
movsxd r10, dword [rcx + 0x3c]
xor r8d, r8d
add r10, rcx
mov r11d, edx
movzx ebx, word [r10 + 6]
test rbx, rbx
je 0x140061eb8
lea r9, [r10 + 0x110]
mov edx, dword [r9 + 4]
cmp r11d, edx
jb 0x140061e93
mov ecx, dword [r9]
add ecx, edx
cmp r11d, ecx
jb 0x140061ea1
inc r8
add r9, 0x28
cmp r8, rbx
jae 0x140061eb8
jmp 0x140061e80
lea rax, [r8 + r8*4]
mov eax, dword [r10 + rax*8 + 0x11c]
sub eax, edx
add eax, r11d
add rsp, 0x20
pop rbx
ret
lea rcx, [0x14009fd94]
call fcn.14005dfe0
call fcn.140061634
int3
Function at 0x1400607cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r15, rdx
lea rdx, [rsp + 0x20]
call fcn.14000c340
lea rcx, [rsp + 0x20]
call fcn.14006055c
mov rdi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rdi + 0x88]
test ecx, ecx
je 0x140060892
cmp dword [rax + rdi + 0x8c], 0
je 0x140060892
lea rbx, [rdi + rcx]
mov r14d, dword [rbx + 0x24]
mov esi, dword [rbx + 0x1c]
add r14, rdi
add rsi, rdi
cmp r15, 0x10000
jae 0x14006085e
mov eax, dword [rsi + r15*4 - 4]
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r12d, dword [rbx + 0x20]
xor ebp, ebp
add r12, rdi
cmp dword [rbx + 0x18], ebp
jbe 0x1400608a4
mov edx, dword [r12 + rbp*4]
mov rcx, r15
add rdx, rdi
call sub.ntdll.dll_strcmp
test eax, eax
je 0x140060888
inc ebp
cmp ebp, dword [rbx + 0x18]
jae 0x1400608a4
jmp 0x14006086c
movzx eax, word [r14 + rbp*2]
mov eax, dword [rsi + rax*4]
jmp 0x14006083d
lea rcx, [0x14009fe8e]
call fcn.14005dfe0
call fcn.140061634
int3
lea rcx, [0x14009ff0a]
call fcn.14005dfe0
call fcn.140061634
int3

Function at 0x1400609cc
Capabilities:
Enumerate processes

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, 0x150
and dword [rcx], 0
xor edx, edx
mov r15, rcx
mov dword [rsp + 0x20], 0x130
xor r14d, r14d
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140060ac6
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140060ae0
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc r14d
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140060a29
mov eax, r14d
imul rcx, rax, 0x130
call fcn.14005d8f4
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r12, rax
xor ebp, ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140060afa
mov eax, ebp
lea rsi, [rsp + 0x20]
imul rdi, rax, 0x130
inc ebp
mov ecx, 0x130
add rdi, r12
rep movsb byte [rdi], byte [rsi]
cmp ebp, r14d
jae 0x140060a96
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140060a66
mov rcx, rbx
call fcn.140009de8
lea r11, [rsp + 0x150]
mov dword [r15], ebp
mov rbx, qword [r11 + 0x20]
mov rax, r12
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14009fcb2]
call fcn.14005dfe0
call fcn.140061634
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14009fcf4]
call fcn.14005dfe0
call fcn.140061634
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14009fd36]
call fcn.14005dfe0
call fcn.140061634
int3
Function at 0x4015e0
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, [0x00411003]
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.00408ab0
test eax, eax
mov ebx, eax
jne 0x40187a
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x401830
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rdi, rax
je 0x401850
mov r15d, dword [r12 + 8]
cmp r15, 0x2000
mov r9, qword [r14]
mov edx, 1
mov rcx, rsi
mov r13d, 0x2000
cmovbe r13, r15
mov r8, r13
call sub.msvcrt.dll_fread
cmp r13, rax
jne 0x401870
mov rcx, qword [r14]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401870
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.00408b50
cmp eax, 0xfffffffc
mov ebx, eax
jl 0x401755
cmp eax, 0xfffffffe
jle 0x401750
cmp eax, 2
jne 0x401755
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.00402b10
mov rcx, rbp
call fcn.0040a7a0
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 0x401703
mov eax, dword [rsp + 0x48]
mov r11d, 0x2000
sub r11, rax
mov r9, rax
cmp qword [rsp + 0xf0], 0
je 0x4017f0
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 r11, rax
jne 0x401898
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401898
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x4016d5
mov r10d, ebx
sub r15, r13
mov ebx, dword [rsp + 0x28]
cmp r10d, 1
je 0x4017db
test r15, r15
jne 0x40168a
cmp r10d, 1
je 0x40171c
jmp 0x401703
cmp qword [rsp + 0xf8], 0
je 0x4017b9
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 0x4017b9
lea r8, [r12 + 0x12]
xor edi, edi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, [0x0041109a]
call fcn.00402c90
jmp 0x40171c
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, [0x0041109a]
call fcn.00402c90
jmp 0x40171c
mov ebx, 0xffffffff
jmp 0x40171c
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.00402b10
jmp 0x401734
mov r10d, 0xffffffff
jmp 0x401703
Function at 0x401920
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx]
mov rbp, rdx
test rcx, rcx
je 0x401a40
mov edx, dword [rbp + 4]
xor r8d, r8d
add edx, dword [rsi + 8]
call fcn.0040e870
test eax, eax
js 0x401a54
mov ebx, dword [rbp + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
mov r12, rax
je 0x401a73
cmp byte [rbp + 0x10], 1
je 0x401a10
test rbx, rbx
mov r13, rax
mov r14d, 0x2000
jne 0x4019b8
mov rcx, qword [rsi]
test rcx, rcx
je 0x401999
call sub.msvcrt.dll_fclose
mov qword [rsi], 0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add r13, rdi
sub rbx, rdi
je 0x401985
cmp rbx, 0x2000
mov rdi, r14
mov r9, qword [rsi]
mov rcx, r13
cmovbe rdi, rbx
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x4019b0
lea r8, [rbp + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402c90
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
mov rcx, qword [rsi]
test rcx, rcx
jne 0x40198d
jmp 0x401999
xor r8d, r8d
mov r9, rax
mov rdx, rbp
mov rcx, rsi
call fcn.004015e0
test eax, eax
jne 0x4019f6
mov rcx, qword [rsi]
test rcx, rcx
jne 0x40198d
jmp 0x401999
mov rcx, rsi
call fcn.004015b0
test eax, eax
jne 0x401a92
mov rcx, qword [rsi]
jmp 0x401940
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.00402c90
jmp 0x401999
lea r8, [rbp + 0x12]
mov r9d, ebx
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, [0x0041109a]
call fcn.00402c90
jmp 0x401985
lea rdx, [rbp + 0x12]
xor r12d, r12d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402b10
jmp 0x401999
Function at 0x401ab0
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
mov rbx, rcx
mov rsi, rdx
call fcn.004073a0
cmp eax, 0xffffffff
mov edi, eax
je 0x401bf1
lea r12, [rsi + 0x12]
lea rcx, [rbx + 0x3078]
mov rdx, r12
call fcn.004075e0
test rax, rax
mov rbp, rax
je 0x401c7d
mov rcx, qword [rbx]
test rcx, rcx
je 0x401c10
mov edx, dword [rsi + 4]
xor r8d, r8d
add edx, dword [rbx + 8]
call fcn.0040e870
test eax, eax
js 0x401c44
cmp byte [rsi + 0x10], 1
je 0x401bc2
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov r13, rax
je 0x401c9d
mov esi, dword [rsi + 0xc]
mov r14d, 0x2000
test rsi, rsi
jne 0x401b76
jmp 0x401c02
mov r9, rbp
mov r8d, 1
mov rdx, rdi
mov rcx, r13
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401c24
sub rsi, rdi
je 0x401c02
cmp rsi, 0x2000
mov rdi, r14
mov r9, qword [rbx]
mov rcx, r13
cmovbe rdi, rsi
mov r8d, 1
mov rdx, rdi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x401b50
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
mov r8, r12
mov edi, 0xffffffff
lea rcx, str.fread
call fcn.00402c90
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x401bd5
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.004015e0
mov edi, eax
mov rcx, qword [rbx]
test rcx, rcx
je 0x401be9
call sub.msvcrt.dll_fclose
mov qword [rbx], 0
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov eax, edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor edi, edi
jmp 0x401bb8
mov rcx, rbx
call fcn.004015b0
test eax, eax
jne 0x401c64
mov rcx, qword [rbx]
jmp 0x401aff
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
mov r8, r12
mov edi, 0xffffffff
lea rcx, str.fwrite
call fcn.00402c90
jmp 0x401bb8
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
mov r8, r12
mov edi, 0xffffffff
lea rcx, str.fseek
call fcn.00402c90
jmp 0x401bd5
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
mov rdx, r12
mov edi, 0xffffffff
call fcn.00402b10
jmp 0x401bd5
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
mov r8, r12
mov edi, 0xffffffff
lea rcx, str.fopen
call fcn.00402c90
jmp 0x401bf1
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
mov r8, r12
mov edi, 0xffffffff
lea rcx, [0x0041109a]
call fcn.00402c90
jmp 0x401bd5
Function at 0x401cc0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x401e51
mov rax, qword [0x00417740]
lea rdx, [rsp + 0x28]
mov r8d, 8
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
shr rax, 0x18
add eax, 0xc
mov byte [rsp + 0x2b], al
call fcn.00407d00
test rax, rax
mov rsi, rax
je 0x401e78
mov rcx, qword [rbx]
xor r8d, r8d
mov edx, eax
call fcn.0040e870
test eax, eax
js 0x401e65
mov r9, qword [rbx]
lea rcx, [rbx + 0x20]
mov r8d, 1
mov edx, 0x58
call sub.msvcrt.dll_fread
test rax, rax
je 0x401e80
mov ecx, dword [rbx + 0x30]
add rsi, 0x58
xor r8d, r8d
mov dword [rbx + 0x507c], 0
mov eax, dword [rbx + 0x28]
mov edx, dword [rbx + 0x2c]
bswap ecx
mov dword [rbx + 0x30], ecx
mov ecx, dword [rbx + 0x34]
bswap eax
mov dword [rbx + 0x28], eax
mov eax, eax
sub rsi, rax
bswap edx
mov dword [rbx + 0x2c], edx
mov qword [rbx + 8], rsi
add edx, esi
bswap ecx
mov dword [rbx + 0x34], ecx
mov dword [0x0041b040], ecx
mov rcx, qword [rbx]
call fcn.0040e870
movsxd rsi, dword [rbx + 0x30]
mov rcx, rsi
call sub.msvcrt.dll_malloc
test rax, rax
mov qword [rbx + 0x10], rax
je 0x401ec7
mov r9, qword [rbx]
mov r8d, 1
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_fread
test rax, rax
je 0x401e9a
movsxd rax, dword [rbx + 0x30]
add rax, qword [rbx + 0x10]
mov rcx, qword [rbx]
mov qword [rbx + 0x18], rax
call sub.msvcrt.dll_ferror
test eax, eax
mov esi, eax
jne 0x401eb4
mov rax, qword [rbx + 0x10]
lea rdi, str.Cannot_read_Table_of_Contents._n
mov r8, qword [rbx + 0x18]
nop
cmp rax, r8
jae 0x401e33
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 [rbx + 0x10]
jae 0x401df0
mov rcx, rdi
call fcn.00402b10
mov rax, qword [rbx + 0x18]
mov r8, rax
cmp rax, r8
jb 0x401df5
mov rcx, qword [rbx]
test rcx, rcx
je 0x401e47
call sub.msvcrt.dll_fclose
mov qword [rbx], 0
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call fcn.004015b0
test eax, eax
jne 0x401e78
mov rcx, qword [rbx]
jmp 0x401cd6
lea rdx, str.Failed_to_seek_to_cookie_position__n
lea rcx, str.fseek
call fcn.00402c90
mov esi, 0xffffffff
jmp 0x401e47
lea rdx, str.Failed_to_read_cookie__n
mov esi, 0xffffffff
lea rcx, str.fread
call fcn.00402c90
jmp 0x401e47
lea rdx, str.Could_not_read_full_TOC__n
mov esi, 0xffffffff
lea rcx, str.fread
call fcn.00402c90
jmp 0x401e47
lea rcx, str.Error_on_file._n
mov esi, 0xffffffff
call fcn.00402b10
jmp 0x401e47
lea rdx, str.Could_not_allocate_buffer_for_TOC__n
mov esi, 0xffffffff
lea rcx, [0x0041109a]
call fcn.00402c90
jmp 0x401e47
Function at 0x405c00
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx + 0x18]
mov rbx, rcx
jb 0x405c22
jmp 0x405c35
call fcn.004018e0
cmp qword [rbx + 0x18], rax
mov rdx, rax
jbe 0x405c35
cmp byte [rdx + 0x11], 0x6c
mov rcx, rbx
jne 0x405c14
add rsp, 0x20
pop rbx
jmp fcn.00401920
xor eax, eax
add rsp, 0x20
pop rbx
ret