joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bcd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
test edx, edx
jne 0x41bd00
test r8, r8
je 0x41bdb8
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
cmp edx, 1
je 0x41bde0
cmp edx, 3
jne 0x41bce7
mov rax, qword [0x004e5408]
test rax, rax
je 0x41bef8
mov ecx, dword [rax]
cmp ecx, 0xffffffff
je 0x41bce7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x41bce7
test byte [rax + 0x40], 0x30
je 0x41be10
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x41bd4e
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x41bd81
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x41bd6f
call r13
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x1d0], 0
jne 0x41beaa
mov rcx, r12
call sym.push_pthread_mem.part.0
jmp 0x41beaa
mov rcx, qword [0x004e5438]
test rcx, rcx
je 0x41bce7
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x004e5438], 0
jmp 0x41bce7
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x004e5438], rax
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x41bec8
test rcx, rcx
je 0x41be2d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r12 + 0x1d8]
mov qword [r12 + 0x30], 0
mov dword [r12 + 0xbc], 1
test rcx, rcx
je 0x41be54
call sym._pthread_cleanup_dest.part.0
lea r14, [r12 + 0x38]
lea r13, [r12 + 0x68]
test byte [r12 + 0x44], 4
je 0x41bf20
mov rcx, qword [r12 + 0x28]
mov dword [r12], 0xdeadbeef
test rcx, rcx
je 0x41be82
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x28], 0
mov rcx, r14
call sym.pthread_mutex_destroy
mov rcx, r13
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x1d0], 0
je 0x41bda4
mov rax, qword [0x004e5408]
test rax, rax
je 0x41bf35
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x41bce7
test rcx, rcx
je 0x41bed3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call sym.replace_spin_keys.constprop.0
jmp 0x41bce7
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x004e5408], rax
jmp 0x41bd1e
mov rcx, r14
call sym.pthread_mutex_destroy
mov rcx, r13
call sym.replace_spin_keys.constprop.0
jmp 0x41bce7
lea r8, [sym.__shmem_winpthreads_init__pthread_tls_shmem]
mov edx, 4
lea rcx, str._pthread_tls_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x004e5408], rax
jmp 0x41beb6
Function at 0x41d650
Capabilities:
Hijack thread execution

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call sym.__pth_gpointer_locked
mov rbx, rax
test rax, rax
je 0x41d72c
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x41d72c
lea r12, [rsp + 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x41d72c
lea r13, [rbx + 0x38]
mov rcx, r13
call sym.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x41d7c0
mov rdx, qword [rax + 0x1d8]
movzx eax, byte [rbx + 0x40]
cmp rsi, rdx
je 0x41d740
mov edx, dword [rbx + 0x44]
and edx, 3
cmp edx, 3
je 0x41d720
test al, 3
jne 0x41d7a0
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x004e5420]
test rax, rax
je 0x41d870
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41d702
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 0xc
jne 0x41d7a0
test al, 0xf
je 0x41d7d0
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
test al, 3
jne 0x41d7a0
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
mov rax, qword [0x004e5420]
test rax, rax
je 0x41d890
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41d770
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x41d702
and eax, 0xfffffffe
mov rcx, r13
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop dword [rax]
mov rcx, r13
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x41d72c
xor eax, eax
jmp 0x41d70c
xor edx, edx
jmp 0x41d6ba
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41d702
mov rcx, qword [rbx + 0x28]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, r12
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
mov rax, qword [0x004e5420]
test rax, rax
je 0x41d8b0
lock add dword [rax], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41d852
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41d702
xor r8d, r8d
mov edx, 4
lea rcx, str._pthread_cancelling_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x004e5420], rax
jmp 0x41d6ef
xor r8d, r8d
mov edx, 4
lea rcx, str._pthread_cancelling_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x004e5420], rax
jmp 0x41d75d
xor r8d, r8d
mov edx, 4
lea rcx, str._pthread_cancelling_shmem
call sym.__shmem_winpthreads_grab
mov qword [0x004e5420], rax
jmp 0x41d83f
Function at 0x41d8d0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
mov rcx, qword [0x004e53d8]
mov ebx, edx
test rcx, rcx
je 0x41d988
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
mov rcx, qword [0x004e53d8]
test rax, rax
je 0x41d960
cmp qword [rax + 0x1d8], r12
jne 0x41d960
test byte [rax + 0x40], 0xc
jne 0x41d960
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x41d960
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x41d960
test rcx, rcx
je 0x41d9e0
call sym.pthread_mutex_unlock
test ebx, ebx
je 0x41d980
lea edx, [rbx - 2]
cmp edx, 0x15
ja 0x41d9d8
mov rcx, r12
add rsp, 0x28
pop rbx
pop r12
jmp sym.pthread_cancel
test rcx, rcx
je 0x41d9b0
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop r12
ret
xor eax, eax
jmp 0x41d96f
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e53d8], rax
mov rcx, rax
jmp 0x41d8ec
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e53d8], rax
mov rcx, rax
jmp 0x41d965
mov eax, 0x16
jmp 0x41d96f
lea rcx, str.mtx_pthr_locked_shmem
lea r8, [sym.__shmem_winpthreads_init_mtx_pthr_locked_shmem]
mov edx, 8
call sym.__shmem_winpthreads_grab
mov qword [0x004e53d8], rax
mov rcx, rax
jmp 0x41d935
Function at 0x420710
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp dbg.__shmem_grab

Function at 0x420730
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp dbg.__shmem_grab

Function at 0x421f40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x421f6c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x422bd0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004b7e30], 0
jne 0x422cda
mov byte [0x004b7e30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x422cb0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x422ca1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004b98b1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x422c9c
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x422c6b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x422d6f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x422cd5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x422cd5

Function at 0x47c400
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47c427
call rbp
cmp dword [rax], 4
jne 0x47c444
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47c420
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x414c40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1068
call fcn.0043c560
sub rsp, rax
mov rsi, rcx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 0
lea r14, [rsp + 0x68]
lea rcx, [0x00560008]
call sub.KERNEL32.dll_AcquireSRWLockExclusive
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x40]
mov qword [rsp + 0x48], rdi
lea rax, [fcn.00433d40]
mov qword [rsp + 0x50], rax
xor r12d, r12d
lea r15, str.error:_s_n
lea rbx, [rsp + 0x30]
nop dword [rax]
lea r8, [r15 + r12]
mov r9d, 7
sub r9, r12
mov rcx, rbx
mov rdx, rdi
call fcn.00433d40
cmp word [rsp + 0x38], 0
jne 0x414d08
add r12, qword [rsp + 0x30]
cmp r12, 7
jne 0x414cc0
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
lea r8, [0x0055d740]
lea r9, [rsp + 0x48]
call fcn.0041df60
test ax, ax
je 0x414d26
lea rcx, [0x00560008]
call fcn.0043c800
nop
add rsp, 0x1068
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
lea rsi, [rsp + 0x30]
lea rdi, [rsp + 0x40]
nop word cs:[rax + rax]
nop dword [rax]
lea r8, [rbx + r15]
add r8, 0xa
mov r9d, 1
sub r9, rbx
mov rcx, rsi
mov rdx, rdi
call fcn.00433d40
cmp word [rsp + 0x38], 0
jne 0x414d08
add rbx, qword [rsp + 0x30]
cmp rbx, 1
jne 0x414d40
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x414dc5
mov rsi, qword [rsp + 0x58]
xor r15d, r15d
mov r12d, 0xffffffff
lea rdi, [rsp + 0x30]
nop dword [rax]
lea rdx, [r14 + r15]
mov r8, rbx
sub r8, r15
cmp r8, r12
cmovae r8, r12
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r9, rdi
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x414dd3
mov eax, dword [rsp + 0x30]
add r15, rax
cmp r15, rbx
jne 0x414d90
mov qword [rsp + 0x60], 0
jmp 0x414d08
call sub.KERNEL32.dll_GetLastError
jmp 0x414d08
Function at 0x433d40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r9
mov rsi, rcx
mov r12, qword [rdx]
mov r13, qword [r12 + 8]
lea rax, [r9 + r13]
cmp rax, 0x1000
jbe 0x433e39
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x30], rsi
test r13, r13
je 0x433dd9
lea rbp, [r12 + 0x10]
mov r14, qword [r12]
xor esi, esi
mov ebx, 0xffffffff
lea r15, [rsp + 0x38]
nop word cs:[rax + rax]
nop dword [rax]
lea rdx, [rsi + rbp]
mov r8, r13
sub r8, rsi
cmp r8, rbx
cmovae r8, rbx
mov qword [rsp + 0x20], 0
mov rcx, r14
mov r9, r15
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x433e5b
mov eax, dword [rsp + 0x38]
add rsi, rax
cmp rsi, r13
jne 0x433da0
mov qword [r12 + 8], 0
cmp rdi, 0x1001
jb 0x433e2c
mov rcx, qword [r12]
mov r8d, 0xffffffff
cmp rdi, r8
cmovb r8, rdi
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, qword [rsp + 0x40]
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x433eb8
mov edi, dword [rsp + 0x3c]
xor eax, eax
mov rsi, qword [rsp + 0x30]
jmp 0x433fee
xor r13d, r13d
mov rsi, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
lea rcx, [r12 + r13]
add rcx, 0x10
add r13, rdi
mov rdx, r8
mov r8, rdi
call fcn.0043c590
mov qword [r12 + 8], r13
xor eax, eax
jmp 0x433fee
call sub.KERNEL32.dll_GetLastError
movzx ecx, ax
mov ax, 0xc
cmp ecx, 0x6c
jg 0x433e8d
cmp ecx, 0x20
mov rsi, qword [rsp + 0x30]
jg 0x433eee
cmp ecx, 6
je 0x433f5b
cmp ecx, 8
je 0x433f1d
jmp 0x433fee
cmp ecx, 0x6f7
mov rsi, qword [rsp + 0x30]
jg 0x433f09
cmp ecx, 0x6d
je 0x433f64
cmp ecx, 0x3e3
jne 0x433fee
mov ax, 4
jmp 0x433fee
call sub.KERNEL32.dll_GetLastError
movzx ecx, ax
mov ax, 0xc
cmp ecx, 0x6c
mov rsi, qword [rsp + 0x30]
jg 0x433f26
cmp ecx, 0x20
jg 0x433f6d
cmp ecx, 6
je 0x433fb1
cmp ecx, 8
je 0x433f9c
jmp 0x433fee
cmp ecx, 0x21
je 0x433fea
cmp ecx, 0x40
jne 0x433fee
mov ax, 6
jmp 0x433fee
cmp ecx, 0x718
je 0x433f1d
cmp ecx, 0x6f8
jne 0x433fee
mov ax, 2
jmp 0x433fee
cmp ecx, 0x6f7
jg 0x433f8c
cmp ecx, 0x6d
je 0x433fc6
cmp ecx, 0x3e3
jne 0x433fee
mov word [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov ax, 4
jmp 0x433fee
mov ax, 0x12
jmp 0x433fee
mov ax, 5
jmp 0x433fee
cmp ecx, 0x21
je 0x433fdb
cmp ecx, 0x40
jne 0x433fee
mov word [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov ax, 6
jmp 0x433fee
cmp ecx, 0x6f8
je 0x433f9c
cmp ecx, 0x718
jne 0x433fee
mov word [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov ax, 2
jmp 0x433fee
mov word [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov ax, 0x12
jmp 0x433fee
mov word [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov ax, 5
jmp 0x433fee
mov word [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov ax, 0x13
mov qword [rsi], rdi
mov word [rsi + 8], ax
mov eax, dword [rsp + 0x28]
mov dword [rsi + 0xa], eax
movzx eax, word [rsp + 0x2c]
mov word [rsi + 0xe], ax
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400072f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, dword [0x140274180]
lea r11, [0x140274180]
mov r9d, 0x270
cmp r8d, r9d
jne 0x140007355
lea r8, [0x140274188]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140007310
mov r8d, dword [0x140274180]
jmp 0x14000742f
cmp r8d, 0x4e0
jb 0x14000742f
xor r8d, r8d
mov r9d, 0x38c
mov r10d, r8d
nop
mov eax, dword [r10 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r10 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + r11 + 0xff8]
xor ecx, edx
mov dword [r10 + r11 + 4], ecx
add r10, 4
cmp r10, r9
jb 0x140007370
mov eax, dword [r9 + r11 + 0x9c4]
mov edx, eax
xor edx, dword [r9 + r11 + 0x9c8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + r11 - 0x388]
xor ecx, edx
mov dword [r9 + r11 + 4], ecx
add r9, 4
cmp r9, 0x9bc
jb 0x1400073b0
mov edx, dword [0x140274184]
xor edx, dword [0x140275500]
btr edx, 0x1f
mov dword [0x140274180], r8d
xor edx, dword [0x140275500]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [0x1402747b4]
mov dword [0x140274b40], ecx
mov eax, r8d
inc r8d
mov ecx, dword [r11 + rax*4 + 4]
mov eax, ecx
shr eax, 0xb
and eax, dword [0x140275504]
xor ecx, eax
mov dword [0x140274180], r8d
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x14000f530
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14000f558
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000f57e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000f580
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000f5d9
test ecx, ecx
jle 0x14000f5b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000f5d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000f5d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x14000f600
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000f622
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14000f638
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000f654
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000f656
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000f692
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000f72e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000f6cd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000f70e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000f72e
cmp rbx, rax
ja 0x14000f6e0
test rbx, rbx
je 0x14000f72e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14000fb60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401b0080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000fb8d
xor eax, eax
jmp 0x14000fcf9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000fbc7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000fbc7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000fcf9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000fcec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000fc0a
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000fc35
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000fcf1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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 0x14000fca4
sub eax, 1
je 0x14000fca4
cmp eax, 2
jne 0x14000fcec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000fcf1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000fcd2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000fcec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000fcf1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140150580
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140010250
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401b0080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140010323
cmp byte [rcx + 0x71], 0
je 0x140010323
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14001031f
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 0x1400102e4
sub eax, 1
je 0x1400102e8
cmp eax, 2
jne 0x14001031f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140150580
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140010316
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 0x14001031f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400102cc
xor al, al
jmp 0x1400102cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140150580
add rsp, 0x60
pop rbx
ret