joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400488d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140171340]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140048aa0
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140048de0
nop
lea rax, [0x140048e50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.14000a080
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140048974
lea rcx, [rsp + 0x40]
call fcn.140048bc0
nop
jmp 0x14004898c
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x40]
call fcn.140048bf0
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140124e00
add rsp, 0x58
ret
Function at 0x140050980
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x14013e210]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x140050a0e
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x1400509b2
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x140050a20
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x14013e210]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x140050b24
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x140050b1f
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x140050af4
cmp qword [rsp + 0x38], 2
jb 0x140050af4
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140050af4
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140050af4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x140050a67
jmp 0x140050bb6
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x140050bb6
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x140050b8c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140050b8c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140050b8c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x140050b24
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x14009ea10
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14009ea36
mov dword [rsp + 0x20], 1
jmp 0x14009ea3e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400ad7d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x3c18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
movss xmm0, dword [rax + 0x3c20]
movss dword [rsp + 0x24], xmm0
mov rax, qword [rsp + 0x50]
movss xmm0, dword [rsp + 0x24]
divss xmm0, dword [rax + 0x14]
movss dword [rsp + 0x3c], xmm0
xorps xmm2, xmm2
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x70]
call fcn.14000d120
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x30], rax
jae 0x1400ad91f
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jne 0x1400ad8e1
movss xmm1, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax]
call fcn.140079b70
mov rax, qword [rsp + 0x70]
movss dword [rax], xmm0
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0xa0]
test eax, eax
je 0x1400ad8dc
jmp 0x1400ad91f
jmp 0x1400ad852
cmp dword [rsp + 0x28], 0xd
jne 0x1400ad8ed
jmp 0x1400ad852
movzx edx, word [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call fcn.1400a48d0
mulss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x40], xmm0
movss xmm0, dword [rsp + 0x20]
addss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x20], xmm0
jmp 0x1400ad852
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rax]
jbe 0x1400ad93e
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rsp + 0x20]
movss dword [rax], xmm0
cmp qword [rsp + 0x98], 0
je 0x1400ad97a
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
movaps xmm2, xmm0
movss xmm1, dword [rsp + 0x20]
lea rcx, [rsp + 0x58]
call fcn.14000d120
mov rax, qword [rax]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [0x14015e378]
ja 0x1400ad997
mov rax, qword [rsp + 0x70]
xorps xmm0, xmm0
ucomiss xmm0, dword [rax + 4]
jne 0x1400ad9b1
mov rax, qword [rsp + 0x70]
movss xmm0, dword [rax + 4]
addss xmm0, dword [rsp + 0x24]
mov rax, qword [rsp + 0x70]
movss dword [rax + 4], xmm0
cmp qword [rsp + 0x90], 0
je 0x1400ad9cc
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x1400da610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
and eax, 7
test eax, eax
je 0x1400da642
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
and eax, 7
mov edx, eax
mov rcx, qword [rsp + 0x50]
call fcn.1400d9c20
nop
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jle 0x1400da69d
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
and eax, 0xff
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x28], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
shr eax, 8
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x14], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
sub eax, 8
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x10], eax
jmp 0x1400da64a
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
jge 0x1400da6b9
lea rcx, str.zlib_corrupt
call fcn.1400ccf70
jmp 0x1400da7fd
cmp dword [rsp + 0x20], 4
jge 0x1400da6df
mov rcx, qword [rsp + 0x50]
call fcn.1400d9b10
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x28], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1400da6b9
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rsp + rax + 0x28]
imul eax, eax, 0x100
mov ecx, 1
imul rcx, rcx, 0
movzx ecx, byte [rsp + rcx + 0x28]
add eax, ecx
mov dword [rsp + 0x24], eax
mov eax, 1
imul rax, rax, 3
movzx eax, byte [rsp + rax + 0x28]
imul eax, eax, 0x100
mov ecx, 1
imul rcx, rcx, 2
movzx ecx, byte [rsp + rcx + 0x28]
add eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x24]
xor eax, 0xffff
cmp dword [rsp + 0x2c], eax
je 0x1400da74f
lea rcx, [0x140157d58]
call fcn.1400ccf70
jmp 0x1400da7fd
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
cmp rax, qword [rcx + 8]
jbe 0x1400da778
lea rcx, str.read_past_buffer
call fcn.1400ccf70
jmp 0x1400da7fd
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
cmp rax, qword [rcx + 0x28]
jbe 0x1400da7b1
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
call fcn.1400d9eb0
test eax, eax
jne 0x1400da7b1
xor eax, eax
jmp 0x1400da7fd
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x50]
mov rdi, qword [rcx + 0x18]
mov rsi, qword [rdx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x18], rax
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x1400e5470
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x48]
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
add rsp, 0x38
ret
Function at 0x1400eda80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140171340]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140009120
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400edc10
nop
lea rax, [0x1400edc90]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.14000a080
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x1400edb24
lea rcx, [rsp + 0x40]
call fcn.140047a40
nop
jmp 0x1400edb3c
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x40]
call fcn.1400edb60
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140124e00
add rsp, 0x58
ret
Function at 0x14011bf10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rcx + 0x14]
mov rsi, rcx
call fcn.14011bc40
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14011bc40
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x14011c09b
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
cmp ebx, 2
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x40]
setne al
lea r15, [rsp + 0x40]
add r14, rax
xor rax, 1
add r15, rax
movzx edi, byte [r14]
movzx eax, byte [r15]
shl edi, 8
or edi, eax
lea eax, [rdi - 0xdc00]
cmp eax, 0x3ff
ja 0x14011bfa5
lea rcx, [rsi + 0x18]
mov edx, 0xfffd
call fcn.14011bce0
jmp 0x14011c08c
lea eax, [rdi - 0xd800]
mov qword [rsp + 0x48], rbp
cmp eax, 0x3ff
ja 0x14011c079
mov rcx, rsi
call fcn.14011bc40
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14011bc40
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
lea rbp, [rsi + 0x18]
test al, al
je 0x14011c059
nop
movzx eax, byte [r15]
movzx ebx, byte [r14]
shl ebx, 8
or ebx, eax
lea eax, [rbx - 0xdc00]
cmp eax, 0x3ff
jbe 0x14011c060
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
call fcn.14011bce0
lea eax, [rbx - 0xd800]
cmp eax, 0x7ff
ja 0x14011c07d
mov rcx, rsi
mov edi, ebx
call fcn.14011bc40
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14011bc40
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
jne 0x14011bff0
mov edx, 0xfffd
jmp 0x14011c07f
and edi, 0x3ff
and ebx, 0x3ff
shl edi, 0xa
or edi, ebx
add edi, 0x10000
jmp 0x14011c07d
lea rbp, [rsi + 0x18]
mov edx, edi
mov rcx, rbp
call fcn.14011bce0
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x14012445c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140124496
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14012449b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1401244e4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401353a0]
cmp byte [rcx + rax], 0
je 0x1401244e4
dec r8
sub rdx, 1
jne 0x1401244ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140125de0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140125e2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140125e2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140125e2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140125e2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140125e2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140125e2c
xor al, al
add rsp, 0x28
ret
Function at 0x401590
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.00409be0
test eax, eax
mov ebx, eax
jne 0x40183f
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x4017e0
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 0x401835
mov rcx, r14
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x401835
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.00409c80
cmp eax, 0xfffffffc
mov ebx, eax
jl 0x401705
cmp eax, 0xfffffffe
jle 0x401700
cmp eax, 2
jne 0x401705
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.004022b0
mov rcx, rbp
call fcn.0040b8d0
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 0x4016b3
mov eax, dword [rsp + 0x48]
mov r11d, 0x2000
sub r11, rax
mov r9, rax
cmp qword [rsp + 0xf0], 0
je 0x4017a0
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 0x40185d
mov rcx, qword [rsp + 0xf0]
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x40185d
mov r9d, dword [rsp + 0x48]
test r9d, r9d
je 0x401685
mov r10d, ebx
sub r15, r13
mov ebx, dword [rsp + 0x28]
cmp r10d, 1
je 0x40178b
test r15, r15
jne 0x40163a
cmp r10d, 1
je 0x4016cc
jmp 0x4016b3
cmp qword [rsp + 0xf8], 0
je 0x401769
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 0x401769
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r12 + 0x12]
xor edi, edi
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.00402310
jmp 0x4016cc
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [r12 + 0x12]
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.00402310
jmp 0x4016cc
mov ebx, 0xffffffff
jmp 0x4016cc
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.004022b0
jmp 0x4016e4
mov r10d, 0xffffffff
jmp 0x4016b3
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, 0x30
mov rbp, rdx
mov rbx, rcx
lea rdx, [0x0041012c]
call fcn.00403d30
test rax, rax
mov rsi, rax
je 0x4019e4
mov edx, dword [rbp + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call fcn.0040e6a0
test eax, eax
js 0x4019c0
mov ebx, dword [rbp + 0xc]
mov rcx, rbx
call sub.msvcrt.dll_malloc
test rax, rax
mov r12, rax
je 0x401a00
cmp byte [rbp + 0x10], 1
je 0x4019a3
test rbx, rbx
mov r13, rax
mov r14d, 0x2000
jne 0x401938
jmp 0x401989
add r13, rdi
sub rbx, rdi
je 0x401989
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 0x401930
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [rbp + 0x12]
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402310
mov rcx, r12
xor r12d, r12d
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rax, r12
add rsp, 0x30
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.00401590
test eax, eax
je 0x401989
jmp 0x40197e
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [rbp + 0x12]
xor r12d, r12d
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402310
jmp 0x401989
lea rdx, [rbp + 0x12]
xor r12d, r12d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.004022b0
jmp 0x401991
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x12]
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.00402310
jmp 0x401989
Function at 0x401a30
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 0x401b50
lea rdx, [0x00410254]
mov rcx, r8
call fcn.00403d30
test rax, rax
mov r12, rax
je 0x401c59
lea rdx, [0x0041012c]
mov rcx, rbx
call fcn.00403d30
test rax, rax
mov rbp, rax
je 0x401bd2
mov edx, dword [rdi + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call fcn.0040e6a0
test eax, eax
js 0x401c30
cmp byte [rdi + 0x10], 1
je 0x401b91
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
test rax, rax
mov r13, rax
je 0x401c82
mov ebx, dword [rdi + 0xc]
test rbx, rbx
je 0x401bf0
mov r14d, 0x2000
jmp 0x401afa
mov r9, r12
mov r8d, 1
mov rdx, rsi
mov rcx, r13
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x401c00
sub rbx, rsi
je 0x401bf0
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 0x401ad4
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [rdi + 0x12]
mov ebx, 0xffffffff
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.00402310
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x401ba4
mov qword [rsp + 0x70], r8
call fcn.004018b0
test rax, rax
mov rsi, rax
je 0x401bb6
mov r8, qword [rsp + 0x70]
mov rcx, rax
mov rdx, r8
call fcn.00403dd0
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_free
test ebx, ebx
js 0x401bc0
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.00401590
mov ebx, eax
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov rcx, r12
call sub.msvcrt.dll_fclose
jmp 0x401b80
mov ebx, 0xffffffff
nop dword [rax + rax]
lea rdx, [rdi + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.004022b0
jmp 0x401b80
lea rdx, [rdi + 0x12]
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.004022b0
jmp 0x401bac
xor ebx, ebx
jmp 0x401b45
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [rdi + 0x12]
mov ebx, 0xffffffff
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.00402310
jmp 0x401b45
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [rdi + 0x12]
mov ebx, 0xffffffff
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.00402310
jmp 0x401ba4
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [rdi + 0x12]
mov ebx, 0xffffffff
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.00402310
jmp 0x401b80
call qword [sym.imp.msvcrt.dll__errno]
lea r9, [rdi + 0x12]
or ebx, 0xffffffff
mov edx, dword [rax]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.00402310
jmp 0x401ba4