joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007f4ae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14016a910
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rcx, [0x14022279c]
call fcn.14008004d
mov rax, qword [rbp + 0x210]
mov rcx, qword [rbp + 0x218]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
movzx eax, byte [rbp + 0x210]
and eax, 7
test eax, eax
je 0x14016aa51
xor eax, eax
cmp eax, 1
je 0x14016aa41
mov rax, qword [rbp + 0x210]
movzx eax, byte [rax]
mov byte [rbp + 0x24], al
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x210]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov byte [rbp + 0x44], al
mov rax, qword [rbp + 0x210]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0x44]
cmp eax, ecx
je 0x14016aa0f
mov rax, qword [rbp + 0x210]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0x44]
cmp eax, ecx
jge 0x14016a9be
mov qword [rbp + 0x1d8], 1
jmp 0x14016a9c9
mov qword [rbp + 0x1d8], 0
mov rax, qword [rbp + 0x210]
movzx eax, byte [rax]
movzx ecx, byte [rbp + 0x44]
cmp eax, ecx
jge 0x14016a9e8
mov qword [rbp + 0x1e0], 1
jmp 0x14016a9f3
mov qword [rbp + 0x1e0], 0
mov rax, qword [rbp + 0x1d8]
neg rax
mov rcx, qword [rbp + 0x1e0]
dec rcx
sub rax, rcx
jmp 0x14016abb8
mov rax, qword [rbp + 0x210]
inc rax
mov qword [rbp + 0x210], rax
movzx eax, byte [rbp + 0x24]
test eax, eax
jne 0x14016aa2a
jmp 0x14016aa41
movzx eax, byte [rbp + 0x210]
and eax, 7
test eax, eax
jne 0x14016aa3c
jmp 0x14016aa5c
jmp 0x14016a95e
mov qword [rbp + 0xa8], 0
jmp 0x14016abb1
xor eax, eax
cmp eax, 1
je 0x14016aba6
movzx eax, word [rbp + 8]
movzx ecx, word [rbp + 0x210]
add eax, ecx
and eax, 0xfff
cmp eax, 0xff8
jbe 0x14016aa7a
jmp 0x14016a969
mov rax, qword [rbp + 0x210]
mov rax, qword [rax]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x210]
add rcx, rax
mov rax, rcx
mov rax, qword [rax]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x210]
mov rcx, qword [rbp + 0x88]
cmp qword [rax], rcx
je 0x14016aabb
jmp 0x14016a969
mov rax, qword [rbp + 0x210]
add rax, 8
mov qword [rbp + 0x210], rax
movabs rax, 0x7efefefefefefeff
mov rcx, qword [rbp + 0x88]
add rcx, rax
mov rax, rcx
mov rcx, qword [rbp + 0x68]
not rcx
xor rax, rcx
movabs rcx, 0x8101010101010100
and rax, rcx
test rax, rax
je 0x14016aba1
movzx eax, byte [rbp + 0x88]
test eax, eax
jne 0x14016ab14
jmp 0x14016aba6
movzx eax, byte [rbp + 0x89]
test eax, eax
jne 0x14016ab24
jmp 0x14016aba6
mov rax, qword [rbp + 0x88]
shr rax, 0x10
mov qword [rbp + 0xc8], rax
movzx eax, byte [rbp + 0xc8]
test eax, eax
jne 0x14016ab43
jmp 0x14016aba6
movzx eax, byte [rbp + 0xc9]
test eax, eax
jne 0x14016ab50
jmp 0x14016aba6
mov rax, qword [rbp + 0xc8]
shr rax, 0x10
mov qword [rbp + 0xe8], rax
movzx eax, byte [rbp + 0xe8]
test eax, eax
jne 0x14016ab6f
jmp 0x14016aba6
movzx eax, byte [rbp + 0xe9]
test eax, eax
jne 0x14016ab7c
jmp 0x14016aba6
movzx eax, word [rbp + 0xea]
mov dword [rbp + 0x104], eax
movzx eax, byte [rbp + 0x104]
test eax, eax
je 0x14016ab9f
movzx eax, byte [rbp + 0x105]
test eax, eax
jne 0x14016aba1
jmp 0x14016aba6
jmp 0x14016aa51
mov qword [rbp + 0xa8], 0
mov rax, qword [rbp + 0xa8]
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14007fca6
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1400a4ae0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x1402221cd]
call fcn.14008004d
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x140185500]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x1400a4b5f
mov dword [rbp + 0x120], 1
jmp 0x1400a4b69
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x1400a4ba3
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x1400a4b2a
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x14007feea
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140162ad0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1402227d6]
call fcn.14008004d
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140162b32
cmp dword [0x14020fdb0], 0xb
jge 0x140162b12
mov eax, dword [0x14020fdb0]
inc eax
mov dword [0x14020fdb0], eax
mov eax, dword [0x14020fdb4]
inc eax
mov dword [0x14020fdb4], eax
mov byte [0x14020fd76], 1
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x26
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140162b79
cmp dword [0x14020fdb0], 0
jle 0x140162b59
mov eax, dword [0x14020fdb0]
dec eax
mov dword [0x14020fdb0], eax
mov eax, dword [0x14020fdb4]
inc eax
mov dword [0x14020fdb4], eax
mov byte [0x14020fd76], 1
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x27
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140162bb4
mov ecx, dword [0x14020fdb0]
call fcn.14007e5c2
mov eax, dword [0x14020fdb4]
inc eax
mov dword [0x14020fdb4], eax
mov byte [0x14020fd76], 1
mov ecx, 0x96
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x25
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x140162bef
mov ecx, dword [0x14020fdb0]
call fcn.14007e5c2
mov eax, dword [0x14020fdb4]
inc eax
mov dword [0x14020fdb4], eax
mov byte [0x14020fd76], 1
mov ecx, 0x96
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x14007ffc6
Capabilities:
Write file on windows

Disassembly:
jmp 0x14014f7a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140207278]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1402224c3]
call fcn.14008004d
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x14014f806
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14014f80d
mov al, 1
jmp 0x14014f967
call fcn.14007dd2f
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14007dd2f
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14007f8a0
movzx eax, al
test eax, eax
je 0x14014f868
xor al, al
jmp 0x14014f967
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x14014f8cd
cmp dword [rbp + 0x194], 1
je 0x14014f8d8
cmp dword [rbp + 0x194], 3
je 0x14014f956
jmp 0x14014f965
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14014f928
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14014f928
xor al, al
jmp 0x14014f967
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14014f943
mov dword [rbp + 0x194], 1
jmp 0x14014f94d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x14014f967
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14014f967
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.XINPUT1_4.dll_Ordinal_2
call fcn.14007f855
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14007e739
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x14008000c
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1401590e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x170
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x140207278]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x140222791]
call fcn.14008004d
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rbp + 0x58], 0x4c415354
mov dword [rbp + 0x60], 0x200000
mov rax, qword [rbp + 0x170]
mov eax, dword [rax]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 8]
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x78], 0x30
lea r9, [rbp + 0x5c]
mov r8d, 0x28
lea rdx, [rbp + 0x58]
mov ecx, 0x4c
call fcn.14007f436
lea rax, [rbp + 8]
mov rdi, qword [rbp + 0x178]
mov rsi, rax
mov ecx, 0x30
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rbp + 0x178]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.XINPUT1_4.dll_Ordinal_2
call fcn.14007f855
mov rax, rdi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.14007e739
lea rsp, [rbp + 0x150]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14008018d
Capabilities:
Print debug messages

Disassembly:
jmp 0x140179ed8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14007f4c2
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1401c2dc0]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.14007e671
test eax, eax
jne 0x140179f6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140179f6f
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140179f68
lea rcx, [0x1401c2de0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14020fb60], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x140001064
Capabilities:
Write file on windows

Disassembly:
jmp 0x140005150
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140005178
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 0x14000519e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400051a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400051f9
test ecx, ecx
jle 0x1400051d9
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 0x1400051f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400051f9
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 0x14000116d
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000d1c8
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000d255
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000d255
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d255
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000d23c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000d236
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000d23e
add rdx, 0x28
jmp 0x14000d21b
xor edx, edx
test rdx, rdx
jne 0x14000d247
xor al, al
jmp 0x14000d25b
cmp dword [rdx + 0x24], 0
jge 0x14000d251
xor al, al
jmp 0x14000d25b
mov al, 1
jmp 0x14000d25b
xor al, al
jmp 0x14000d25b
add rsp, 0x18
ret

Function at 0x140001217
Capabilities:
Terminate process

Disassembly:
jmp 0x14000d670
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000128f
Capabilities:
Terminate process

Disassembly:
jmp 0x14000cc20
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400013e3
test al, al
je 0x14000caeb
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140001357
mov bl, al
mov ecx, dword [0x140017720]
cmp ecx, 1
je 0x14000caf6
test ecx, ecx
jne 0x14000ca21
mov dword [0x140017720], 1
lea rdx, [0x140013770]
lea rcx, [0x140013440]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14000ca02
mov eax, 0xff
jmp 0x14000cadb
lea rdx, [0x140013330]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140017720], 2
jmp 0x14000ca29
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14000132a
call fcn.1400012bc
mov rbx, rax
cmp qword [rax], 0
je 0x14000ca5c
mov rcx, rax
call fcn.14000116d
test al, al
je 0x14000ca5c
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x14001c020]
call fcn.1400012ee
mov rbx, rax
cmp qword [rax], 0
je 0x14000ca7e
mov rcx, rax
call fcn.14000116d
test al, al
je 0x14000ca7e
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.140001285
mov ebx, eax
call fcn.140001299
test al, al
je 0x14000cb00
test sil, sil
jne 0x14000cab5
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.14000114f
mov eax, ebx
jmp 0x14000cadb
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140001339
nop
mov ecx, 7
call fcn.140001339
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.1400012a8
add rsp, 0x28
jmp 0x14000c994
Function at 0x1400012a3
Capabilities:
Write file on windows

Disassembly:
jmp 0x140003e40
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003e6d
xor eax, eax
jmp 0x140003fca
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140003e98
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140003e98
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], dil
mov eax, edi
jmp 0x140003fca
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003fbd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140003edb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140003f06
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 0x140003fc2
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x140003f75
sub eax, 1
je 0x140003f75
cmp eax, 2
jne 0x140003fbd
movsx ecx, byte [rsp + 0x40]
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 0x140003fc2
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003fa3
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 0x140003fbd
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003fc2
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400011d6
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000136b
Capabilities:
Read file on windows

Disassembly:
jmp 0x140004fa0
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004fd1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x140004fef
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000500b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000500d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005049
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400050de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140005084
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 0x1400050be
nop dword [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 0x1400050de
cmp rbx, rax
ja 0x140005090
test rbx, rbx
je 0x1400050de
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400013b1
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400039c0
push rbx
sub rsp, 0x60
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003a93
cmp byte [rcx + 0x71], 0
je 0x140003a93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003a8f
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 0x140003a54
sub eax, 1
je 0x140003a58
cmp eax, 2
jne 0x140003a8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400011d6
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003a86
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 0x140003a8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003a3c
xor al, al
jmp 0x140003a3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400011d6
add rsp, 0x60
pop rbx
ret

Function at 0x1400039c0
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400039c0
push rbx
sub rsp, 0x60
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003a93
cmp byte [rcx + 0x71], 0
je 0x140003a93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140003a8f
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 0x140003a54
sub eax, 1
je 0x140003a58
cmp eax, 2
jne 0x140003a8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400011d6
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003a86
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 0x140003a8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140003a3c
xor al, al
jmp 0x140003a3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400011d6
add rsp, 0x60
pop rbx
ret