joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140023200
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1400a7010]
xor rax, rsp
mov qword [rbp], rax
mov r12, r8
mov rdi, rdx
mov r14, rcx
mov qword [rbp - 8], rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14002323f
mov rcx, qword [rdx]
lea rdx, [rbp - 8]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r15d, eax
test eax, eax
je 0x1400233da
xorps xmm0, xmm0
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
cmp r15, 0x1000
jb 0x14002329a
lea rcx, [r15 + 0x27]
cmp rcx, r15
jbe 0x14002340a
lfence
call fcn.14002a358
mov rcx, rax
test rax, rax
je 0x140023410
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400232a5
lfence
mov rcx, r15
call fcn.14002a358
mov qword [rbp - 0x20], rax
lea rbx, [rax + r15]
mov qword [rbp - 0x10], rbx
mov r8, r15
xor edx, edx
mov rcx, rax
call fcn.140054260
mov qword [rbp - 0x18], rbx
cmp qword [rdi + 0x18], 8
jb 0x1400232cc
mov rdi, qword [rdi]
mov r9, qword [rbp - 0x20]
mov r8d, r15d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140023416
mov r8, r12
mov rdx, qword [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.140022af0
nop
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140023306
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400298c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140023366
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023361
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023445
call fcn.14002a5e4
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400233b3
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400233ae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400233d4
call fcn.14002a5e4
mov rax, r14
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14002a0d0
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14005d720
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400227f0
nop
mov r8, rax
lea rdx, str.Failed_to_get_Version_resource_size:
lea rcx, [rbp - 0x80]
call fcn.1400241e0
nop
mov rcx, rax
call fcn.140022ac0
nop
call fcn.1400013a0
int3
call fcn.14005d720
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.1400227f0
nop
mov r8, rax
lea rdx, str.Failed_to_get_Version_resource_content:
lea rcx, [rbp - 0x40]
call fcn.1400241e0
nop
mov rcx, rax
call fcn.140022ac0
nop
call fcn.14005d720
int3
Function at 0x140072750
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140072472
call fcn.14005f0b8
mov dword [rax], 0x16
call fcn.14005d700
jmp 0x1400725c2
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400725c2
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400725c2
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400724a1
lock or dword [rcx + 0x14], 0x10
jmp 0x1400725c2
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400724b5
call fcn.1400723d0
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400724c5
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400724c8
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.14006ed30
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14007bb8c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400725b0
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14007255b
mov rcx, rbx
call fcn.14006ed30
cmp eax, 0xffffffff
je 0x140072546
mov rcx, rbx
call fcn.14006ed30
cmp eax, 0xfffffffe
je 0x140072546
mov rcx, rbx
call fcn.14006ed30
movsxd rdi, eax
lea rsi, [0x1400acfd0]
mov rcx, rbx
sar rdi, 6
call fcn.14006ed30
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14007254d
lea rdx, [0x1400a7590]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14007255b
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14007257f
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14007257f
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14007257f
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x14007259d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1400725a8
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400725c7
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14007243c
Function at 0x1400736f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14007f2f0
sub rsp, rax
mov rax, qword [0x1400a7010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006ed30
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140073747
mov rax, rbp
jmp 0x14007384f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xacfd0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140073be8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xacfd0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007384b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007384b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140073be8
test rax, rax
js 0x14007384b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007384b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007383d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007383d
cmp byte [rcx], 0xd
jne 0x140073823
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140073832
cmp byte [rcx + 1], 0xa
jne 0x140073832
inc rcx
jmp 0x140073832
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa7cf0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140073805
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007384f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002a0d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140075984
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140075a0b
mov rsi, rbx
cmp word [rax], bp
je 0x1400759ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400759b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400759b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006da58
mov rdi, rax
test rax, rax
je 0x1400759f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400544f0
mov rbp, rdi
xor ecx, ecx
call fcn.14006da1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007b6e0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400acfd0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14007b73e
cmp word [rdx], r12w
jne 0x14007b73e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14007b744
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14007b89f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14007b87a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14007b77d
mov rcx, r9
jmp 0x14007b7a0
cmp r9, rdx
jae 0x14007b7b7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14007b761
jmp 0x14007b89f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007b874
cmp dword [rsp + 0x80], edi
je 0x14007b874
mov rdx, r14
lea r11, [0x1400acfd0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14007b84d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14007b820
mov word [rbx], r12w
jmp 0x14007b89b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14007b829
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14007b89b
cmp word [rsp + 0x70], r12w
jne 0x14007b85a
cmp rbx, rsi
je 0x14007b81a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140073bf0
cmp word [rsp + 0x70], r12w
je 0x14007b89f
mov word [rbx], r13w
jmp 0x14007b89b
lea r11, [0x1400acfd0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14007b897
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14007b89f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007ec48
Capabilities:
Clear file content

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
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140073bf0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140073bf0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007ed98
cmp rax, 0xffffffffffffffff
je 0x14007ed98
xor edi, edi
test rbp, rbp
jle 0x14007ed43
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006ce2c
mov rbx, rax
test rax, rax
jne 0x14007ecd0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007ed39
mov edx, 0x8000
mov ecx, r14d
call fcn.140060f50
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140071b28
cmp eax, 0xffffffff
je 0x14007ed19
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007ece0
mov edx, r15d
mov ecx, r14d
call fcn.140060f50
jmp 0x14007ed39
cmp byte [rsi + 0x38], dil
je 0x14007ed30
cmp dword [rsi + 0x34], 5
jne 0x14007ed30
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007ed39
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006da1c
jmp 0x14007edac
jns 0x14007edac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140073bf0
cmp rax, 0xffffffffffffffff
jne 0x14007ed64
cmp byte [rsi + 0x30], dil
je 0x14007edac
mov edi, dword [rsi + 0x2c]
jmp 0x14007edac
mov ecx, r14d
call fcn.1400746c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007edac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14007edac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007eda5
mov eax, dword [rsi + 0x2c]
jmp 0x14007edaa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140073bf0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400029d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400259a8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002a11
xor eax, eax
jmp 0x140002bed
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002a4b
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002a4b
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x140002bed
cmp qword [rbx + 0x90], 0
jne 0x140002a5d
or eax, 0xffffffff
jmp 0x140002bed
mov rdx, qword [rbx + 0x18]
lea rax, [rbx + 0x80]
cmp qword [rdx], rax
jne 0x140002a87
mov rcx, qword [rbx + 0x70]
mov rax, qword [rbx + 0x68]
mov qword [rdx], rax
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
cmp qword [rbx + 0x78], 0
jne 0x140002aab
movsx ecx, sil
mov rdx, qword [rbx + 0x90]
call fcn.140006958
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x140002beb
mov byte [rbp + 0xf], sil
mov qword [rbp + 0x2f], 0xf
mov qword [rbp + 0x27], 0
mov byte [rbp + 0x17], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 0x17]
call fcn.1400047e0
nop
nop word [rax + rax]
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rdx, qword [rbp + 0x17]
lea r8, [rbp + 0x17]
cmovae r8, qword [rbp + 0x17]
mov rcx, qword [rbx + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x27]
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x10]
lea r8, [rbp + 0xf]
lea rdx, [rbx + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x140002bd8
cmp eax, 1
jg 0x140002bb9
lea rax, [rbp + 0x17]
mov r9, qword [rbp + 0x17]
mov r10, qword [rbp + 0x2f]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 7]
sub rdi, rax
je 0x140002b80
lea rcx, [rbp + 0x17]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x90]
mov r8, rdi
mov edx, 1
call fcn.140006f50
cmp rdi, rax
jne 0x140002bd8
mov byte [rbx + 0x81], 1
lea rax, [rbp + 0xf]
cmp qword [rbp - 1], rax
jne 0x140002bb5
test rdi, rdi
jne 0x140002ae0
cmp qword [rbp + 0x27], 0x20
jae 0x140002bd8
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 0x17]
call fcn.140003650
jmp 0x140002ae0
mov ebx, esi
jmp 0x140002bdb
cmp eax, 3
jne 0x140002bd8
movsx ecx, byte [rbp + 0xf]
mov rdx, qword [rbx + 0x90]
call fcn.140006958
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x140002bdb
or ebx, 0xffffffff
cmp qword [rbp + 0x2f], 0x10
jb 0x140002beb
mov rcx, qword [rbp + 0x17]
call fcn.1400061f0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140005fa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400043a0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400259a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x140004501
cmp byte [rcx + 0x81], 0
je 0x140004501
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400043f7
xor al, al
jmp 0x140004503
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.1400047e0
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
cmovae r8, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rsp + 0x50]
add r9, rdx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x14000446a
dec eax
jne 0x1400044df
jmp 0x140004471
mov byte [rdi + 0x81], 0
lea rax, [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
cmp r10, 0x10
cmovae rax, r9
mov rbx, qword [rsp + 0x38]
sub rbx, rax
je 0x1400044b8
lea rcx, [rsp + 0x40]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.140006f50
cmp rbx, rax
jne 0x1400044e4
cmp byte [rdi + 0x81], 0
je 0x1400044e8
test rbx, rbx
jne 0x140004420
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.140003650
jmp 0x140004420
sub eax, 2
je 0x1400044e8
xor bl, bl
jmp 0x1400044ea
mov bl, 1
cmp qword [rsp + 0x58], 0x10
jb 0x1400044fc
mov rcx, qword [rsp + 0x40]
call fcn.1400061f0
movzx eax, bl
jmp 0x140004503
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140005fa0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.140001c20
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
lea rdx, str.Usage:__s___h_____help_____version________filenames...__n
mov rcx, qword [rsp + 0x40]
call fcn.1400013c0
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x38
ret

Function at 0x1400011d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140001db0
mov r8, rax
lea rdx, str.3.6.2
lea rcx, str.bsdcat__s____s__n
call fcn.140001410
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x28
ret

Function at 0x140001210
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x60
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov ecx, 0x28
rep stosb byte [rdi], al
lea rdx, str.bsdcat
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.140001c30
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 0x10], ecx
mov rcx, qword [rsp + 0x28]
call fcn.140001470
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400012c9
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400012a8
cmp dword [rsp + 0x24], 0x68
je 0x140001291
jmp 0x1400012af
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor edx, edx
mov rcx, rax
call fcn.140001000
jmp 0x1400012c7
call fcn.1400011d0
jmp 0x1400012c7
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov edx, 1
mov rcx, rax
call fcn.140001000
jmp 0x140001264
call fcn.140001050
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax], 0
jne 0x1400012f4
lea rax, str._stdin_
mov qword [0x1400370e0], rax
xor ecx, ecx
call fcn.140001100
jmp 0x14000134b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
cmp qword [rax], 0
je 0x14000133f
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov qword [0x1400370e0], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
add rax, 8
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x18], rax
mov rcx, qword [0x1400370e0]
call fcn.140001100
call fcn.140001050
jmp 0x1400012f4
mov rcx, qword [0x1400370d0]
call fcn.140006f50
mov ecx, dword [0x1400370e8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x60
pop rdi
ret
Function at 0x1400079a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
lea rax, str.Fatal_Internal_Error_in_libarchive:
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], 0xffffffffffffffff
inc qword [rsp + 0x20]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
cmp byte [rax + rcx], 0
jne 0x1400079c2
mov rax, qword [rsp + 0x20]
mov r8, rax
lea rdx, str.Fatal_Internal_Error_in_libarchive:
mov ecx, 2
call fcn.14001e9f0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp byte [rax + rcx], 0
jne 0x140007a08
mov rax, qword [rsp + 0x28]
mov r8, rax
mov rdx, qword [rsp + 0x68]
mov ecx, 2
call fcn.14001e9f0
mov qword [rsp + 0x30], rax
mov r8d, 1
lea rdx, [0x140034a04]
mov ecx, 2
call fcn.14001e9f0
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x58
ret
Function at 0x14001e5a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, 0xffffffff
cmp qword [rsp + 0x70], rax
jbe 0x14001e5c8
mov eax, 0xffffffff
mov qword [rsp + 0x70], rax
cmp dword [rsp + 0x60], 0
jge 0x14001e5e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
mov rax, 0xffffffffffffffff
jmp 0x14001e692
cmp qword [rsp + 0x70], 0
jne 0x14001e5f6
xor eax, eax
jmp 0x14001e692
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14001e68e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xe8
jne 0x14001e65c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0xb
mov rax, 0xffffffffffffffff
jmp 0x14001e692
cmp dword [rsp + 0x30], 0x6d
jne 0x14001e667
xor eax, eax
jmp 0x14001e692
cmp dword [rsp + 0x30], 5
jne 0x14001e67c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
jmp 0x14001e685
mov ecx, dword [rsp + 0x30]
call fcn.14001efa0
mov rax, 0xffffffffffffffff
jmp 0x14001e692
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x14001e9f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov eax, 0xffffffff
cmp qword [rsp + 0x60], rax
jbe 0x14001ea18
mov eax, 0xffffffff
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x50], 0
jge 0x14001ea34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
mov rax, 0xffffffffffffffff
jmp 0x14001ea98
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001ea94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 5
jne 0x14001ea82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 9
jmp 0x14001ea8b
mov ecx, dword [rsp + 0x30]
call fcn.14001efa0
mov rax, 0xffffffffffffffff
jmp 0x14001ea98
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret