joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140058a70
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x150
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140058b49
mov qword [rax + 8], rbx
xor r15d, r15d
xor edx, edx
mov qword [rax + 0x10], rbp
mov ecx, 2
mov edi, r15d
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140058b12
nop dword [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
jne 0x140058b00
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jbe 0x140058b00
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140058ae0
mov rbp, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x170]
test edi, edi
je 0x140058b49
mov r8d, edi
mov dword [r14], edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov qword [r14 + 8], rax
setne r15b
mov eax, r15d
jmp 0x140058b4b
xor eax, eax
mov rsi, qword [rsp + 0x180]
add rsp, 0x150
pop r15
pop r14
pop rdi
ret
Function at 0x140058b60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, r9
mov rdi, r8
mov rbp, rdx
mov r15, qword [rsp + 0x90]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__msize]
mov rsi, rax
test eax, eax
jg 0x140058ba6
xor al, al
jmp 0x140058c96
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor r12d, r12d
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, rbp
lea rcx, [0x14018b970]
call fcn.140058cc0
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
jne 0x140058bea
xor dil, dil
jmp 0x140058c51
mov ebp, r12d
sub rdi, rbx
sar rdi, 3
test rdi, rdi
je 0x140058c4e
movsxd r14, esi
mov rsi, rbx
nop
mov edx, dword [rsi]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, r14
mov rcx, qword [0x14018b978]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov qword [rsp + 0x20], r12
mov r9, r14
mov r8, r15
mov rdx, qword [rsi]
mov rcx, qword [0x14018b978]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc ebp
lea rsi, [rsi + 8]
movsxd rax, ebp
cmp rax, rdi
jb 0x140058c00
mov dil, 1
test rbx, rbx
je 0x140058c92
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rax, rbx
cmp rdx, 0x1000
jb 0x140058c8a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058c8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400cd4dc
movzx eax, dil
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14005aa30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rbp + 0xf]
mov rbx, qword [rbp + 0x17]
mov dword [rsp + 0x30], 0x3fe39581
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x38], 0x3fe39581
mov dword [rsp + 0x40], 0x3fe39581
mov qword [rsp + 0x44], 0x3da3d70a
mov dword [rbp - 0x7d], 0x435c0000
mov dword [rbp - 0x79], 0x428c0000
mov dword [rbp - 0x75], 0x42b40000
mov qword [rbp - 0x71], __WSAFDIsSet
mov dword [rbp - 0x69], 0x3f000000
mov dword [rbp - 0x65], 0x3e800000
lea rsi, [rsp + 0x30]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov ecx, Ordinal_60
call fcn.1400cd190
mov r14, rax
mov qword [rbp - 0x29], rax
lea r15, [rax + 0x38]
mov qword [rbp - 0x19], r15
mov r8d, Ordinal_60
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x61], 0x3fe39581
mov dword [rbp - 0x5d], 1
mov qword [rbp - 0x59], 0x3fe39581
mov dword [rbp - 0x51], 0x3fe39581
mov qword [rbp - 0x4d], 0x3da3d70a
mov dword [rbp - 0x45], 0x435c0000
mov dword [rbp - 0x41], 0x428c0000
mov dword [rbp - 0x3d], 0x42b40000
mov qword [rbp - 0x39], __WSAFDIsSet
mov dword [rbp - 0x31], 0x3db851ec
mov dword [rbp - 0x2d], 0x3cf5c28f
lea r12, [rbp - 0x61]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov ecx, Ordinal_60
call fcn.1400cd190
mov rsi, rax
mov qword [rbp - 0x11], rax
lea r13, [rax + 0x38]
mov qword [rbp - 1], r13
mov r8d, Ordinal_60
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 9], r13
mov qword [rsp + 0x20], rsi
mov r9, r14
mov r8, rbx
mov rdx, rdi
call fcn.140058b60
movzx ebx, al
test rsi, rsi
je 0x14005abcb
sub r13, rsi
cmp r13, 0x1000
jb 0x14005abbf
add r13, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x14005abfb
mov rsi, rcx
mov rdx, r13
mov rcx, rsi
call fcn.1400cd4dc
nop
test r14, r14
je 0x14005ac0d
sub r15, r14
mov rax, r14
cmp r15, 0x1000
jb 0x14005ac02
add r15, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005ac02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, r15
mov rcx, r14
call fcn.1400cd4dc
movzx eax, bl
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14005af50
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rbp + 0xf]
mov rbx, qword [rbp + 0x17]
mov dword [rsp + 0x30], 0x8ccccd40
mov dword [rsp + 0x34], 0xf5c28f3f
mov dword [rsp + 0x38], 0xcccccd3c
mov qword [rsp + 0x3c], 0x73d
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0xf0000000
mov dword [rbp - 0x7d], 0x48000041
mov dword [rbp - 0x79], 0x42
mov dword [rbp - 0x75], 0x1333333f
mov dword [rbp - 0x71], 0xb0000040
mov dword [rbp - 0x6d], 0x8000003f
mov dword [rbp - 0x69], 0x13f
lea rsi, [rsp + 0x30]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov ecx, 0x34
call fcn.1400cd190
mov r14, rax
mov qword [rbp - 0x29], rax
lea r15, [rax + 0x34]
mov qword [rbp - 0x19], r15
mov r8d, gethostname
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x61], 0xffb1e040
mov dword [rbp - 0x5d], 0xffb1e0ff
mov dword [rbp - 0x59], 0xffb1e0ff
mov dword [rbp - 0x55], 0xffb1e0ff
mov dword [rbp - 0x51], 0xffb1e0ff
mov dword [rbp - 0x4d], 0xff
mov dword [rbp - 0x49], 0xf0000000
mov dword [rbp - 0x45], 0x48000041
mov dword [rbp - 0x41], 0x42
mov dword [rbp - 0x3d], 0x1333333f
mov dword [rbp - 0x39], 0xb0000040
mov dword [rbp - 0x35], 0x8000003f
mov dword [rbp - 0x31], 0x13f
lea r12, [rbp - 0x61]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov ecx, 0x34
call fcn.1400cd190
mov rsi, rax
mov qword [rbp - 0x11], rax
lea r13, [rax + 0x34]
mov qword [rbp - 1], r13
mov r8d, gethostname
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 9], r13
mov qword [rsp + 0x20], rsi
mov r9, r14
mov r8, rbx
mov rdx, rdi
call fcn.140058b60
movzx ebx, al
test rsi, rsi
je 0x14005b0fc
sub r13, rsi
cmp r13, 0x1000
jb 0x14005b0f0
add r13, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x14005b12c
mov rsi, rcx
mov rdx, r13
mov rcx, rsi
call fcn.1400cd4dc
nop
test r14, r14
je 0x14005b13e
sub r15, r14
mov rax, r14
cmp r15, 0x1000
jb 0x14005b133
add r15, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b133
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, r15
mov rcx, r14
call fcn.1400cd4dc
movzx eax, bl
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14005b480
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
lea rcx, [rbp + 7]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rdi, qword [rbp + 0xf]
mov rbx, qword [rbp + 0x17]
mov dword [rbp - 0x49], 0xe92d4c10
mov dword [rbp - 0x45], 0xe28db008
mov dword [rbp - 0x41], 0xe59f010c
mov dword [rbp - 0x3d], 0xe08f0000
lea rsi, [rbp - 0x49]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400cd190
mov r14, rax
mov qword [rbp - 0x29], rax
lea r15, [rax + 0x10]
mov qword [rbp - 0x19], r15
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x39], 0xe3a00001
mov dword [rbp - 0x35], 0xe12fff1e
mov dword [rbp - 0x31], 0xe59f010c
mov dword [rbp - 0x2d], 0xe08f0000
lea r12, [rbp - 0x39]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400cd190
mov rsi, rax
mov qword [rbp - 0x11], rax
lea r13, [rax + 0x10]
mov qword [rbp - 1], r13
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 9], r13
mov qword [rsp + 0x20], rsi
mov r9, r14
mov r8, rbx
mov rdx, rdi
call fcn.140058b60
movzx ebx, al
test rsi, rsi
je 0x14005b5ad
sub r13, rsi
cmp r13, 0x1000
jb 0x14005b5a1
add r13, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x14005b5dd
mov rsi, rcx
mov rdx, r13
mov rcx, rsi
call fcn.1400cd4dc
nop
test r14, r14
je 0x14005b5ef
sub r15, r14
mov rax, r14
cmp r15, 0x1000
jb 0x14005b5e4
add r15, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b5e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, r15
mov rcx, r14
call fcn.1400cd4dc
movzx eax, bl
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14005b670
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
lea rcx, [rsp + 0x40]
call fcn.140055830
nop
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14005b718
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400efd08]
lea rdx, [0x1400efd0a]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rsp + rax + 0x60], 1
inc rcx
cmp rcx, rdx
jne 0x14005b6d0
lea rax, [rdi - 1]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
add r8, rbx
movzx eax, byte [r8]
cmp byte [rsp + rax + 0x60], 0
jne 0x14005b713
cmp r8, rbx
je 0x14005b718
dec r8
movzx eax, byte [r8]
cmp byte [rsp + rax + 0x60], 0
je 0x14005b700
sub r8, rbx
jmp 0x14005b71f
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.14004e600
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14005b775
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14005b7b5
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b7b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b7b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cd4dc
movdqa xmm0, xmmword [0x1400f0c40]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14005b808
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b803
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b803
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cd4dc
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14005c5c0
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x2b8
mov r8d, 0x104
lea rdx, [rsp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x1a0]
lea rcx, [rsp + 0x50]
call fcn.14004dbe0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14005c510
nop
lea rcx, [rsp + 0x50]
call fcn.14001f440
lea rdx, str.C:WindowsSystemdeleteApp.bat
lea rcx, [rsp + 0x30]
call fcn.140064b50
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.140063e20
nop
lea rdx, str._echo_off_n
lea rcx, [rsp + 0x90]
call fcn.140066540
lea rdx, str.timeout__T_6_n
lea rcx, [rsp + 0x90]
call fcn.140066540
lea rdx, str.del__F__Q__
lea rcx, [rsp + 0x90]
call fcn.140066540
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.140066720
mov rcx, rax
lea rdx, [0x1400efe14]
call fcn.140066540
lea rdx, str.del__F__Q__
lea rcx, [rsp + 0x90]
call fcn.140066540
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140066720
mov rcx, rax
lea rdx, [0x1400efe14]
call fcn.140066540
lea rcx, [rsp + 0x90]
call fcn.140063de0
lea rcx, [rsp + 0x30]
call fcn.140064b40
mov r8, rax
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea rdx, [0x1400efe38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.You_Are_Banned___
lea rdx, str.You_Are_Banned_From_This_Panel__By_NINJA_HEX
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140063ba0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140063bc2
xor eax, eax
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140063c01
mov r8, qword [rcx + 0x58]
movsxd r9, dword [r8]
lea rcx, [rdx + r9*2]
cmp rdx, rcx
jae 0x140063c01
lea eax, [r9 - 1]
mov dword [r8], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 2]
mov qword [rcx], rax
movzx eax, di
mov word [rdx], di
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x90], rbp
je 0x140063d1d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140063c48
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140063c56
movzx ecx, di
jmp 0x140063cb0
lea rax, [rsp + 0xa0]
mov word [rsp + 0x40], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140063cd7
sub eax, 1
je 0x140063cd7
cmp eax, 2
jne 0x140063d1d
movzx ecx, word [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
mov rbp, qword [rsp + 0x90]
cmp ax, si
cmove di, si
movzx eax, di
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
mov rbp, qword [rsp + 0xa0]
lea rax, [rsp + 0x48]
sub rbp, rax
je 0x140063d08
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140063d1d
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0xa8], rax
cmovne si, di
mov rbp, qword [rsp + 0x90]
movzx eax, si
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140064200
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.0x140064221
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 0x14006424e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140064250
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400642a9
test ecx, ecx
jle 0x140064289
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 0x1400642a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400642a9
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
invalid
Function at 0x1400642d0
Capabilities:
Read file on windows

Disassembly:
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 0x140064301
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 case.default.0x140064318
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 0x14006433b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006433d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140064379
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 0x14006440e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400643b4
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 0x1400643ee
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 0x14006440e
cmp rbx, rax
ja 0x1400643c0
test rbx, rbx
je 0x14006440e
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
add al, 0xff
out dx, eax
out 0xbc, al
div byte [rbp + riz*8 - 0x1de011c3]
mov ebp, eax
adc ch, bl
sbb al, ch
rcl edi, cl
xchg edx, eax
in al, dx
lodsd eax, dword [rsi]
shr edx, cl
xchg ecx, eax
shr dword [rsi + 0x5bd1eff7], 1
pop rbx
Function at 0x140064850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140064874
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400648b7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x1400648b7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400649e8
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400648fa
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 0x140064925
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
cmove edi, ecx
mov eax, edi
jmp 0x1400649ed
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14006499a
sub eax, 1
je 0x14006499a
cmp eax, 2
jne 0x1400649e8
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
cmove edi, ecx
mov eax, edi
jmp 0x1400649ed
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400649cb
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400649e8
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400649ed
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret