joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006cbc
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140005530
lea rdx, [0x14002cb88]
mov rcx, rbx
call fcn.140004084
lea rdx, [0x14002cba8]
mov rcx, rbx
call fcn.140004170
mov rcx, rbx
call fcn.14000425c
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140005530

Function at 0x140006d00
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140005530
lea rdx, [0x14002cce0]
mov rcx, rbx
call fcn.140003f98
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140006cbc
Function at 0x14000748c
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx]
mov edx, 0x3a
cmp word [rcx + 2], dx
jne 0x140007672
lea r8d, [rdx + 0x22]
cmp word [rcx + 4], r8w
je 0x1400074cc
cmp word [rcx + 4], 0x2f
jne 0x140007672
movzx eax, word [rcx]
lea rcx, [rbp + 0x28]
xor r12d, r12d
mov dword [rbp + 0x2a], 0x5c003a
mov word [rbp + 0x2e], r12w
mov word [rbp + 0x28], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x14000766f
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rbp - 0x20]
call fcn.140005244
mov rcx, qword [rbp - 0x20]
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140007666
lea rcx, [rbp - 0x30]
call fcn.140019458
lea rdx, str.:Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.140019528
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1400196a4
lea rdx, [0x140027338]
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rdx, str.if_exist__
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1400196a4
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rdx, str.del__
lea rcx, [rbp - 0x30]
call fcn.14001963c
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400196a4
lea rdx, [0x140027338]
lea rcx, [rbp - 0x30]
call fcn.14001963c
mov ebx, dword [rbp - 0x28]
lea r8d, [r12 + 1]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.1400053d8
lea r9, [rbp + 0x20]
mov r8d, ebx
mov rdx, qword [rax]
mov rcx, rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp - 0x10]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140007654
mov eax, dword [rbp - 0x28]
cmp dword [rbp + 0x20], eax
jne 0x140007654
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8, qword [rbp - 0x20]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14000765d
mov rcx, qword [rbp - 0x20]
call fcn.140003e34
mov rcx, qword [rbp - 0x30]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rbp - 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rdi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400077e8
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
cmp dword [0x14002cb80], ebx
jle 0x140007852
mov edi, ebx
mov rax, qword [0x14002cb78]
lea rcx, [rsp + 0x20]
mov rdx, qword [rdi + rax]
add rdx, 0x10
call fcn.1400194ec
lea rcx, [rsp + 0x20]
call fcn.140006d00
mov r11, qword [0x14002cb78]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rdi + r11]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
inc ebx
add rdi, 8
cmp ebx, dword [0x14002cb80]
jl 0x1400077fe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008eb8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
mov qword [rbx], rax
call fcn.140008e24
add rsp, 0x30
pop rbx
ret

Function at 0x140008fd0
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x14002cb88]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor edi, edi
cmp dword [rbx + 0x10], edi
je 0x14000902d
mov eax, dword [0x14002cb90]
cmp dword [rbx + 0x10], eax
jne 0x140009024
mov rax, qword [rbx + 8]
mov rdx, qword [0x14002cb88]
sub rdx, rax
movzx ecx, word [rax]
movzx r8d, word [rax + rdx]
sub ecx, r8d
jne 0x140009020
add rax, 2
test r8d, r8d
jne 0x14000900a
test ecx, ecx
je 0x14000902d
mov rcx, qword [rbx + 8]
call fcn.140003e34
mov rax, qword [rbx + 8]
mov dword [rbx + 0x10], edi
mov rbx, qword [rsp + 0x30]
mov word [rax], di
mov al, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14000b5d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14000b646
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14000b646
mov rbx, qword [rsi + 8]
mov rdx, qword [0x14002caf0]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005ec8
mov ecx, 0x2d
call fcn.140004aa0
mov rcx, qword [rsi + 8]
mov edx, 0x4b2
mov rdi, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
call fcn.140005ec8
jmp 0x14000b665
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14000a7cc]
mov r9, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000bd40
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400044fc
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.140009abc
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.140009abc
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x2b0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x300]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x300]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x40]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000a474]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000b8c8
mov rcx, rdi
mov ebx, eax
call fcn.14000abc4
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000fb40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
mov r10d, dword [r9]
xor esi, esi
mov r13, r9
and r10d, 7
mov r12d, r8d
mov rdi, rcx
mov r11d, esi
cmp rdx, 5
jae 0x14000fb7a
xor eax, eax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r13
pop r12
ret
mov qword [rsp + 0x20], rbp
mov ebp, dword [rsp + 0x38]
lea r9, [rcx + rdx - 4]
mov qword [rsp + 0x18], rbx
nop dword [rax]
lea rdx, [r11 + rdi]
cmp rdx, r9
jae 0x14000fbb1
nop dword [rax]
movzx eax, byte [rdx]
and al, 0xfe
cmp al, 0xe8
je 0x14000fbb1
inc rdx
cmp rdx, r9
jb 0x14000fba0
mov rax, rdx
sub rax, r11
mov r11, rdx
sub r11, rdi
sub rax, rdi
cmp rdx, r9
jae 0x14000fcac
cmp rax, 2
jbe 0x14000fc12
mov r10d, esi
movzx r8d, byte [rdx + 4]
lea eax, [r8 + 1]
test al, 0xfe
jne 0x14000fc3a
movzx eax, byte [rdx + 3]
shl r8d, 8
lea ebx, [r11 + r12 + 5]
or r8d, eax
movzx eax, byte [rdx + 2]
add r11, 5
shl r8d, 8
or r8d, eax
movzx eax, byte [rdx + 1]
shl r8d, 8
or r8d, eax
test ebp, ebp
je 0x14000fc49
add r8d, ebx
jmp 0x14000fc4c
mov ecx, eax
shr r10d, cl
test r10d, r10d
je 0x14000fbd2
cmp r10d, 4
ja 0x14000fc3a
cmp r10d, 3
je 0x14000fc3a
mov eax, r10d
shr eax, 1
inc eax
movzx ecx, byte [rax + rdx]
inc ecx
test cl, 0xfe
jne 0x14000fbd2
or r10d, 8
shr r10d, 1
inc r11
jmp 0x14000fb90
sub r8d, ebx
test r10d, r10d
je 0x14000fc82
and r10d, 6
mov eax, r8d
shl r10d, 2
mov ecx, r10d
shr eax, cl
inc eax
test al, 0xfe
jne 0x14000fc7f
mov eax, 0x100
shl eax, cl
dec eax
xor r8d, eax
test ebp, ebp
je 0x14000fc7c
add r8d, ebx
jmp 0x14000fc7f
sub r8d, ebx
mov r10d, esi
mov eax, r8d
mov byte [rdx + 1], r8b
shr eax, 8
mov byte [rdx + 2], al
mov eax, r8d
shr r8d, 0x18
shr eax, 0x10
and r8b, 1
neg r8b
mov byte [rdx + 3], al
mov byte [rdx + 4], r8b
jmp 0x14000fb90
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
cmp rax, 2
ja 0x14000fcc4
mov ecx, eax
shr r10d, cl
mov esi, r10d
mov rdi, qword [rsp + 0x30]
mov dword [r13], esi
mov rsi, qword [rsp + 0x28]
mov rax, r11
pop r13
pop r12
ret

Function at 0x140018754
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140018784
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140018784
xor al, al
jmp 0x140018797
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001880c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x14002c9c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x14001880c
Function at 0x140018840
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x14002c9c0]
cmp r8d, eax
cmova r8d, eax
jmp 0x14001880c

Function at 0x140018874
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14002c9c0]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
cmova r8d, eax
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140018924
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.1400187a4
test al, al
jne 0x14001894e
xor al, al
jmp 0x140018963
cmp qword [rsp + 0x40], rdi
jne 0x14001894a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140023480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
lea r10, [0x14002f280]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
inc edx
shr eax, 1
and ecx, 1
add r8, 4
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x140023492
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x140023580
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
dec r9
mov dword [r8 - 4], eax
jne 0x140023560
lea rax, [0x1400238e0]
lea rbx, [0x1400237f0]
mov qword [0x14002f278], rax
mov qword [0x140031280], rax
mov qword [0x14002f270], rbx
call fcn.1400236b0
mov rcx, qword [0x140031280]
test eax, eax
cmove rcx, rbx
mov qword [0x140031280], rcx
add rsp, 0x20
pop rbx
ret
Function at 0x140023ec8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140031290], rdi
je 0x140023f21
cmp rax, rdi
jne 0x140023f14
mov esi, 1
jmp 0x140023f21
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140023efb
mov eax, dword [0x140031288]
cmp eax, 1
jne 0x140023f36
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140023f9b
mov eax, dword [0x140031288]
test eax, eax
jne 0x140023f91
mov dword [0x140031288], 1
lea r12, [0x140025890]
lea rdi, [0x140025878]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x140023f83
test eax, eax
jne 0x140023f83
mov rcx, qword [rdi]
test rcx, rcx
je 0x140023f78
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x140023f61
test eax, eax
je 0x140023f9b
mov eax, 0xff
jmp 0x1400240e5
mov dword [0x14002f25c], 1
mov eax, dword [0x140031288]
cmp eax, 1
jne 0x140023fc3
lea rdx, [0x140025870]
lea rcx, [0x140025770]
call sub.msvcrt.dll__initterm
mov dword [0x140031288], 2
test esi, esi
jne 0x140023fd0
xor eax, eax
xchg qword [0x140031290], rax
cmp qword [0x140031298], 0
je 0x140023ff9
lea rcx, [0x140031298]
call fcn.1400242d8
test eax, eax
je 0x140023ff9
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140031298]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x140024084
cmp byte [rdi], 0
je 0x14002401a
test esi, esi
jne 0x140024084
cmp byte [rdi], 0
je 0x14002402e
cmp byte [rdi], 0x20
ja 0x14002402e
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14002401a
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.140008e04
mov dword [0x14002f258], eax
cmp dword [0x14002f23c], 0
jne 0x14002406d
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002f25c], 0
jne 0x140024082
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002f258]
jmp 0x1400240e5
cmp byte [rdi], 0x22
jne 0x140024096
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1400240ab
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14002400c
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.1400243c8
add rsp, 0x28
jmp 0x140023ec8
Function at 0x140024328
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x140024375
cmp rcx, 0xffffffffffffffff
je 0x140024375
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002436d
cmp dword [rcx + 0x3c], edx
jl 0x14002436d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14002436d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140024375
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001040
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.2.11
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.140007370
mov r15d, eax
test eax, eax
je 0x1400010c3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140001dd0
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.14000a50c
mov r13, rax
test rax, rax
jne 0x1400010f9
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140001b30
jmp 0x140001267
mov ecx, 0x2000
call fcn.14000a50c
mov rbp, rax
test rax, rax
jne 0x140001127
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140001b30
jmp 0x140001267
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rdi]
mov eax, 0x2000
cmp r12, rax
mov rbx, r12
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000a8e4
cmp rax, rbx
jne 0x140001259
mov rcx, qword [rdi]
call fcn.14000a628
test eax, eax
jne 0x140001259
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140005830
mov edi, eax
mov r15d, 0xffffffff
cmp eax, 0xfffffffc
jl 0x1400011c5
cmp eax, 0xfffffffe
jle 0x1400011f8
cmp eax, 2
je 0x14000124d
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001215
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000b2ec
cmp rax, rbx
jne 0x1400011f5
mov rcx, r14
call fcn.14000a628
test eax, eax
je 0x14000122b
mov edi, r15d
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.140001dd0
jmp 0x14000125f
test rsi, rsi
je 0x14000122b
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.1400093c0
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x140001190
cmp edi, 1
je 0x140001254
test r12, r12
je 0x1400011f8
mov rdi, qword [rsp + 0xc0]
jmp 0x140001140
mov edi, 0xfffffffd
jmp 0x1400011f8
xor r15d, r15d
jmp 0x14000125f
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.140007060
mov rcx, r13
call fcn.14000a4f8
mov rcx, rbp
call fcn.14000a4f8
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov rax, qword [rcx]
mov rsi, rdx
mov r14, rcx
test rax, rax
jne 0x1400012e8
add rcx, 0x78
lea rdx, [0x140022430]
call fcn.140002e30
mov qword [r14], rax
test rax, rax
jne 0x1400012e8
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001dd0
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000abb4
test eax, eax
jns 0x14000131f
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140001b30
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.14000a50c
mov r15, rax
test rax, rax
jne 0x140001354
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140001b30
jmp 0x140001404
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
jne 0x140001385
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001040
test eax, eax
je 0x1400013f0
jmp 0x1400013e5
mov ebx, dword [rsi + 0xc]
mov rbp, r15
test rbx, rbx
je 0x1400013f0
mov r12d, 0x2000
nop word [rax + rax]
mov r9, qword [r14]
cmp rbx, r12
mov rdi, rbx
mov r8d, 1
cmova rdi, r12
mov rcx, rbp
mov rdx, rdi
call fcn.14000a8e4
cmp rax, 1
jb 0x1400013ce
add rbp, rdi
sub rbx, rdi
jne 0x1400013a0
jmp 0x1400013f0
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140001b30
mov rcx, r15
call fcn.14000a4f8
xor r15d, r15d
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r12, qword [rsp + 0x58]
mov rcx, qword [r14]
test rcx, rcx
je 0x140001418
call fcn.14000a598
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x140001430
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
call fcn.140004220
cmp eax, 0xffffffff
jne 0x140001452
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
lea rcx, [r14 + 0x2078]
lea rbp, [rdi + 0x12]
mov qword [rsp + 0x60], r12
mov rdx, rbp
call fcn.140004540
mov r12, rax
test rax, rax
jne 0x140001497
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140001b30
lea eax, [r12 - 1]
jmp 0x140001625
mov rax, qword [r14]
test rax, rax
jne 0x1400014d0
lea rcx, [r14 + 0x78]
lea rdx, [0x140022430]
call fcn.140002e30
mov qword [r14], rax
test rax, rax
jne 0x1400014d0
mov rdx, rbp
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140001dd0
mov ebx, 0xffffffff
jmp 0x140001607
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000abb4
test eax, eax
jns 0x140001506
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140001b30
mov ebx, 0xffffffff
jmp 0x140001607
cmp byte [rdi + 0x10], 1
jne 0x140001524
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.140001040
mov ebx, eax
jmp 0x140001607
mov qword [rsp + 0x28], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x20], r15
mov ecx, r13d
call fcn.14000a50c
mov r15, rax
test rax, rax
jne 0x140001565
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140001b30
lea ebx, [r15 - 1]
jmp 0x1400015fd
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x1400015f5
mov qword [rsp + 0x58], rsi
nop word [rax + rax]
mov r9, qword [r14]
cmp rdi, r13
mov rsi, rdi
mov r8d, 1
cmova rsi, r13
mov rcx, r15
mov rdx, rsi
call fcn.14000a8e4
cmp rax, 1
jb 0x1400015d5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.14000b2ec
cmp rax, 1
jb 0x1400015c5
sub rdi, rsi
jne 0x140001580
jmp 0x1400015f0
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400015e3
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov r8, rbp
call fcn.140001b30
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.14000a4f8
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000161b
call fcn.14000a598
mov qword [r14], 0
mov rcx, r12
call fcn.14000a598
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret