joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401832a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
movsxd rbp, edx
xor ebx, ebx
mov rsi, rcx
cmp dword [rcx], ebp
je 0x140183404
mov r15d, dword [rcx + 4]
cmp ebp, r15d
cmovl r15d, ebp
test edx, edx
jle 0x140183370
xor edi, edi
test edx, edx
je 0x140183317
lea r14, [rbp*2]
movabs rax, 0xaaaaaaaaaaaaaaab
add r14, rbp
shl r14, 3
mul r14
shr rdx, 4
cmp rdx, rbp
je 0x14018331a
mov edi, 0x80070216
mov ecx, edi
call fcn.140079c40
mov r14, qword [rsp + 0x70]
jmp 0x14018331a
xor r14d, r14d
mov ecx, edi
call fcn.140079c60
test edi, edi
jns 0x140183331
mov ecx, edi
call fcn.140079c40
jmp 0x140183406
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140183354
mov edi, 0x8007000e
jmp 0x140183325
test r15d, r15d
je 0x140183370
mov rdx, qword [rsi + 8]
mov rcx, rbx
movsxd rax, r15d
lea r8, [rax + rax*2]
shl r8, 3
call sub.msvcrt.dll_memcpy
mov r12, rbx
cmp ebp, dword [rsi + 4]
jge 0x1401833cf
mov edi, ebp
mov rdx, qword [rsi + 8]
movsxd rax, edi
lea rcx, [rax + rax*2]
lea rax, [rdx + rcx*8]
test rax, rax
je 0x1401833c8
and qword [rsp + 0x30], 0
lea rcx, [0x140033e98]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
add rax, 8
mov qword [rsp + 0x20], 3
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
inc edi
cmp edi, dword [rsi + 4]
jl 0x14018337a
mov rdi, qword [rsi + 8]
mov r14, rbx
xor ebx, ebx
test rdi, rdi
je 0x1401833f1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test r14, r14
cmovne rax, r12
mov qword [rsi + 8], rax
mov dword [rsi + 4], r15d
mov dword [rsi], ebp
xor edi, edi
mov ecx, edi
call fcn.140079c60
test rbx, rbx
je 0x140183426
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140184870
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x20], 0x114
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1401848c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1401848ec
cmp dword [rsp + 0x24], 5
jb 0x1401848dc
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x1401848ab
xor eax, eax
jmp 0x1401848ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x1401848d8
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x140188ab8
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
movaps xmm0, xmmword [r9]
movaps xmm1, xmmword [rdx]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm1
test rax, rax
jne 0x140188af5
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
call fcn.140079c60
jmp 0x140188b4a
mov qword [rbp - 0x28], rcx
lea rdx, [0x140041858]
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x1c], rcx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x14], r8d
xor r9d, r9d
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x30], rdx
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], 3
mov dword [rbp - 0x20], 0x80
lea r8d, [r9 + 0x40]
mov qword [rbp - 8], rax
lea ecx, [r8 + 0x79]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140188b64
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
movaps xmm0, xmmword [r9]
movaps xmm1, xmmword [rdx]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm1
test rax, rax
jne 0x140188ba1
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
call fcn.140079c60
jmp 0x140188bf6
mov qword [rbp - 0x28], rcx
lea rdx, [0x140041858]
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x1c], rcx
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x50]
mov edx, 0x40
mov dword [rbp - 0x14], r8d
mov r8d, edx
mov dword [rbp - 0x20], edx
mov qword [rbp - 0x10], rcx
lea rdx, [rbp - 0x40]
xor r9d, r9d
mov qword [rbp - 0x40], 3
mov qword [rbp - 8], rax
lea ecx, [r8 + 0x79]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x14018d14c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
cmp qword [r8], 0
mov esi, r9d
mov r14, r8
mov r15b, dl
mov rdi, rcx
je 0x14018d2bd
test r9d, r9d
je 0x14018d2bd
mov rbx, qword [rcx + 0x10]
test rbx, rbx
jne 0x14018d215
cmp dword [rcx + 8], 2
jne 0x14018d239
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14018d1f9
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call sub.msvcrt.dll_memset
and qword [rbx + 0x90], 0
xor eax, eax
and qword [rbx + 0x98], 0
mov qword [rbx + 0xb0], rax
and qword [rbx + 0xb8], rax
and dword [rbx + 0x58], eax
and dword [rbx + 0x38], eax
mov qword [rbx], rdi
mov dword [rbx + 8], 1
jmp 0x14018d1fb
xor ebx, ebx
mov qword [rdi + 0x10], rbx
test rbx, rbx
jne 0x14018d215
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.140079c40
jmp 0x14018d2cd
mov rcx, rbx
call fcn.140199fe4
mov ebx, eax
test eax, eax
jns 0x14018d22a
mov ecx, eax
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
js 0x14018d2c2
mov ecx, dword [rdi + 4]
sub ecx, 1
je 0x14018d269
cmp ecx, 1
je 0x14018d24d
mov ebx, 0xc004d203
jmp 0x14018d2c2
movaps xmm0, xmmword [r14]
lea rdx, [rbp - 0x20]
mov r8d, esi
movdqa xmmword [rbp - 0x20], xmm0
mov rcx, rdi
call fcn.140195f38
mov ebx, eax
jmp 0x14018d2b4
movaps xmm0, xmmword [r14]
lea rax, [0x14003ddd8]
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x58]
xor r9d, r9d
movdqa xmmword [rbp - 0x10], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x58], 3
mov qword [rbp - 0x48], rax
mov ecx, 0xb9
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rdi
lea r8d, [r9 + 0x2c]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x60]
test ebx, ebx
js 0x14018d2c2
mov byte [rdi], 1
jmp 0x14018d2c9
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
test ebx, ebx
jns 0x14018d2d0
mov byte [rdi], 0
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018d2f8
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [rbp + 0x77]
mov r10d, r9d
movaps xmm1, xmmword [r8]
mov r9, rcx
mov rcx, qword [rcx + 0x10]
movaps xmm0, xmmword [rax]
test rcx, rcx
je 0x14018d390
mov rax, qword [rbp + 0x7f]
test dl, dl
je 0x14018d35c
lea r9, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, r10d
movdqa xmmword [rbp - 9], xmm1
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.14019a0ec
mov ebx, eax
test eax, eax
jns 0x14018d402
mov ecx, eax
jmp 0x14018d3fd
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp - 0x19], xmm1
test rax, rax
jne 0x14018d375
mov ebx, 0x80070057
jmp 0x14018d3fb
lea r9, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r8d, r10d
lea rdx, [rbp - 0x19]
call fcn.14019a7f8
mov ebx, eax
test eax, eax
jmp 0x14018d3f9
lea rax, [0x140040b58]
mov qword [rbp + 0x1f], r9
mov qword [rbp + 0xf], rax
xor r9d, r9d
lea rax, [rbp + 0x57]
movdqa xmmword [rbp - 0x19], xmm0
mov qword [rbp + 0x17], rax
movzx eax, dl
lea rdx, [rbp + 7]
inc eax
movdqa xmmword [rbp - 9], xmm1
shl eax, 6
lea r8d, [r9 + 0x40]
mov dword [rbp + 0x27], eax
lea ecx, [r8 + 0x79]
lea rax, [rbp - 9]
mov qword [rbp + 7], 3
mov qword [rbp + 0x2b], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x37], rax
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x33], r10d
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x57]
test ebx, ebx
jns 0x14018d402
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x14018ebb8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.14018eb68
test eax, eax
js 0x14018ec46
movzx eax, word [rdi + 6]
mov word [rbx], ax
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 0x18]
mov r9d, esi
mov r8, rdi
xor edx, edx
call fcn.14018eefc
test eax, eax
js 0x14018ec46
mov qword [rsp + 0x20], 3
lea rax, [0x1400411d8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
xor r9d, r9d
lea r8d, [r9 + 0x28]
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, dword [rsp + 0x78]
jmp 0x14018ec46
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1402fb9a4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, qword [rbp + 0x77]
mov r12, r9
and qword [rbp - 0x21], 0
mov r15d, r8d
and dword [rbp + 0x67], 0
mov rdi, rdx
and dword [rbp - 0x39], 0
mov rsi, rcx
cmp dword [r14], r8d
jae 0x1402fb9ee
mov edi, 0x80049e19
jmp 0x1402fbb64
mov rax, qword [rdx]
and qword [rbp - 0x31], 0
and qword [rbp - 0x29], 0
and qword [rbp - 0x19], 0
mov rbx, qword [rax]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x29]
lea rdx, [0x140412060]
mov rcx, rdi
call rax
test eax, eax
je 0x1402fba30
mov edi, 0x80049e2f
jmp 0x1402fbabe
mov rdi, qword [rbp - 0x29]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea rdx, [rbp - 0x31]
mov rcx, rdi
call rax
mov edi, eax
test eax, eax
js 0x1402fbabe
mov rdx, qword [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, rsi
call fcn.1402fb0d8
mov edi, eax
test eax, eax
js 0x1402fbabe
lea rax, [0x14004fbd8]
mov qword [rbp - 0x11], 3
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rax
xor r9d, r9d
mov rax, qword [rbp - 0x29]
mov ecx, 0xb9
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x21]
mov qword [rbp + 0x1f], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x77]
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x1402fbae7
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
and qword [rbp - 0x31], 0
mov rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x1402fbb0b
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
test edi, edi
js 0x1402fbb64
mov eax, dword [r14]
mov r8d, r15d
mov r9, qword [rbp + 0x7f]
mov rdx, r12
mov rcx, qword [rbp - 0x21]
mov dword [rbp + 0x67], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
call fcn.1401661ac
mov edi, eax
test eax, eax
js 0x1402fbb64
mov eax, dword [r14]
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x67]
sub eax, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x21]
mov dword [rbp - 0x39], eax
call fcn.140166514
mov edi, eax
test eax, eax
js 0x1402fbb64
mov ecx, dword [rbp + 0x67]
add ecx, dword [rbp - 0x39]
mov dword [r14], ecx
mov rcx, qword [rbp - 0x21]
call fcn.140165518
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140004f60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
push r14
push r15
mov eax, 0x13f0
call fcn.14005b6c0
sub rsp, rax
mov rax, qword [0x140073010]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
lea r8d, [rdi + 0x3e]
lea rdx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea rcx, [rsp + 0x30]
call fcn.1400092f0
nop
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
lea ecx, [rdi + 1]
nop dword [rax]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x140004ff0
mov dword [rsp + 0x50], 0x270
mov ebp, dword [rsp + 0x40]
dec ebp
lea rcx, [rsp + 0x50]
call fcn.140009f80
mov ecx, eax
imul rax, rcx, 0x17d
cmp eax, 0xf
ja 0x14000504d
lea rcx, [rsp + 0x50]
call fcn.140009f80
mov ecx, eax
imul rax, rcx, 0x17d
cmp eax, 0x10
jb 0x140005035
shr rax, 0x20
add eax, 0x154
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov r13, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
je 0x14000513f
mov r14d, eax
nop dword [rax + rax]
mov eax, ebp
cmp ebp, 0x80000000
jb 0x1400050ad
cmp ebp, 0xffffffff
jne 0x1400050ad
lea rcx, [rsp + 0x50]
call fcn.140009f80
mov ecx, eax
jmp 0x1400050ec
lea edi, [rax + 1]
lea rcx, [rsp + 0x50]
call fcn.140009f80
mov esi, edi
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jae 0x1400050e8
mov eax, edi
neg eax
xor edx, edx
div edi
mov edi, edx
cmp ecx, edx
jae 0x1400050e8
lea rcx, [rsp + 0x50]
call fcn.140009f80
mov ecx, eax
imul rcx, rsi
cmp ecx, edi
jb 0x1400050d4
shr rcx, 0x20
lea rdx, [rsp + 0x30]
cmp r13, 0x10
cmovae rdx, r15
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14000512d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140005122
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140005135
mov rcx, rbx
call fcn.140009710
sub r14, 1
jne 0x140005090
cmp r13, 0x10
jb 0x140005179
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x140005171
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005171
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14005a9e8
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.14005a650
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140007920
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 case.default.0x140007941
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 0x14000796e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007970
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400079c9
test ecx, ecx
jle 0x1400079a9
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 0x1400079c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400079c9
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 0x1400079f0
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 0x140007a12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140007a21
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 0x140007a44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007a46
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007a82
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 0x140007b1e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007abd
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 0x140007afe
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 0x140007b1e
cmp rbx, rax
ja 0x140007ad0
test rbx, rbx
je 0x140007b1e
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 0x140007f50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140073010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140007f7d
xor eax, eax
jmp 0x1400080e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007fb7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007fb7
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 0x1400080e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400080dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140007ffa
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 0x140008025
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 0x1400080e1
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 0x140008094
sub eax, 1
je 0x140008094
cmp eax, 2
jne 0x1400080dc
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 0x1400080e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400080c2
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 0x1400080dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400080e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005a650
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400087f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140073010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400088c3
cmp byte [rcx + 0x71], 0
je 0x1400088c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400088bf
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 0x140008884
sub eax, 1
je 0x140008888
cmp eax, 2
jne 0x1400088bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005a650
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400088b6
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 0x1400088bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000886c
xor al, al
jmp 0x14000886c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005a650
add rsp, 0x60
pop rbx
ret