joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003220
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18006a0e8], eax
je 0x180003246
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x18006a0ec]
test eax, eax
jne 0x180003380
test rbp, rbp
jne 0x180003263
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x18000327f
cmp qword [rsi], 0
jne 0x18000328b
mov dword [0x18006a0ec], 6
mov qword [0x18006a0f0], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.18004a46c
mov rdi, rax
test rax, rax
jne 0x1800032af
lea ebx, [rax + 8]
jmp 0x180003355
mov rcx, qword [rsi]
xor edx, edx
call fcn.180003170
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180003170
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x180003347
cmp rdx, 0x1e
ja 0x180003347
cmp qword [rbx + 0x50], rax
jne 0x180003347
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180003309
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x180003355
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x18006a100]
mov qword [rdi], rax
xor eax, eax
mov qword [0x18006a100], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x18006a0e0], 0
mov ebx, 9
jne 0x180003360
mov dword [0x18006a0ec], ebx
test rdi, rdi
je 0x18000336d
mov edx, 0x30
mov rcx, rdi
call fcn.18004a4a8
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x18006a0f0], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x180003390
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x18006a0e8], 0
jne 0x180003435
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006a0e8], ecx
jne 0x180003435
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x18006a0d0]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x18006a100], rdi
mov qword [0x18006a0f8], rdi
mov qword [0x18006a0f0], rdi
test rbx, rbx
je 0x18000341e
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x180003417
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800033f0
jmp 0x18000341e
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18006a0ec], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180003a40
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18006a0ec]
mov rdi, rcx
test eax, eax
jne 0x180003ae0
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x180003a69
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.18004a46c
mov rbx, rax
test rax, rax
jne 0x180003a85
lea edi, [rax + 8]
jmp 0x180003aa6
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180003ac4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.18004a4a8
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18006a0ec], edi
mov qword [0x18006a0f0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x18006a0f8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x18006a0f8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180005040
Capabilities:
Decompress data using quicklz

Disassembly:
lea eax, [r8 + 0x100000]
cmp eax, 0x1fffff
ja 0x1800050a1
mov eax, r8d
mov ecx, r8d
shl ecx, 4
shr eax, 1
xor eax, edx
and eax, 0x7ff
xor eax, edx
mov edx, r8d
xor ecx, eax
shl edx, 6
and ecx, 0x3f0000
xor ecx, eax
xor edx, ecx
and edx, 0x4000000
xor edx, ecx
mov ecx, r8d
shr ecx, 5
xor ecx, edx
shr r8d, 8
and ecx, 0x2000
xor ecx, edx
xor r8d, ecx
and r8d, 0x800
xor r8d, ecx
mov eax, r8d
ret
xor eax, eax
ret
Function at 0x180005ef0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r9
mov r13, rdx
mov r14, rcx
test rcx, rcx
jne 0x180005f22
call sub.KERNEL32.dll_GetModuleHandleW
mov r14, rax
mov eax, 0x5a4d
cmp word [r14], ax
je 0x180005f3e
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
movsxd rax, dword [r14 + 0x3c]
cmp dword [rax + r14], 0x4550
je 0x180005f5d
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
cmp word [rax + r14 + 0x14], 0
jne 0x180005f77
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
mov ecx, dword [rax + r14 + 0x90]
test ecx, ecx
je 0x180005f89
lea rdi, [r14 + rcx]
jmp 0x180005f8b
xor edi, edi
mov qword [rsp + 0x28], rdi
test rdi, rdi
jne 0x180005fa6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
mov ecx, dword [rdi]
test ecx, ecx
je 0x18000608b
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x18000607d
mov ebx, eax
add rbx, r14
je 0x18000607d
lea r15, [r14 + rcx]
mov eax, dword [rdi + 0x10]
test eax, eax
je 0x180005fd7
lea r12, [r14 + rax]
jmp 0x180005fda
xor r12d, r12d
mov rcx, qword [r12]
call fcn.1800060e0
mov r9, qword [rsp + 0x70]
test r9, r9
je 0x180006001
mov r8, rbx
mov rdx, rax
mov rcx, r13
call r9
test eax, eax
je 0x18000608b
xor ebx, ebx
mov dword [rsp + 0x24], ebx
test r15, r15
je 0x18000606f
nop dword [rax]
lea rcx, [rbx*8]
mov rax, qword [rcx + r15]
test rax, rax
je 0x18000605d
xor edx, edx
mov dword [rsp + 0x20], edx
xor r8d, r8d
test rax, rax
jns 0x180006038
movzx edx, ax
mov dword [rsp + 0x20], edx
jmp 0x180006043
add eax, 2
je 0x180006043
mov r8d, eax
add r8, r14
test rsi, rsi
je 0x180006055
lea r9, [rcx + r12]
mov rcx, r13
call rsi
test eax, eax
je 0x18000605d
inc ebx
mov dword [rsp + 0x24], ebx
jmp 0x180006010
test rsi, rsi
je 0x18000606f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rsi
add rdi, 0x14
mov qword [rsp + 0x28], rdi
jmp 0x180005fa6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x18000609f
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov eax, 1
jmp 0x1800060b9
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rdx
lea r9, [0x180007ff0]
mov rdx, rcx
lea r8, [0x180008190]
mov rcx, rax
jmp 0x180005ef0
Function at 0x1800060e0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18000611e
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800061aa
cmp dword [rsp + 0x40], 0x1000
jne 0x180006190
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x180006190
bt eax, 8
jb 0x180006190
mov rbx, qword [rsp + 0x28]
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x180006153
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800061aa
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
je 0x18000616e
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800061aa
cmp word [rax + rbx + 0x14], 0
jne 0x180006184
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800061aa
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rax, rbx
jmp 0x1800061aa
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800061aa
add rsp, 0x50
pop rbx
ret

Function at 0x1800067c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rbx + 8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rbx], rax
test rax, rax
mov rax, rbx
jne 0x1800067f2
mov dword [rbx + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180007f50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [rsp + 0x40]
mov edx, 8
mov rdi, rcx
mov rcx, rbx
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180007fb8
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbx]
mov qword [rax], rcx
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax]
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov rcx, qword [rax]
mov qword [rbx], rcx
lea edx, [r9 + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180007fd0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, r9
mov r13, rdx
mov r14, rcx
test rcx, rcx
jne 0x180005f22
call sub.KERNEL32.dll_GetModuleHandleW
mov r14, rax
mov eax, 0x5a4d
cmp word [r14], ax
je 0x180005f3e
mov ecx, 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
movsxd rax, dword [r14 + 0x3c]
cmp dword [rax + r14], 0x4550
je 0x180005f5d
mov ecx, 0xbf
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
cmp word [rax + r14 + 0x14], 0
jne 0x180005f77
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
mov ecx, dword [rax + r14 + 0x90]
test ecx, ecx
je 0x180005f89
lea rdi, [r14 + rcx]
jmp 0x180005f8b
xor edi, edi
mov qword [rsp + 0x28], rdi
test rdi, rdi
jne 0x180005fa6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
mov ecx, dword [rdi]
test ecx, ecx
je 0x18000608b
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x18000607d
mov ebx, eax
add rbx, r14
je 0x18000607d
lea r15, [r14 + rcx]
mov eax, dword [rdi + 0x10]
test eax, eax
je 0x180005fd7
lea r12, [r14 + rax]
jmp 0x180005fda
xor r12d, r12d
mov rcx, qword [r12]
call fcn.1800060e0
mov r9, qword [rsp + 0x70]
test r9, r9
je 0x180006001
mov r8, rbx
mov rdx, rax
mov rcx, r13
call r9
test eax, eax
je 0x18000608b
xor ebx, ebx
mov dword [rsp + 0x24], ebx
test r15, r15
je 0x18000606f
nop dword [rax]
lea rcx, [rbx*8]
mov rax, qword [rcx + r15]
test rax, rax
je 0x18000605d
xor edx, edx
mov dword [rsp + 0x20], edx
xor r8d, r8d
test rax, rax
jns 0x180006038
movzx edx, ax
mov dword [rsp + 0x20], edx
jmp 0x180006043
add eax, 2
je 0x180006043
mov r8d, eax
add r8, r14
test rsi, rsi
je 0x180006055
lea r9, [rcx + r12]
mov rcx, r13
call rsi
test eax, eax
je 0x18000605d
inc ebx
mov dword [rsp + 0x24], ebx
jmp 0x180006010
test rsi, rsi
je 0x18000606f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rsi
add rdi, 0x14
mov qword [rsp + 0x28], rdi
jmp 0x180005fa6
mov ecx, 0xc0
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1800060b9
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x18000609f
xor r8d, r8d
xor edx, edx
mov rcx, r13
call rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov eax, 1
jmp 0x1800060b9
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rdx
lea r9, [0x180007ff0]
mov rdx, rcx
lea r8, [0x180008190]
mov rcx, rax
jmp 0x180005ef0

Function at 0x180008350
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rcx, rax
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180008390
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x70
lea rdi, [rcx + rdx]
mov rbx, r8
cmp rcx, rdi
jae 0x180008422
nop dword [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180008422
mov rax, qword [rsp + 0x38]
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rdx, qword [rbx + 0x10]
je 0x180008406
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
add qword [rbx + 8], 0x18
jmp 0x180008413
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.180007c30
mov rcx, qword [rsp + 0x38]
add rcx, qword [rsp + 0x50]
cmp rcx, rdi
jb 0x1800083b0
mov r8, qword [rbx + 8]
movabs rbp, 0x2aaaaaaaaaaaaaab
mov r9, qword [rbx]
mov rcx, r8
sub rcx, r9
mov rax, rbp
imul rcx
xor edi, edi
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1800084dd
mov qword [rsp + 0x88], rsi
mov esi, edi
nop
sub r8, r9
mov rax, rbp
imul r8
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, rdi
jbe 0x1800084ef
movups xmm1, xmmword [rsi + r9]
lea r9, [rsp + 0x80]
mov r8d, 0x40
movdqa xmm0, xmm1
movq rcx, xmm1
psrldq xmm0, 8
movq rdx, xmm0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rbx + 8]
mov rax, rbp
mov r9, qword [rbx]
mov rcx, r8
sub rcx, r9
inc rdi
imul rcx
add rsi, 0x18
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jb 0x180008460
mov rsi, qword [rsp + 0x88]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.180008630
int3
Function at 0x180010430
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x40
mov ebx, dword [rsp + 0x98]
mov r14, rdx
mov edx, dword [rsp + 0x90]
mov rsi, r8
mov r8d, dword [rsp + 0x80]
mov eax, edx
or eax, ebx
mov rbp, r9
mov r15, rcx
test eax, 0xbfffffff
je 0x180010482
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180010528
mov eax, dword [rsp + 0x88]
test r8d, r8d
mov qword [rsp + 0x38], rbp
mov ecx, 0x1000
cmovne ecx, r8d
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
or edx, 1
mov dword [rsp + 0x20], ecx
mov r9d, 1
mov rcx, r15
mov qword [rsp + 0x60], rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rdi, rax
test rax, rax
je 0x180010514
mov qword [rsp + 0x30], 0
bts ebx, 7
mov dword [rsp + 0x28], ebx
mov r9, rbp
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x180010518
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x180010523
mov qword [r14], rdi
mov qword [rsi], rax
mov eax, 1
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x180010c10
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp dword [rcx + 0x5c], 0
mov edi, edx
mov rbx, rcx
je 0x180010dec
mov rcx, qword [rcx + 0x80]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x170], rsi
xor r9d, r9d
xor esi, esi
xor r8d, r8d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180010de3
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180010ce6
nop dword [rax]
mov rcx, qword [rbx + 0x80]
lea r9, [rsp + 0x34]
mov r8d, 0xfa
mov qword [rsp + 0x20], rsi
cmp eax, r8d
lea rdx, [rsp + 0x40]
cmovb r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180010d99
mov eax, dword [rsp + 0x34]
cmp rax, 0xfb
jae 0x180010df0
lea rdx, [rsp + 0x40]
mov byte [rsp + rax + 0x40], sil
lea rcx, [0x18004f73c]
call qword [case.0x1800256af.0]
mov eax, dword [rsp + 0x30]
sub eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
jne 0x180010c80
mov rcx, qword [rbx + 0x70]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180010dda
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180010d83
nop word [rax + rax]
mov rcx, qword [rbx + 0x70]
lea r9, [rsp + 0x34]
mov r8d, 0xfa
mov qword [rsp + 0x20], rsi
cmp eax, r8d
lea rdx, [rsp + 0x40]
cmovb r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180010dd1
mov eax, dword [rsp + 0x34]
cmp rax, 0xfb
jae 0x180010df6
lea rdx, [rsp + 0x40]
mov byte [rsp + rax + 0x40], sil
lea rcx, [0x18004f73c]
call qword [case.0x1800256af.0]
mov eax, dword [rsp + 0x30]
sub eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
jne 0x180010d20
mov rcx, qword [rbx + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
sete al
jmp 0x180010da8
lea rcx, str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdErr_ReadFile._n
call qword [case.0x1800256af.0]
xor al, al
mov rsi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18004a540
mov rbx, qword [rsp + 0x178]
add rsp, 0x150
pop rdi
ret
lea rcx, str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdOut_ReadFile._n
jmp 0x180010da0
lea rcx, str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdOut_PeekNamedPipe._n
jmp 0x180010da0
lea rcx, str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdErr_PeekNamedPipe._n
jmp 0x180010da0
xor al, al
jmp 0x180010db0
call fcn.18004a798
int3
call fcn.18004a798
int3
Function at 0x180011150
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
sub rsp, 0x38
cmp dword [rcx + 0x5c], 1
mov rbp, r8
mov rbx, rcx
je 0x18001116c
xor al, al
add rsp, 0x38
pop rbp
pop rbx
ret
mov qword [rsp + 0x58], rsi
mov esi, dword [rcx + 0x30]
mov ecx, dword [rcx + 0x18]
mov qword [rsp + 0x60], rdi
sub ecx, 1
je 0x1800111a2
sub ecx, 1
je 0x18001119b
sub ecx, 1
je 0x180011194
cmp ecx, 1
je 0x18001119b
xor edi, edi
jmp 0x1800111a7
mov edi, 1
jmp 0x1800111a7
mov edi, 4
jmp 0x1800111a7
mov edi, 3
imul edi, dword [rbx + 0x1c]
mov eax, edi
cmp rax, qword [rbx + 0x28]
jne 0x1800111b7
imul edi, dword [rbx + 0x20]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x30], r15
test esi, esi
je 0x180011273
mov r15d, edi
lea r14, [rbx + 0x90]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x68]
xor r9d, r9d
mov r8d, edi
mov qword [rsp + 0x20], r14
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180011266
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x18001123b
nop dword [rax]
xor edx, edx
mov rcx, rbx
call fcn.180010c10
test al, al
je 0x18001123b
mov rcx, qword [rbx + 0xa8]
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180011247
cmp eax, 0x102
je 0x180011210
mov rcx, rbx
call fcn.1800105c0
xor al, al
jmp 0x180011275
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x50]
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x18001123b
cmp dword [rsp + 0x50], esi
jne 0x18001123b
sub esi, edi
add rbp, r15
test esi, esi
jne 0x1800111e0
mov al, 1
mov r14, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x38
pop rbp
pop rbx
ret

Function at 0x180014b40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180014c13
cmp byte [rcx + 0x71], 0
je 0x180014c13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180014c0f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180014bd4
sub eax, 1
je 0x180014bd8
cmp eax, 2
jne 0x180014c0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004a540
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180014c06
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180014c0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180014bbc
xor al, al
jmp 0x180014bbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18004a540
add rsp, 0x60
pop rbx
ret
Function at 0x180014de0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x180067d80]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x180014e0d
xor eax, eax
jmp 0x180014f76
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x180014e4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x180014e4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x180014f6e
cmp qword [rdi + 0x80], 0
je 0x180014f69
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x180014e87
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x180014eb2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x180014f6e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180014f21
sub eax, 1
je 0x180014f21
cmp eax, 2
jne 0x180014f69
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x180014f6e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x180014f4f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x180014f69
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x180014f6e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18004a540
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret