joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f410
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r12, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov rdi, qword [rsp + 0xb0]
mov rbx, qword [rdi]
mov rbx, qword [rbx + 0x78]
mov qword [rax + 0x28], rbx
mov qword [rax - 0x48], rdi
mov rdx, rdi
mov ecx, 0xc0
call fcn.14000ba60
mov rsi, rax
mov qword [rsp + 0x48], rax
xor r13d, r13d
mov qword [rax + 0x20], r13
lea rax, [0x14000ff30]
mov qword [rsi + 0x28], rax
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
mov dword [rsi + 0x30], r13d
movups xmm0, xmmword [r12]
movups xmmword [rsi + 0x38], xmm0
lea rdx, [rsi + 0x48]
mov rax, qword [rdi]
mov qword [rdi], r13
mov qword [rdx], rax
lea rcx, [rsi + 0x50]
mov r8, qword [rsp + 0xb8]
call fcn.14000fc90
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x14000f51d
lea r8d, [r13 + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xb0]
call fcn.14000bbe0
lea rax, vtable.asio::detail::cancellation_handler_class_asio::detail::win_iocp_handle_service::iocp_op_cancellation_.0
mov rdx, qword [rsp + 0x30]
mov qword [rdx], rax
mov rax, qword [r14]
mov qword [rdx + 0x28], r13
lea r8, [0x14000d270]
mov qword [rdx + 0x30], r8
mov qword [rdx + 8], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov qword [rdx + 0x20], r13
mov dword [rdx + 0x38], r13d
mov qword [rdx + 0x40], rax
mov qword [rdx + 0x48], rsi
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x50], rax
mov qword [rbx], rdx
lea rsi, [rdx + 8]
mov rdi, qword [r12]
mov rbx, qword [r12 + 8]
cmp dword [r14 + 8], r13d
jne 0x14000f538
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [r14 + 8], eax
jmp 0x14000f54c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [r14 + 8], eax
je 0x14000f54c
mov dword [r14 + 8], 0xffffffff
mov rax, qword [rbp + 0x28]
lock inc dword [rax + 0x30]
cmp qword [r14], 0xffffffffffffffff
jne 0x14000f574
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cd30
jmp 0x14000f5fc
test rbx, rbx
jne 0x14000f58d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cd30
jmp 0x14000f5fc
mov dword [rsp + 0xb0], r13d
mov dword [rsi + 0x10], r15d
shr r15, 0x20
mov dword [rsi + 0x14], r15d
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xb0]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000f5f0
cmp eax, 0x3e5
je 0x14000f5f0
cmp eax, 0xea
je 0x14000f5f0
mov r9d, dword [rsp + 0xb0]
mov r8d, eax
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cd30
jmp 0x14000f5fc
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cc90
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
lea rcx, [rsp + 0x40]
call fcn.14000fa10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000f630
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, r9
mov r15, r8
mov r14, rdx
mov rbp, rcx
mov rdi, qword [rsp + 0xc0]
mov rbx, qword [rdi]
mov rbx, qword [rbx + 0x78]
mov qword [rax + 0x28], rbx
mov qword [rax - 0x48], rdi
mov rdx, rdi
mov ecx, 0xc0
call fcn.14000ba60
mov rsi, rax
mov qword [rsp + 0x58], rax
xor r13d, r13d
mov qword [rax + 0x20], r13
lea rax, [0x14000faa0]
mov qword [rsi + 0x28], rax
mov qword [rsi], r13
mov qword [rsi + 8], r13
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
mov dword [rsi + 0x30], r13d
movups xmm0, xmmword [r12]
movups xmmword [rsi + 0x38], xmm0
lea rdx, [rsi + 0x48]
mov rax, qword [rdi]
mov qword [rdi], r13
mov qword [rdx], rax
lea rcx, [rsi + 0x50]
mov r8, qword [rsp + 0xc8]
call fcn.14000fc90
mov qword [rsp + 0x60], rsi
test rbx, rbx
je 0x14000f73d
lea r8d, [r13 + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc0]
call fcn.14000bbe0
lea rax, vtable.asio::detail::cancellation_handler_class_asio::detail::win_iocp_handle_service::iocp_op_cancellation_.0
mov rdx, qword [rsp + 0x30]
mov qword [rdx], rax
mov rax, qword [r14]
mov qword [rdx + 0x28], r13
lea r8, [0x14000d270]
mov qword [rdx + 0x30], r8
mov qword [rdx + 8], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov qword [rdx + 0x20], r13
mov dword [rdx + 0x38], r13d
mov qword [rdx + 0x40], rax
mov qword [rdx + 0x48], rsi
mov rax, qword [rsp + 0x38]
mov qword [rdx + 0x50], rax
mov qword [rbx], rdx
lea rsi, [rdx + 8]
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x40], xmm0
cmp dword [r14 + 8], r13d
jne 0x14000f759
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [r14 + 8], eax
jmp 0x14000f76d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [r14 + 8], eax
je 0x14000f76d
mov dword [r14 + 8], 0xffffffff
mov rax, qword [rbp + 0x28]
lock inc dword [rax + 0x30]
cmp qword [r14], 0xffffffffffffffff
jne 0x14000f795
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cd30
jmp 0x14000f824
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14000f7b3
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cd30
jmp 0x14000f824
mov dword [rsp + 0xc0], r13d
mov dword [rsi + 0x10], r15d
shr r15, 0x20
mov dword [rsi + 0x14], r15d
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xc0]
mov r8d, eax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000f818
cmp eax, 0x3e5
je 0x14000f818
cmp eax, 0xea
je 0x14000f818
mov r9d, dword [rsp + 0xc0]
mov r8d, eax
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cd30
jmp 0x14000f824
mov rdx, rsi
mov rcx, qword [rbp + 0x28]
call fcn.14000cc90
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
lea rcx, [rsp + 0x50]
call fcn.14000fa10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140010100
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x40]
sub rsp, 0x140
xor edi, edi
mov dword [rbp + 0x70], edi
mov rax, qword [rdx]
mov qword [rdx], rdi
mov qword [rbp + 0x68], rax
mov rax, qword [rcx + 0x30]
mov rbx, qword [rax + 0x20]
mov rax, qword [rcx + 0x18]
mov rdx, qword [rax + 0x18]
call rdx
lea r8, [0x14007533b]
mov rdx, rax
lea rcx, [rsp + 0x58]
call rbx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x38]
call fcn.14000daa0
nop
cmp qword [rsp + 0x78], rdi
je 0x140010171
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call rdx
nop
mov dword [rbp + 0x70], 7
mov rax, qword [rbp - 8]
mov rbx, qword [rax + 0x88]
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax + 0x18]
lea rcx, [rbp - 0x38]
call rdx
lea r8, [rbp + 0x78]
mov rdx, rax
lea rcx, [rsp + 0x58]
call rbx
mov dword [rbp + 0x70], 0x47
lea rdx, [rsp + 0x58]
lea rcx, [rbp]
call fcn.14000daa0
nop
cmp qword [rsp + 0x78], 0
je 0x1400101cd
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call rdx
nop
lea rdx, [rbp]
lea rcx, [rbp - 0x70]
call fcn.14000daa0
mov dword [rbp + 0x70], 0x7f
cmp qword [rbp + 0x20], 0
je 0x1400101f6
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
lea rcx, [rbp]
call rdx
nop
cmp qword [rbp - 0x50], 0
je 0x140010322
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x140010233
lea rcx, [0x140010970]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x68]
mov qword [rsp + 0x38], rcx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call rax
jmp 0x1400102db
mov rbx, qword [rcx + 0x10]
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x68], rdi
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140088f24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001026c
mov rdx, qword [rax + 8]
jmp 0x14001026f
mov rdx, rdi
mov r8d, 0x18
call fcn.140010990
mov qword [rsp + 0x50], rdi
mov rcx, qword [rbp + 0x60]
mov qword [rbp + 0x60], rdi
mov qword [rax + 8], rcx
lea rcx, [0x140010b20]
mov qword [rax], rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x40]
call fcn.1400108c0
nop
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x1400102bd
mov rdx, qword [rax]
mov rcx, rdx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x70]
call rbx
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400102db
mov rax, qword [rcx]
xor edx, edx
call rax
nop
cmp qword [rbp - 0x50], 0
je 0x1400102f0
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
lea rcx, [rbp - 0x70]
call rdx
nop
cmp qword [rbp - 0x18], 0
je 0x140010305
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
lea rcx, [rbp - 0x38]
call rdx
nop
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x140010317
mov rdx, qword [rax]
mov rcx, rdx
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
add rsp, 0x140
pop rdi
pop rbx
pop rbp
ret
lea rcx, [rsp + 0x40]
call fcn.14000bb50
nop
lea rcx, [rsp + 0x40]
call fcn.14000e490
int3
Function at 0x140010410
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov r9, rdx
cmp qword [rcx + 0x20], 0
jne 0x14001044a
cmp qword [rcx + 0x58], 0
jne 0x14001044a
mov rdx, r8
mov rcx, r9
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
jmp fcn.1400105b0
lea rbx, [rcx + 0x38]
cmp qword [rbx + 0x20], 0
je 0x140010554
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14001048e
lea rcx, [0x140010b10]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], r9
lea rdx, [rbp - 0x50]
mov rcx, rbx
call rax
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rcx + 0x10]
mov rax, qword [rdx]
xor esi, esi
mov qword [rdx], rsi
mov qword [rbp - 0x28], rax
movups xmm0, xmmword [rdx + 8]
movups xmmword [rbp - 0x20], xmm0
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x28]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x40], rax
mov ecx, dword [0x140088f24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400104d5
mov rdx, qword [rax + 8]
jmp 0x1400104d8
mov rdx, rsi
mov r8d, 0x30
call fcn.140010990
mov qword [rbp - 0x30], rsi
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x28], rsi
mov qword [rax + 8], rcx
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rax + 0x10], xmm0
mov rcx, qword [rbp - 0x10]
mov qword [rax + 0x20], rcx
lea rcx, [0x140010b90]
mov qword [rax], rcx
mov qword [rbp + 0x38], rax
mov qword [rbp - 0x38], rsi
lea rcx, [rbp - 0x40]
call fcn.140010a70
nop
lea rcx, [rbp - 0x28]
call fcn.14000f1d0
nop
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rdi
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140010544
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x40]
call fcn.14000bb50
nop
lea rcx, [rbp - 0x40]
call fcn.14000e490
int3

Function at 0x140010750
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x78]
test rbx, rbx
je 0x1400107e6
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400107e6
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ecx, dword [0x140088f24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010799
mov rdx, qword [rax + 8]
jmp 0x14001079b
xor edx, edx
mov r9, qword [rsp + 0x28]
mov rdi, rbx
mov r8, qword [rsp + 0x20]
cmp r9, 0x3fc
ja 0x1400107d2
test rdx, rdx
je 0x1400107d2
mov ecx, 6
mov eax, ecx
nop dword [rax]
cmp qword [rdx + rax*8], 0
je 0x1400107ec
inc ecx
inc rax
cmp rax, 8
jl 0x1400107c0
mov rcx, r8
call fcn.140031bf4
mov qword [rdi], 0
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
movzx eax, byte [r9 + r8]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
mov qword [rdi], 0
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
Function at 0x1400108c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x1400108f0
mov rax, qword [rax + 8]
test rax, rax
je 0x1400108e8
mov rax, qword [rax]
mov rcx, rax
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140010942
mov ecx, dword [0x140088f24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010932
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140010932
mov ecx, 4
mov eax, ecx
nop word [rax + rax]
cmp qword [rdx + rax*8], 0
je 0x14001094d
inc ecx
inc rax
cmp rax, 6
jl 0x140010920
mov rcx, rbx
call fcn.140031bf4
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x18]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140010a70
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140010a97
add rcx, 8
call fcn.14000f1d0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140010ae3
mov ecx, dword [0x140088f24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010ad3
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140010ad3
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140010aee
inc ecx
inc rax
cmp rax, 6
jl 0x140010ac1
mov rcx, rbx
call fcn.140031bf4
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x30]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140011330
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140011347
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001136e
test al, 1
je 0x14001136e
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140011363
mov rcx, qword [rbx]
xor eax, 1
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14001137b
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rdi, 0xffffffffffffffff
jne 0x140011417
lea ecx, [rax - 0x20]
cmp ecx, 1
ja 0x14001140a
mov rcx, rbx
call fcn.140027690
test al, al
je 0x140011417
cmp qword [rbx + 0x18], 8
jb 0x1400113d3
mov rbx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011417
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x140012100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
mov rbx, r8
je 0x140012198
test r8, r8
jle 0x140012190
nop word [rax + rax]
mov rcx, rdi
call fcn.14000de20
test rax, rax
jle 0x14001216e
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov rax, qword [rdi + 0x40]
mov r8, rsi
mov rcx, qword [rax]
call fcn.140033e00
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140012188
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140012190
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140012130
sub r14, rbx
mov rax, r14
jmp 0x140012216
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], r15
mov r9, qword [rax]
test r9, r9
je 0x1400121b1
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400121b3
xor ecx, ecx
movsxd rsi, ecx
test r14, r14
jle 0x14001220b
test ecx, ecx
jle 0x1400121ec
cmp r14, rsi
mov rcx, r9
cmovl rsi, r14
mov r8, rsi
call fcn.140033e00
mov rax, qword [rdi + 0x58]
add rbp, rsi
sub r14, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
test r14, r14
jle 0x14001220b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001220b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140039394
sub r14, rax
mov r15, qword [rsp + 0x40]
sub rbx, r14
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140012230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140012261
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1400122db
mov rdi, r14
mov rcx, rbx
call fcn.140013480
test rax, rax
jle 0x1400122b3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140033e00
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400122cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400122d3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140012275
sub r14, rdi
jmp 0x1400123bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400122f2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400122f4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012326
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140033e00
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400123bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140012361
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14001239d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140039a3c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400123bc
cmp rbp, rax
ja 0x140012370
test rbp, rbp
je 0x1400123bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140039a3c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400151a0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14d, edx
mov rbx, rcx
lea rax, vtable.asio::detail::scheduler.0
mov qword [rcx], rax
cmp qword [rcx + 0xc0], 0
je 0x1400152f0
cmp byte [rcx + 0x58], 0
je 0x1400151ed
add rcx, 0x30
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
jmp 0x1400151f0
xor sil, sil
mov word [rbx + 0xb8], 0x101
cmp byte [rbx + 0x58], 0
je 0x14001520e
or qword [rbx + 0x70], 1
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp byte [rbx + 0xa0], 0
jne 0x14001522d
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14001522d
mov byte [rbx + 0xa0], 1
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x140015245
cmp byte [rbx + 0x58], 0
je 0x140015242
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor sil, sil
mov rbp, qword [rbx + 0xc0]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140088ed0], eax
mov rcx, qword [rbp + 8]
test eax, eax
je 0x14001529c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400152be
xor r8d, r8d
mov rdx, rcx
lea rcx, [fcn.14000bd70]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbp, qword [rbx + 0xc0]
test rbp, rbp
je 0x1400152e1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x18
mov rcx, rbp
call fcn.1400316f8
test sil, sil
je 0x1400152f0
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0xa8]
call fcn.140019350
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea rax, vtable.asio::execution_context::service.0
mov qword [rbx], rax
test r14b, 1
je 0x140015337
mov edx, 0xc8
mov rcx, rbx
call fcn.1400316f8
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret