joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400484d0
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 0x1400484f8
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 0x14004851e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140048520
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140048579
test ecx, ecx
jle 0x140048559
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 0x140048579
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140048579
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 0x1400485a0
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 0x1400485c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400485d8
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 0x1400485f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400485f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140048632
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 0x1400486ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004866d
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 0x1400486ae
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 0x1400486ce
cmp rbx, rax
ja 0x140048680
test rbx, rbx
je 0x1400486ce
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 0x140048af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e6010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140048b1d
xor eax, eax
jmp 0x140048c89
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140048b57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140048b57
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 0x140048c89
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140048c7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140048b9a
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 0x140048bc5
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 0x140048c81
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 0x140048c34
sub eax, 1
je 0x140048c34
cmp eax, 2
jne 0x140048c7c
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 0x140048c81
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140048c62
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 0x140048c7c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140048c81
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d5ca0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140049c20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400e6010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140049cf3
cmp byte [rcx + 0x71], 0
je 0x140049cf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140049cef
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 0x140049cb4
sub eax, 1
je 0x140049cb8
cmp eax, 2
jne 0x140049cef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d5ca0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140049ce6
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 0x140049cef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140049c9c
xor al, al
jmp 0x140049c9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d5ca0
add rsp, 0x60
pop rbx
ret
Function at 0x1400d681c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d6866
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d6866
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d6866
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d6866
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d6866
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d6868
xor al, al
add rsp, 0x28
ret
Function at 0x18003a0d0
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov ecx, 0x28
call fcn.18009a308
mov qword [rbp - 8], rax
mov rcx, rax
mov rdx, rbx
call fcn.18003a2d0
mov r9, qword [rbp - 8]
mov qword [r9 + 0x20], rdi
mov qword [rbp - 0x10], r9
lea rdi, [rsi + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
lea r8, [0x18003a230]
xor ecx, ecx
xor edx, edx
call fcn.1800adac4
mov qword [rsi], rax
test rax, rax
je 0x18003a145
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov dword [rdi], 0
mov ecx, 6
call fcn.18009b660
int3
Function at 0x180095200
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
cmp edx, 0xffffffff
je 0x18009531a
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x18009524b
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x18009524b
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x18009535d
cmp qword [rdi + 0x80], 0
je 0x18009531e
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x180095285
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x180095325
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x18009533d
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x18009530a
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call fcn.1800b0bb4
cmp r15, rax
jne 0x18009535b
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x180095356
xor esi, esi
jmp 0x18009535d
mov esi, 0xffffffff
jmp 0x18009535d
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call fcn.1800b03ec
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x18009535d
cmp eax, 3
jne 0x18009535b
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x4f]
call fcn.1800b03ec
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1800957a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x180095836
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18009583d
mov r15, rsi
jmp 0x1800957fb
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.1800cb8f0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x18009582e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180095813
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x1800957d0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18009582e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x1800957fb
sub rsi, r15
jmp 0x18009592a
xor esi, esi
jmp 0x18009592a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180095890
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x180095890
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.1800cb8f0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x1800958a1
jmp 0x180095927
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x180095927
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x1800958d0
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x180095903
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1800b07ac
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x1800958d0
jmp 0x180095927
test r14, r14
je 0x180095924
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1800b07ac
sub r14, rax
jmp 0x180095927
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180095940
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x1800959d9
mov r14, rsi
test rsi, rsi
jle 0x180095a4d
mov r14, rsi
jmp 0x18009599f
cmp r14, r15
cmovb r15, r14
mov rdx, rdi
mov r8, r15
call fcn.1800cb8f0
add rdi, r15
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jle 0x180095a4d
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800959b7
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jg 0x180095970
movzx edx, byte [rdi]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180095a4d
inc rdi
dec r14
test r14, r14
jg 0x18009599f
jmp 0x180095a4d
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180095a26
test rsi, rsi
jle 0x180095a26
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x180095a26
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call fcn.1800cb8f0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x180095a2e
jmp 0x180095a4d
mov r14, rsi
test r14, r14
jle 0x180095a4d
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x180095a4d
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1800b0bb4
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x180095de0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov al, 1
cmp qword [rcx + 0x68], 0
je 0x180095e78
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x180095e78
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180095e76
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x180095e80
cmp eax, 1
je 0x180095e47
test eax, eax
jne 0x180095e76
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x180095e6d
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call fcn.1800b0bb4
cmp rbx, rax
jne 0x180095e76
cmp byte [rsi + 0x71], 0
sete al
jmp 0x180095e78
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov al, 1
jmp 0x180095e78

Function at 0x1800978a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x1800b2c20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800b2c48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800b2c48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800bf45c
Capabilities:
Read file on windows

Disassembly:
jmp 0x1800bf464
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1800bf49a
call fcn.1800ae77c
mov dword [rax], 0x16
call fcn.1800aef14
jmp 0x1800bf5e5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800bf5e5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800bf5e5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800bf4c9
lock or dword [rcx + 0x14], 0x10
jmp 0x1800bf5e5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800bf4dd
call fcn.1800c19ac
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1800bf4ed
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1800bf4f0
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1800bc75c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1800bfa54
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1800bf5d3
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1800bf581
mov rcx, rbx
call fcn.1800bc75c
cmp eax, 0xffffffff
je 0x1800bf56c
mov rcx, rbx
call fcn.1800bc75c
cmp eax, 0xfffffffe
je 0x1800bf56c
mov rcx, rbx
call fcn.1800bc75c
movsxd rdi, eax
lea r14, [0x1800f7450]
mov rcx, rbx
sar rdi, 6
call fcn.1800bc75c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1800bf573
lea rdx, [0x1800efbc0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800bf581
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1800bf5a5
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1800bf5a5
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1800bf5a5
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1800bf5c3
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1800bf5ce
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1800bf5ea
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140002f70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.140057c70]
xor ebx, ebx
mov r12, rcx
mov rdi, rdx
test rdx, rdx
jle 0x140002fb2
nop
mov rsi, qword [r12 + rbx*8]
mov ecx, 1
add rbx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call fcn.140002cf0
cmp rbx, rdi
jne 0x140002f90
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14005a1dc]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x1400031d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rbp, rcx
mov ecx, 0xfa0
call fcn.14000b800
mov rdi, rax
test rax, rax
je 0x1400032b5
lea r12, [rax + 0x10]
nop dword [rax]
mov rdx, qword [rdi]
test rdx, rdx
jg 0x140003213
sub rdx, 1
xor ecx, ecx
call fcn.14000dfd0
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fread
mov rsi, rax
cmp rax, 0xfa0
je 0x1400032f0
mov rcx, rbp
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x140003351
test rsi, rsi
js 0x140003338
mov rdx, rsi
mov rcx, rdi
call fcn.14000bef0
mov rsi, rax
test rax, rax
je 0x140003320
mov rdx, qword [rax]
mov rcx, rbx
call fcn.14000c450
lea rdx, [rsi + 0x10]
mov rbx, rax
mov rax, qword [rax]
lea rcx, [rbx + rax + 0x10]
mov rax, qword [rsi]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi]
add qword [rbx], rax
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
xor edx, edx
call fcn.14000c450
mov rbx, rax
mov rdx, 0xffffffffffffffff
xor ecx, ecx
call fcn.14000dfd0
mov r9, rbp
mov r8d, 0xfa0
mov edx, 1
mov ecx, 0x10
call sub.msvcrt.dll_fread
mov rsi, rax
cmp rax, 0xfa0
jne 0x140003238
jmp 0x1400032a8
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.14000c450
mov r8, qword [rdi]
mov rdx, r12
mov rbx, rax
mov rax, qword [rax]
add r8, 1
lea rcx, [rbx + rax + 0x10]
call sub.msvcrt.dll_memcpy
mov rax, qword [rdi]
add qword [rbx], rax
jmp 0x140003200
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000c450
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000de30
jmp 0x140003251
mov rcx, rbp
call fcn.140002b70
nop
nop word [rax + rax]
Function at 0x140003360
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
test rdx, rdx
js 0x1400034a0
mov rcx, rsi
call fcn.14000b800
mov rbx, rax
test rax, rax
je 0x1400034c8
mov rdx, qword [rax]
test rdx, rdx
jle 0x140003410
test rsi, rsi
js 0x140003424
lea rcx, [rbx + 0x10]
mov r9, rdi
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fread
mov rcx, rdi
mov rbp, rax
cmp rsi, rax
je 0x140003440
call sub.msvcrt.dll_ferror
mov rcx, rdi
test eax, eax
jne 0x140003509
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov r12d, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test r12d, r12d
jns 0x140003455
cmp rsi, rbp
jle 0x140003491
test rbp, rbp
js 0x1400034f0
mov rdx, rbp
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000bef0
sub rdx, 1
xor ecx, ecx
call fcn.14000dfd0
test rsi, rsi
jns 0x14000339e
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000de30
jmp 0x14000339e
call sub.msvcrt.dll_fgetc
mov rdx, rdi
mov esi, eax
mov ecx, eax
call sub.msvcrt.dll_ungetc
test esi, esi
js 0x140003491
mov rcx, rdi
call fcn.1400031d0
mov rsi, rax
test rax, rax
je 0x1400034d8
mov rdx, qword [rax]
mov rcx, rbx
call fcn.14000c450
lea rdx, [rsi + 0x10]
mov rbx, rax
mov rax, qword [rax]
lea rcx, [rbx + rax + 0x10]
mov rax, qword [rsi]
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi]
add qword [rbx], rax
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
call fcn.14000de30
mov rcx, rsi
call fcn.14000b800
mov rbx, rax
test rax, rax
jne 0x14000338d
mov rdx, 0xffffffffffffffff
jmp 0x140003414
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14000c450
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
call fcn.14000de30
jmp 0x1400033fa
call fcn.140002b70
nop
nop
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
xor ecx, ecx
call qword [fcn.140057c70]
cmp rbx, rax
je 0x140003563
mov rsi, qword [0x140059160]
mov rcx, rbx
call rsi
xor edx, edx
mov r8d, 2
mov rcx, rbx
mov rdi, rax
mov rbp, qword [0x140059168]
call rbp
mov rcx, rbx
call rsi
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call rbp
test rsi, rsi
jg 0x140003578
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400031d0
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140003360