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

Disassembly:
mov eax, 0x4038
call fcn.14000c400
sub rsp, rax
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140009260
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400082a6
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140009360
test rax, rax
je 0x1400082a6
cmp byte [rax], 0
je 0x1400082a6
mov rcx, rax
call fcn.140016488
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000c470
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.14000c470
add rsp, 0x4038
ret

Function at 0x1400086f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140009260
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.1400113d4
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140008730
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000c400
sub rsp, rax
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140009260
mov ebx, 1
lea rcx, [0x140007bc0]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.1400116d0
mov rcx, rax
call fcn.140016500
mov ecx, eax
call fcn.140014240
cmp rax, 0xffffffffffffffff
mov ecx, ebx
cmove rax, rdi
mov qword [rsp + 0xe0], rax
call fcn.1400116d0
mov rcx, rax
call fcn.140016500
mov ecx, eax
call fcn.140014240
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 2]
cmove rax, rdi
mov qword [rsp + 0xe8], rax
call fcn.1400116d0
mov rcx, rax
call fcn.140016500
mov ecx, eax
call fcn.140014240
cmp rax, 0xffffffffffffffff
cmove rax, rdi
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400088ae
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x1400088c4
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140028c50]
call fcn.140002870
or eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000c470
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x140008960
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov rsi, r8
mov ecx, 0x2000
mov rbp, rdx
xor r12d, r12d
call fcn.1400113dc
mov r14, rax
test rax, rax
je 0x140008a5b
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, r15
call fcn.14000eaa8
test eax, eax
js 0x140008a5b
mov rcx, r15
mov qword [rsp + 0x40], rbx
call fcn.140014c4c
mov rbx, rax
cmp rax, rsi
jb 0x140008a56
mov qword [rsp + 0x48], rdi
nop dword [rax + rax]
cmp rbx, 0x2000
lea rdi, [rbx - 0x2000]
cmovb rdi, r12
sub rbx, rdi
cmp rbx, rsi
jb 0x140008a51
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call fcn.14000eaa8
test eax, eax
js 0x140008a51
mov r9, r15
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000e76c
cmp rax, rbx
jne 0x140008a51
sub rbx, rsi
add rbx, 1
je 0x140008a3c
nop dword [rax]
lea rcx, [r14 - 1]
mov r8, rsi
add rcx, rbx
mov rdx, rbp
call fcn.14000dab0
test eax, eax
je 0x140008a4a
sub rbx, 1
jne 0x140008a20
lea rbx, [rsi - 1]
add rbx, rdi
test rdi, rdi
jne 0x1400089d0
jmp 0x140008a51
lea r12, [rbx - 1]
add r12, rdi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, r14
call fcn.1400113d4
mov rbp, qword [rsp + 0x50]
mov rax, r12
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140009200
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140038dc0]
test rax, rax
jne 0x140009224
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002ad0
or eax, 0xffffffff
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x48
ret
Function at 0x140013a4c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140013a6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400117ac
or eax, 0xffffffff
jmp 0x140013a6e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140013d9c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x140013adb
call fcn.14001181c
mov dword [rax], 0x16
call fcn.140016930
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000c470
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x140013aa2
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140013b49
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140013b1c
cmp eax, 3
jbe 0x140013b39
cmp eax, 8
je 0x140013b29
cmp eax, 0x12
je 0x140013b39
call fcn.14001181c
mov dword [rax], 0x16
jmp 0x140013ab2
call fcn.14001181c
mov dword [rax], 0xc
jmp 0x140013ab2
call fcn.14001181c
mov dword [rax], 2
jmp 0x140013ab2
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.140013ce4
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140013ce4
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140013ce4
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001c064
test eax, eax
jne 0x140013ba7
mov rax, rdi
jmp 0x140013ab6
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140016950
int3
jmp 0x140013a74
Function at 0x140013da4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x140013c19
call fcn.14001181c
mov dword [rax], 0x16
call fcn.140016930
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000c470
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x140013be5
test rdx, rdx
je 0x140013be5
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140013c74
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x140013c4d
cmp eax, 3
jbe 0x140013c67
cmp eax, 8
je 0x140013c5a
cmp eax, 0x12
je 0x140013c67
call fcn.14001181c
mov dword [rax], 0x16
jmp 0x140013bf5
call fcn.14001181c
mov dword [rax], 0xc
jmp 0x140013bf5
call fcn.14001181c
mov dword [rax], 2
jmp 0x140013bf5
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.140013ce4
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.140013ce4
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.140013ce4
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.14001c064
test eax, eax
je 0x140013bf8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140016950
int3
jmp 0x140013bbc

Function at 0x1400142b8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400142d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400117ac
or eax, 0xffffffff
jmp 0x1400142da
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015be4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400159b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400159b8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400159b8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400159b8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400159b8
cmp dword [rcx + 0x84], 0xe
jbe 0x1400159b8
cmp dword [rcx + 0xf8], esi
je 0x1400159b8
mov ecx, r14d
call fcn.140015b00
mov ecx, 2
call fcn.14001bec8
nop
cmp byte [0x14003a7d0], 0
jne 0x140015a82
mov r15d, 1
mov eax, r15d
xchg dword [0x14003a7c4], eax
test ebx, ebx
jne 0x140015a2b
mov rdi, qword [0x140038010]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14003a7c8]
cmp rcx, rax
je 0x140015a22
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003570]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14003a7e0]
jmp 0x140015a37
cmp ebx, r15d
jne 0x140015a3d
lea rcx, [0x14003a7f8]
call fcn.140016208
nop
test ebx, ebx
jne 0x140015a54
lea rdx, [0x140026478]
lea rcx, [0x140026450]
call fcn.140015878
lea rdx, [0x140026488]
lea rcx, [0x140026480]
call fcn.140015878
movzx eax, byte [0x14003a7d0]
test esi, esi
cmove eax, r15d
mov byte [0x14003a7d0], al
jmp 0x140015a82
mov ecx, 2
call fcn.14001bf28
test esi, esi
jne 0x140015a99
mov ecx, r14d
call fcn.140015ab4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140015948
Function at 0x140017990
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140017830
call fcn.14001181c
mov dword [rax], 0x16
call fcn.140016930
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140017818
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140017818
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140017862
lock or dword [rax + 0x14], 0x10
jmp 0x140017818
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14001787f
mov rcx, qword [rbp + 0x10]
call fcn.14001f130
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140016500
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140017268
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400178d6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140017818
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140017942
mov rcx, qword [rbp + 0x10]
call fcn.140016500
cmp eax, 0xffffffff
je 0x140017929
mov rcx, qword [rbp + 0x10]
call fcn.140016500
cmp eax, 0xfffffffe
je 0x140017929
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140016500
movsxd rdi, eax
lea rsi, [0x14003a820]
mov rcx, rbx
sar rdi, 6
call fcn.140016500
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140017930
lea rax, [0x140038270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140017942
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140017978
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140017974
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140017974
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14001781b
jmp 0x1400177e8
Function at 0x140003370
Capabilities:
Execute command
Set console window title

Disassembly:
sub rsp, 0x28
movzx ecx, word [0x1400056b4]
mov eax, dword [str.rBjIO_]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x1400056b6]
xor byte [rsp + 0x49], 0x37
xor al, 0x3c
xor byte [rsp + 0x4a], 0x38
xor byte [rsp + 0x4b], 0x39
mov word [rsp + 0x4c], cx
xor cl, 0x3a
xor byte [rsp + 0x4d], 0x3b
mov byte [rsp + 0x4c], cl
lea rcx, [rsp + 0x48]
mov byte [rsp + 0x48], 0x44
mov byte [rsp + 0x4e], al
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140002b10
lea rcx, str.pause___nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140003d88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003dd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003dd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003dd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140003dd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003dd4
xor al, al
add rsp, 0x28
ret
Function at 0x143caf058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.143caf1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x143caf089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x143caf06f
add dl, dl
jne 0x143caf096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x143caf0f6
xor eax, eax
add dl, dl
jne 0x143caf0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x143caf1ad
add dl, dl
jne 0x143caf0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143caf0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143caf0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143caf0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x143caf0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x143caf07e
mov eax, 1
add dl, dl
jne 0x143caf106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x143caf113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x143caf0fb
sub eax, ebx
mov ebx, 1
jne 0x143caf14c
mov ecx, 1
add dl, dl
jne 0x143caf12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x143caf13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x143caf123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x143caf07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x143caf168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x143caf175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x143caf15d
cmp eax, 0x7d00
jae 0x143caf19b
cmp eax, 0x500
jb 0x143caf196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x143caf07e
cmp eax, 0x7f
ja 0x143caf19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x143caf07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x143caf1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x143caf07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001050
Capabilities:
Read 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.12
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.140009f60
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.1400027d0
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.140014520
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140002530
jmp 0x14000126c
mov ecx, 0x2000
call fcn.140014520
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140002530
jmp 0x14000126c
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.14000fbd8
cmp rax, rbx
jne 0x14000125e
mov rcx, qword [rdi]
call fcn.14000f94c
test eax, eax
jne 0x14000125e
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.1400083d0
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.1400102e4
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.14000f94c
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000c150
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001264
mov edi, 0xfffffffd
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.1400027d0
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.140009c50
mov rcx, r13
call fcn.14001450c
mov rcx, rbp
call fcn.14001450c
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 0x1400012b0
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 0x1400012f8
add rcx, 0x78
lea rdx, [0x14002a650]
call fcn.140003f90
mov qword [r14], rax
test rax, rax
jne 0x1400012f8
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.1400027d0
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.14000fef0
test eax, eax
jns 0x14000132f
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.140002530
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x20], r15
call fcn.140014520
mov r15, rax
test rax, rax
jne 0x140001364
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.140002530
jmp 0x140001414
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 0x140001395
mov r9, r15
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
test eax, eax
je 0x140001400
jmp 0x1400013f5
mov ebx, dword [rsi + 0xc]
mov rbp, r15
test rbx, rbx
je 0x140001400
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.14000fbd8
cmp rax, 1
jb 0x1400013de
add rbp, rdi
sub rbx, rdi
jne 0x1400013b0
jmp 0x140001400
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002530
mov rcx, r15
call fcn.14001450c
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 0x140001428
call fcn.14000f888
mov qword [r14], 0
mov rax, r15
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x140001440
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov r14, rcx
call fcn.140006cf0
cmp eax, 0xffffffff
jne 0x140001462
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
lea rcx, [r14 + 0x3078]
lea rbp, [rdi + 0x12]
mov qword [rsp + 0x60], r12
mov rdx, rbp
call fcn.140007040
mov r12, rax
test rax, rax
jne 0x1400014a7
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002530
lea eax, [r12 - 1]
jmp 0x140001635
mov rax, qword [r14]
test rax, rax
jne 0x1400014e0
lea rcx, [r14 + 0x78]
lea rdx, [0x14002a650]
call fcn.140003f90
mov qword [r14], rax
test rax, rax
jne 0x1400014e0
mov rdx, rbp
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.1400027d0
mov ebx, 0xffffffff
jmp 0x140001617
mov edx, dword [rdi + 4]
xor r8d, r8d
add rdx, qword [r14 + 8]
mov rcx, rax
call fcn.14000fef0
test eax, eax
jns 0x140001516
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002530
mov ebx, 0xffffffff
jmp 0x140001617
cmp byte [rdi + 0x10], 1
jne 0x140001534
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, r14
call fcn.140001050
mov ebx, eax
jmp 0x140001617
mov qword [rsp + 0x28], r13
xor ebx, ebx
mov r13d, 0x2000
mov qword [rsp + 0x20], r15
mov ecx, r13d
call fcn.140014520
mov r15, rax
test rax, rax
jne 0x140001575
mov r8, rbp
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002530
lea ebx, [r15 - 1]
jmp 0x14000160d
mov edi, dword [rdi + 0xc]
test rdi, rdi
je 0x140001605
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.14000fbd8
cmp rax, 1
jb 0x1400015e5
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r15
call fcn.1400102e4
cmp rax, 1
jb 0x1400015d5
sub rdi, rsi
jne 0x140001590
jmp 0x140001600
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x1400015f3
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov r8, rbp
call fcn.140002530
mov ebx, 0xffffffff
mov rsi, qword [rsp + 0x58]
mov rcx, r15
call fcn.14001450c
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x20]
mov rcx, qword [r14]
test rcx, rcx
je 0x14000162b
call fcn.14000f888
mov qword [r14], 0
mov rcx, r12
call fcn.14000f888
mov eax, ebx
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret