joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402dbe70
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x4f]
sub rsp, 0xd0
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov qword [rbp - 0x39], rdx
mov rbx, r8
test r9d, r9d
je 0x1402dbeab
mov eax, 0xc000000d
jmp 0x1402dc05e
call fcn.1402c0d20
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.1402c32a0
test al, al
jne 0x1402dbecf
mov eax, 0xc0000022
jmp 0x1402dc05e
call fcn.1402c9100
mov rdi, rax
test rax, rax
je 0x1402dbec5
and qword [rsp + 0x28], 0
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rsp + 0x20], 0x1000
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
movdqu xmmword [rbp - 0x51], xmm0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140010610
mov r10, qword [rbp - 0x51]
test r10, r10
je 0x1402dc018
cmp r10, 0xffffffffffffffff
je 0x1402dbf4f
xor r9d, r9d
mov qword [rsp + 0x20], 0x1000
xor r8d, r8d
mov rcx, r10
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r10, qword [rbp - 0x51]
mov rcx, rax
mov qword [rbp - 0x49], rax
jmp 0x1402dbf53
mov rcx, qword [rbp - 0x49]
lea rax, [r10 + 1]
test rax, 0xfffffffffffffffe
je 0x1402dc01c
test rcx, rcx
je 0x1402dc01c
mov eax, 0x20
lea edx, [rax + 0x60]
movups xmm0, xmmword [rbx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rcx + 0x60], xmm0
add rcx, rdx
movups xmm1, xmmword [rbx + 0x70]
add rbx, rdx
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1402dbf74
xor edx, edx
lea r8d, [rax + 0x58]
lea rcx, [rbp - 0x21]
call fcn.1402e2e70
mov rdx, rdi
lea rcx, [rbp - 0x31]
call fcn.1402c9570
mov rax, qword [rbp - 0x51]
lea r9, [rbp - 0x41]
mov qword [rbp - 0x41], rax
lea r8, [rbp - 0x39]
lea rax, [rbp - 0x21]
mov edx, 0x1d
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x20], rax
call fcn.1402db160
mov rcx, qword [rbp - 0x49]
mov r10, qword [rbp - 0x51]
test eax, eax
je 0x1402dc013
mov ebx, 0xc0000022
jmp 0x1402dc021
mov ebx, dword [rbp - 0x19]
jmp 0x1402dc021
mov rcx, qword [rbp - 0x49]
mov ebx, 0xc000000d
test rcx, rcx
je 0x1402dc030
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r10, qword [rbp - 0x51]
lea rcx, [r10 - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1402dc05c
call fcn.14002ddc0
mov r8, qword [rbp + 0x57]
lea rdx, [rbp - 0x51]
mov rcx, qword [rbp - 0x51]
mov r9, rax
call fcn.14002e980
mov rcx, qword [rbp - 0x51]
call fcn.14002e070
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1402e0100
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1402dd3e0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x280]
mov r13, r9
mov r15, qword [rbp + 0x2a0]
mov rsi, r8
mov r14, qword [rbp + 0x2b0]
mov rdi, rdx
mov qword [rsp + 0x50], rax
mov r12, rcx
mov rax, qword [rbp + 0x298]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x2a8]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x80], r8
mov qword [rsp + 0x78], r15
call fcn.1402c0d20
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.1402c32b0
xor ebx, ebx
test al, al
je 0x1402dd4c3
mov rax, qword [rsp + 0x68]
mov r8, r13
mov r9, qword [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x48], r14
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x290]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x288]
mov dword [rsp + 0x20], eax
call r12
test eax, eax
je 0x1402dd4c3
lea eax, [rbx + 1]
jmp 0x1402dd5be
call fcn.1402c0d20
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x10]
mov rcx, rax
call fcn.1402c32a0
test al, al
je 0x1402dd5bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov rcx, r14
mov esi, eax
lea r15d, [r8 + 0x17]
mov edx, r15d
call fcn.1402c9550
test al, al
je 0x1402dd5b4
call fcn.1402c9100
mov rdi, rax
test rax, rax
je 0x1402dd5b4
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp - 0x10]
mov rdx, rdi
dec eax
cmp eax, 0x102
cmova rcx, rbx
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x68]
call fcn.1402c9570
xor edx, edx
lea r8d, [r15 + 0x40]
lea rcx, [rbp - 0x70]
call fcn.1402e2e70
lea rax, [rbp - 0x70]
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x38], rax
lea r9, [rbp - 0x80]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x78]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea edx, [r15 - 0xb]
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.1402dcf50
test eax, eax
jne 0x1402dd5b4
mov ecx, dword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbp - 0x68], ebx
sete bl
mov eax, ebx
jmp 0x1402dd5be
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1402e0100
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1402f1400
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1402f127f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1402f127f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1402f127f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1402f127f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1402f127f
cmp dword [rcx + 0x84], 0xe
jbe 0x1402f127f
cmp dword [rcx + 0xf8], 0
je 0x1402f127f
mov ecx, ebx
call fcn.1402f1320
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1402f10fc
cmp dword [rbp + 0x20], 0
je 0x1402f12cc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1402f12d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1402f1218
Function at 0x1402fbf20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
movsxd r13, ecx
lea r10, [0x140466730]
mov rdi, r13
mov r15, r13
sar r15, 6
and edi, 0x3f
shl rdi, 6
mov r14, rdx
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
mov rcx, qword [rax + rdi + 0x28]
mov qword [rsp + 0x98], rcx
test r8, r8
je 0x1402fbf78
cmp word [rdx], r9w
jne 0x1402fbf78
or byte [rax + rdi + 0x38], 4
jmp 0x1402fbf7d
and byte [rax + rdi + 0x38], 0xfb
lea r12, [rdx + r8*2]
mov rsi, rdx
mov rbx, rdx
cmp rdx, r12
jae 0x1402fc133
lea rbp, [rdx + 2]
mov edx, 0xd
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x1402fc115
cmp ax, dx
je 0x1402fbfbf
mov word [rbx], ax
add rbx, 2
add rsi, 2
add rbp, 2
jmp 0x1402fc060
cmp rbp, r12
jae 0x1402fbfe5
cmp word [rbp], r9w
jne 0x1402fbfe0
add rsi, 4
mov word [rbx], r9w
add rbp, 4
add rbx, 2
jmp 0x1402fc060
mov word [rbx], dx
jmp 0x1402fbfae
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x80]
add rsi, 2
add rbp, 2
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402fc0f9
cmp dword [rsp + 0x90], 0
je 0x1402fc0f9
lea r10, [0x140466730]
mov r9d, 0xa
mov rax, qword [r10 + r15*8]
test byte [rax + rdi + 0x38], 0x48
je 0x1402fc0aa
movzx eax, word [rsp + 0x80]
cmp ax, r9w
jne 0x1402fc06e
mov word [rbx], r9w
add rbx, 2
mov edx, 0xd
mov rcx, qword [rsp + 0x98]
cmp rsi, r12
jb 0x1402fbf99
jmp 0x1402fc133
mov ecx, 0xd
mov word [rsp + 0x88], ax
mov word [rbx], cx
add rbx, 2
xor edx, edx
mov rcx, qword [r10 + r15*8]
mov al, byte [rsp + rdx + 0x88]
add rcx, rdi
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, 2
jl 0x1402fc084
mov rax, qword [r10 + r15*8]
mov byte [rax + rdi + 0x3c], r9b
jmp 0x1402fc053
cmp word [rsp + 0x80], r9w
jne 0x1402fc0ba
cmp rbx, r14
je 0x1402fc04b
mov rdx, 0xfffffffffffffffe
mov ecx, r13d
lea r8d, [rdx + 3]
call fcn.14030162c
mov r9d, 0xa
lea r10, [0x140466730]
cmp word [rsp + 0x80], r9w
je 0x1402fc053
lea edx, [r9 + 3]
mov word [rbx], dx
add rbx, 2
jmp 0x1402fc058
mov edx, 0xd
lea r10, [0x140466730]
mov word [rbx], dx
add rbx, 2
lea r9d, [rdx - 3]
jmp 0x1402fc058
mov rcx, qword [r10 + r15*8]
mov al, byte [rcx + rdi + 0x38]
test al, 0x40
jne 0x1402fc129
or al, 2
mov byte [rcx + rdi + 0x38], al
jmp 0x1402fc133
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, 2
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1403012a4
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 0x140301140
call fcn.1402ea800
mov dword [rax], 0x16
call fcn.1402e5d20
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 0x140301128
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140301128
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140301172
lock or dword [rax + 0x14], 0x10
jmp 0x140301128
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14030118f
mov rcx, qword [rbp + 0x10]
call fcn.140301634
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1402f21c0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1402fc44c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1403011e6
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 0x140301128
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140301255
mov rcx, qword [rbp + 0x10]
call fcn.1402f21c0
cmp eax, 0xffffffff
je 0x14030123c
mov rcx, qword [rbp + 0x10]
call fcn.1402f21c0
cmp eax, 0xfffffffe
je 0x14030123c
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1402f21c0
movsxd rdi, eax
lea rsi, [0x140466730]
mov rcx, rbx
sar rdi, 6
call fcn.1402f21c0
mov rdx, qword [rsi + rdi*8]
and eax, 0x3f
shl rax, 6
add rdx, rax
jmp 0x140301243
lea rdx, [0x14045dbe0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140301255
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14030128b
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140301287
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140301287
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 0x14030112b
jmp 0x1403010f8
Function at 0x140316900
Capabilities:
Encode data using xor

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, 0x50
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
lea r11, [rcx + 1]
mov rbp, rdx
lea rbx, [rsp + 4]
lea edi, [rsi + 4]
movzx eax, byte [r11 + 2]
movzx ecx, byte [r11 + 1]
movzx r9d, byte [r11 - 1]
movzx edx, byte [r11]
lea r11, [r11 + 0x20]
lea r10d, [r9 + rcx]
sub r9d, ecx
lea r8d, [rax + rdx]
sub edx, eax
lea eax, [r8 + r10]
sub r10d, r8d
mov dword [rbx - 4], eax
mov dword [rbx + 8], r10d
lea eax, [r9 + rdx]
sub r9d, edx
mov dword [rbx + 4], r9d
mov dword [rbx], eax
lea rbx, [rbx + 0x10]
sub rdi, 1
jne 0x140316939
add rbp, 8
lea rdi, [rsp + 0x30]
mov r14d, 4
mov ecx, dword [rdi - 0x10]
mov eax, dword [rdi]
mov ebx, dword [rdi - 0x30]
mov r11d, dword [rdi - 0x20]
lea rdi, [rdi + 4]
lea r9d, [rbx + rcx]
sub ebx, ecx
movzx ecx, word [rbp + 0x10]
lea r8d, [r11 + rax]
sub r11d, eax
mov eax, ebx
sub eax, r11d
cdq
mov r10d, eax
movzx eax, word [rbp + 8]
xor r10d, edx
sub r10d, edx
imul r10d, eax
mov eax, r9d
sub eax, r8d
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
movzx ecx, word [rbp - 8]
add r10d, eax
lea eax, [r8 + r9]
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
movzx ecx, word [rbp]
lea rbp, [rbp + 2]
add r10d, eax
lea eax, [rbx + r11]
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
add esi, eax
add esi, r10d
sub r14, 1
jne 0x140316991
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402e0100
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret

Function at 0x14031d170
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movsxd r11, edx
mov r9, r8
mov r10, rcx
test edx, edx
jle 0x14031d1b7
sub r10, r8
mov r8d, dword [r10 + r9]
mov eax, r8d
shr eax, 8
movzx ecx, al
mov eax, r8d
and eax, 0xffff00ff
mov edx, ecx
shl edx, 0x10
or edx, ecx
add edx, eax
xor edx, r8d
and edx, 0xff00ff
xor edx, r8d
mov dword [r9], edx
lea r9, [r9 + 4]
sub r11, 1
jne 0x14031d180
ret

Function at 0x14031d210
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
movsxd rax, edx
mov r10, rcx
lea rdx, [rcx + rax*4]
mov r9, rdx
sub r9, rcx
add r9, 3
shr r9, 2
cmp rcx, rdx
cmova r9, r11
test r9, r9
je 0x14031d27b
mov edx, dword [r10]
inc r11
mov ecx, edx
lea r10, [r10 + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xd
xor cl, al
mov eax, edx
and cl, 7
shr eax, 0x10
xor cl, al
mov eax, edx
mov byte [r8], cl
mov ecx, edx
shr ecx, 5
lea r8, [r8 + 2]
shr eax, 3
xor cl, al
shr edx, 5
and cl, 0x1f
xor cl, dl
mov byte [r8 - 1], cl
cmp r11, r9
jb 0x14031d237
ret
Function at 0x14031d280
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
movsxd rax, edx
mov r10, rcx
lea rdx, [rcx + rax*4]
mov r9, rdx
sub r9, rcx
add r9, 3
shr r9, 2
cmp rcx, rdx
cmova r9, r11
test r9, r9
je 0x14031d2e2
mov edx, dword [r10]
inc r11
mov ecx, edx
lea r10, [r10 + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xc
xor cl, al
mov eax, edx
shr eax, 0x10
and cl, 0xf
xor cl, al
mov eax, edx
shr eax, 0x1c
xor al, dl
mov byte [r8], cl
and al, 0xf
lea r8, [r8 + 2]
xor al, dl
mov byte [r8 - 1], al
cmp r11, r9
jb 0x14031d2a7
ret

Function at 0x14032ec50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x14045d5f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea ebx, [r8 - 1]
movsxd rsi, edx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
mov r14d, r9d
call fcn.1402e2e70
cmp ebx, 2
jle 0x14032edea
lea eax, [rsi - 1]
mov r13, rsi
movsxd r15, eax
lea ebp, [rbx - 3]
lea eax, [r14 + r14]
shr ebp, 1
movsxd r12, eax
mov rsi, rdi
neg rsi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rsi
inc ebp
lea r11, [r12 + rdi]
movzx eax, byte [r11]
mov dword [rsp + 0x20], eax
cmp r15, 2
jle 0x14032eddd
mov r12d, dword [rsp + 0x20]
lea rcx, [rdi - 1]
add rcx, rsi
lea rbx, [r15 - 3]
mov r14, r13
shr rbx, 1
neg r14
lea rax, [r11 + 2]
inc rbx
mov rsi, rcx
mov rdi, rax
movzx r10d, byte [rdi]
lea rax, [r14 + rdi]
movzx ecx, byte [rax + r13 - 1]
lea rdi, [rdi + 2]
movzx r8d, byte [rax]
movzx eax, byte [rax + rsi]
mov r9d, r8d
sub r9d, eax
mov eax, r10d
sub eax, r12d
add r9d, ecx
cdq
xor eax, edx
sub eax, edx
cdqe
sar rax, 4
mov dword [rsp + rax*4 + 0x50], 1
mov eax, r10d
sub eax, ecx
mov ecx, r9d
cdq
sar ecx, 0x1f
xor eax, edx
and ecx, 0xffffff01
sub eax, edx
add ecx, 0xff
cdqe
sar rax, 4
mov dword [rsp + rax*4 + 0x90], 1
mov eax, r10d
sub eax, r8d
cdq
xor eax, edx
sub eax, edx
cdqe
sar rax, 4
mov dword [rsp + rax*4 + 0xd0], 1
mov eax, r9d
and eax, 0xffffff00
mov eax, r10d
cmove ecx, r9d
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cdqe
sar rax, 4
mov dword [rsp + rax*4 + 0x110], 1
lea eax, [r10 + r12*2]
add r12d, 2
add r12d, eax
sar r12d, 2
sub rbx, 1
jne 0x14032ed09
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
add r11, r12
sub rbp, 1
jne 0x14032ecd1
xor r10d, r10d
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov r11d, 0x7fffffff
xor ecx, ecx
xor r9d, r9d
lea ebx, [rcx + 0x10]
cmp dword [rdx], 0
lea eax, [rcx + r9]
cmovle eax, ecx
inc r9d
add rdx, 4
mov ecx, eax
sub rbx, 1
jne 0x14032ee03
cmp eax, r11d
jge 0x14032ee27
mov r11d, eax
mov r10d, r8d
inc r8d
cmp r8d, 4
jl 0x14032edfb
mov eax, r10d
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1402e0100
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140333010
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x140
xor ebx, ebx
lea rdx, [rax + 0x10]
mov dword [rsp + 0x158], ebx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14033308c
lea ecx, [rbx + 2]
call fcn.14001ea00
test al, al
je 0x140333077
call sub.KERNEL32.dll_GetLastError
lea r9d, [rbx + 2]
mov dword [rsp + 0x20], eax
mov r8d, 0x102
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rcx, [rsp + 0x30]
call fcn.14001d3a0
lea rdx, [0x14041f698]
lea rcx, [rax + 0x10]
call fcn.14000c340
mov ebx, 1
test bl, 1
je 0x140333086
lea rcx, [rsp + 0x30]
call fcn.14001d920
or rax, 0xffffffffffffffff
jmp 0x140333094
mov rax, qword [rsp + 0x158]
add rsp, 0x140
pop rbx
ret

Function at 0x140333600
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x140
xor ebx, ebx
lea r8, [rax + 0x10]
mov edx, ebx
mov dword [rsp + 0x158], ebx
xor r9d, r9d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140333682
lea edi, [rbx + 2]
mov ecx, edi
call fcn.14001ea00
test al, al
je 0x140333671
call sub.KERNEL32.dll_GetLastError
mov r9d, edi
mov dword [rsp + 0x20], eax
mov r8d, 0xe9
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rcx, [rsp + 0x30]
call fcn.14001d3a0
lea rdx, [0x14041f670]
lea rcx, [rax + 0x10]
call fcn.14000c340
mov ebx, edi
test dil, bl
je 0x14033368c
lea rcx, [rsp + 0x30]
call fcn.14001d920
jmp 0x14033368c
cmp qword [rsp + 0x158], rbx
je 0x140333690
xor al, al
jmp 0x1403336e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1403336e6
lea edi, [rax + 2]
mov ecx, edi
call fcn.14001ea00
test al, al
je 0x1403336e1
lea ebx, [rdi - 1]
call sub.KERNEL32.dll_GetLastError
mov r9d, edi
mov dword [rsp + 0x20], eax
mov r8d, 0xf3
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rcx, [rsp + 0x30]
call fcn.14001d3a0
lea rdx, [0x14041f688]
lea rcx, [rax + 0x10]
call fcn.14000c340
test bl, 1
jmp 0x140333674
mov al, 1
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
Function at 0x140333920
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14045e260]
mov rdi, r8
cmp rax, r8
mov rsi, rdx
mov rbx, rcx
cmovb edi, eax
jmp 0x1403339bf
or dword [rsp + 0x168], 0xffffffff
cmp dword [rsp + 0x160], 0xffffffff
jne 0x1403339a1
lea r8, str.bytes_read___static_cast_DWORD___1_
lea rdx, [rsp + 0x168]
lea rcx, [rsp + 0x160]
call fcn.14001ceb0
test rax, rax
je 0x1403339a1
mov r9, rax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
mov r8d, 0x7d
lea rcx, [rsp + 0x30]
call fcn.14001d2e0
lea rcx, [rsp + 0x30]
call fcn.14001d4f0
cmp dword [rsp + 0x160], 0
jne 0x140333a01
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x140333a01
mov rdx, rsi
mov rcx, rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x160]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14033394a
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x6d
neg eax
sbb rax, rax
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov eax, dword [rsp + 0x160]
jmp 0x1403339ec
Function at 0x14033ab70
Capabilities:
Check os version
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov dil, dl
mov rbx, rcx
test dl, dl
je 0x14033abc2
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x14033abc2
xor eax, eax
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
lea rax, [0x1404204a0]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], 1
cmp qword [rbx + 0x18], 8
jb 0x14033abcc
mov rbx, qword [rbx]
mov qword [rsp + 0x38], rsi
mov eax, 0x200
neg dil
mov r9d, 2
mov rcx, rbx
sbb edx, edx
and dword [rsp + 0x30], 0
and edx, 0x80000
mov dword [rsp + 0x28], eax
add edx, 3
mov dword [rsp + 0x20], eax
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14033afe0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x140
xor edi, edi
lea r8, [0x14033b090]
mov rbx, rcx
mov qword [rsp + 0x28], rdi
mov r9, rcx
mov dword [rsp + 0x20], edi
xor edx, edx
mov dword [rsp + 0x150], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14033b065
call sub.KERNEL32.dll_GetLastError
lea r9d, [rdi + 3]
mov dword [rsp + 0x20], eax
lea r8d, [rdi + 0x19]
lea rdx, str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
lea rcx, [rsp + 0x30]
call fcn.14001d3a0
lea rdx, str.Check_failed:_platform_thread_.
lea rcx, [rax + 0x10]
call fcn.14000c340
mov rcx, rax
lea rdx, [0x14040a178]
call fcn.14000c340
mov edi, 1
test dil, 1
je 0x14033b075
lea rcx, [rsp + 0x30]
call fcn.14001d920
mov rbx, qword [rsp + 0x158]
add rsp, 0x140
pop rdi
ret