joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403438ac
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
and qword [rcx], 0
and dword [rcx + 8], 0
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, str.SystemRoot
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
jne 0x14034395c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbx + 8], eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343a13
lea rcx, str.The_call_to_get_environment_variable_failed
mov qword [rsp + 0x38], rcx
mov ecx, dword [rbx + 8]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14045a36c]
mov rcx, rax
call fcn.14000789c
jmp 0x140343a13
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14008c350
nop
lea rdx, str._system32FirewallAPI.dll
lea rcx, [rsp + 0x40]
call fcn.140077830
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14007d520
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rdx, rax
mov rcx, rbx
call fcn.140293cb4
cmp qword [rbx], 0
jne 0x140343a08
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbx + 8], eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343a08
lea rcx, str.Failed_to_load_the_firewall_dll_library
mov qword [rsp + 0x38], rcx
mov ecx, dword [rbx + 8]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14045a36c]
mov rcx, rax
call fcn.14000789c
nop
lea rcx, [rsp + 0x40]
call fcn.14007a7c0
nop
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret

Function at 0x140343a40
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rdx
jne 0x140343a59
mov eax, dword [rcx + 8]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx]
lea rdx, str.FWClosePolicyStore
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x140343ac8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343abf
lea rcx, str.Failed_to_get_address_of_FWClosePolicyStore
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x50], rcx
lea rdx, [0x14045a36c]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp qword [case.0x1400ae9d9.0]
Function at 0x140343ae0
Capabilities:
Check if file exists

Disassembly:
mov word [rsp + 0x10], dx
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, r8
jne 0x140343afd
mov eax, dword [rcx + 8]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx]
lea rdx, str.FWFreeFirewallRulesOld
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x140343b6c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343b63
lea rcx, str.Failed_to_get_address_of_FWFreeFirewallRulesOld
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x40], rcx
lea rdx, [0x14045a36c]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov ecx, 0x21b
mov rdx, rbx
add rsp, 0x30
pop rbx
jmp qword [case.0x1400ae9d9.0]

Function at 0x140343b88
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], r8
mov word [rsp + 0x10], dx
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
jne 0x140343ba5
mov eax, dword [rcx + 8]
jmp 0x140343c3c
mov rcx, qword [rcx]
lea rdx, str.FWOpenPolicyStore
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov r10, rax
test rax, rax
jne 0x140343c12
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343c0e
lea rcx, str.Failed_to_get_address_of_FWOpenPolicyStore
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rcx
lea rdx, [0x14045a36c]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
jmp 0x140343c3c
mov rax, qword [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x28], rax
mov ecx, 0x21b
and dword [rsp + 0x20], 0
mov rax, r10
lea r9d, [rdx + 1]
lea r8d, [rdx + 8]
call qword [case.0x1400ae9d9.0]
add rsp, 0x40
pop rbx
ret

Function at 0x140343c4c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov word [rsp + 0x20], r9w
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, r8
mov rdi, rdx
jne 0x140343c70
mov eax, dword [rcx + 8]
jmp 0x140343cfe
mov rcx, qword [rcx]
lea rdx, str.FWQueryFirewallRules
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov r10, rax
test rax, rax
jne 0x140343cdd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343cd9
lea rcx, str.Failed_to_get_address_of_FWQueryFirewallRules
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x40], rcx
lea rdx, [0x14045a36c]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
jmp 0x140343cfe
mov rax, qword [rsp + 0x68]
xor r8d, r8d
mov r9, qword [rsp + 0x60]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rax, r10
call qword [case.0x1400ae9d9.0]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140343d10
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, r8
mov edi, edx
jne 0x140343d2a
mov eax, dword [rcx + 8]
jmp 0x140343d9f
mov rcx, qword [rcx]
lea rdx, str.FwAnalyzeFirewallPolicyOnProfile
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x140343d94
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343d90
lea rcx, str.Failed_to_get_address_of_FwAnalyzeFirewallPolicyOnProfile
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x58], rcx
lea rdx, [0x14045a36c]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
jmp 0x140343d9f
mov rdx, rbx
mov ecx, edi
call qword [case.0x1400ae9d9.0]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140343db4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x40
cmp qword [rcx], 0
jne 0x140343dcc
mov eax, dword [rcx + 8]
jmp 0x140343e6e
mov rcx, qword [rcx]
lea rdx, str.NetworkIsolationCreateAllInterfacesContainer
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov r10, rax
test rax, rax
jne 0x140343e39
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343e35
lea rcx, str.Failed_to_get_address_of_NetworkIsolationCreateAllInterfacesContainer
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x68], rcx
lea rdx, [0x14045a36c]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
jmp 0x140343e6e
mov rax, qword [rsp + 0x80]
lea rdx, str.Sense_Isolation_Command
mov qword [rsp + 0x28], rax
lea rcx, str.SenseIsolation
mov eax, dword [rsp + 0x78]
mov r9d, 1
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov rax, r10
call qword [case.0x1400ae9d9.0]
add rsp, 0x40
pop rbx
ret

Function at 0x140343e7c
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
jne 0x140343e92
mov eax, dword [rcx + 8]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rcx]
lea rdx, str.NetworkIsolationDeleteAllInterfacesContainer
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
jne 0x140343f01
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x140343ef8
lea rcx, str.Failed_to_get_address_of_NetworkIsolationDeleteAllInterfacesContainer
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rcx
lea rdx, [0x14045a36c]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000789c
mov eax, ebx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
jmp qword [case.0x1400ae9d9.0]
Function at 0x140345438
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, r8d
mov rcx, qword [rcx + 0xc0]
test rcx, rcx
je 0x140345486
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
test eax, eax
je 0x140345486
test edi, edi
je 0x140345486
mov rcx, qword [rbx + 0xc0]
mov edx, edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140345486
call fcn.14007e73c
lea rcx, [rbx + 0xd8]
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400dc334
Function at 0x140006d00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov edx, 0x104
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xorps xmm0, xmm0
test eax, eax
jne 0x140006d5f
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], rdi
lea rdx, [0x140042bb1]
mov qword [rbx + 0x18], rdi
mov rcx, rbx
call fcn.140001e80
jmp 0x140006d93
xorps xmm1, xmm1
lea rdx, [rsp + 0x50]
mov r8d, 2
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
call fcn.140001e80
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003eed0
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x14000ca00
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ca4e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_take_a_snapshot_of_the_processes_n
call fcn.140014a90
jmp 0x14000cb4c
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x14000ca80
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_retrieve_information_about_the_first_process_n
call fcn.140014a90
jmp 0x14000cb43
mov qword [rsp + 0x170], rbx
nop dword [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14000caa0
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
mov r8, qword [rdi + 0x10]
jbe 0x14000caba
mov rcx, qword [rdi]
cmp r8, rax
jne 0x14000cb25
lea rdx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000cb25
mov r8d, dword [rsp + 0x28]
lea ecx, [rax + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x14000cafa
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_open_process_for_termination_n
call fcn.140014a90
jmp 0x14000cb25
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14000cb1c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.failed_to_terminate_process_n
call fcn.140014a90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14000ca90
mov rbx, qword [rsp + 0x170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14003eed0
mov rsi, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14000f5d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
lea rax, vtable.LoginWindow.0
mov qword [rcx], rax
mov qword [rcx + 0x14], 0x42c80000
mov qword [rcx + 0x1c], rdi
mov byte [rcx + 0x25], 1
mov dword [rcx + 0x50], 0x3e109091
mov dword [rcx + 0x54], 0x3e109091
mov dword [rcx + 0x58], 0x3e109091
mov dword [rcx + 0x5c], 0x3f800000
mov dword [rcx + 0x60], 0x3f6dedef
mov dword [rcx + 0x64], 0x3e109091
mov dword [rcx + 0x68], 0x3ee8e8ea
mov dword [rcx + 0x6c], 0x3f800000
mov byte [rcx + 0x70], dil
mov dword [rcx + 8], 0x44160000
mov dword [rcx + 0xc], 0x43960000
movaps xmm5, xmmword [0x140048290]
movss xmm1, dword [0x140048060]
mov dword [rbp - 0x29], edi
mov qword [rbp - 0x21], rdi
mov dword [rbp - 0x19], edi
mov word [rbp - 0x15], 0x101
mov qword [rbp - 0x11], rdi
mov qword [rbp - 1], rdi
movaps xmm3, xmmword [0x140048270]
movaps xmm4, xmmword [0x140048280]
mov dword [rbp - 0x25], 0x43f00000
movss xmm2, dword [0x140048040]
unpcklps xmm2, xmm1
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rcx + 0x10], xmm0
movups xmm1, xmmword [rbp - 0x19]
movups xmmword [rcx + 0x20], xmm1
movups xmm0, xmmword [rbp - 9]
movsd xmm0, xmm2
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm5
movups xmmword [rcx + 0x50], xmm3
movups xmmword [rcx + 0x60], xmm4
lea rax, str.Initiating_client
mov qword [rcx + 0x28], rax
cmp byte [rcx + 0x25], 1
je 0x14000f6e9
mov dword [rcx + 0x10], edi
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x38], rdi
mov word [rcx + 0x24], 0x101
cmp dword [rcx + 0x20], 0x14
je 0x14000f723
movss xmm1, dword [rcx + 0x10]
movss xmm0, dword [0x14004802c]
comiss xmm0, xmm1
jbe 0x14000f712
subss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rcx + 0x18], eax
mov dword [rcx + 0x1c], edi
mov dword [rcx + 0x10], 0x41a00000
mov dword [rcx + 0x20], 0x14
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x3f], rdx
mov ecx, 0x10
call fcn.14003eef0
movups xmm0, xmmword [rbp + 0x37]
movups xmmword [rax], xmm0
mov qword [rbp + 0x37], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140016e70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14000f7b7
cmp dword [rbp - 0x31], 0
je 0x14000f7ab
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14000f7ab
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14003eed0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x31], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140012e90
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.0x140012eb1
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 0x140012ede
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140012ee0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140012f39
test ecx, ecx
jle 0x140012f19
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 0x140012f39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140012f39
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
xor eax, dword [rcx]
imul edi, esi, 0xffffffb8
add byte [rax], al
add al, byte [rax]
push rdi
add byte [rax], al
add bl, byte [rax + 3]
add dword [rax], 0xd0003
add byte [rcx], al
xor esi, dword [rdi]
and edx, dword [rdi]
xor edx, dword [rcx]
and eax, dword [rcx]
adc dword [rbx], esp
adc dword [rbx], esi
add dword [rcx], eax
sub dh, byte [rcx]
pop rbx
cmp al, 0xa9
xor eax, 0x3563fe2f
add dword cs:[rsi - 0x3a80fdfd], ebx
std
add r11b, byte [rdx - 3]
cmpsb byte [rsi], byte [rdi]
add bh, byte [rbp + rdi*8 + 0xa6]
add al, byte [rax]
add byte [r8], r8b
add esp, esi
add bh, byte [rcx + 0x16000300]
add byte [rax], al
add dword [rdi], eax
invalid
and esi, dword [rdi]
invalid
Function at 0x140012f60
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 0x140012f82
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140012f91
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 0x140012fb4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140012fb6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140012ff2
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 0x14001308e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001302d
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 0x14001306e
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 0x14001308e
cmp rbx, rax
ja 0x140013040
test rbx, rbx
je 0x14001308e
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
invalid
Function at 0x1400134f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001351d
xor eax, eax
jmp 0x140013689
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140013557
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140013557
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 0x140013689
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001367c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001359a
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 0x1400135c5
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 0x140013681
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 0x140013634
sub eax, 1
je 0x140013634
cmp eax, 2
jne 0x14001367c
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 0x140013681
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140013662
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 0x14001367c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140013681
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003eed0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140014130
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140052040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140014203
cmp byte [rcx + 0x71], 0
je 0x140014203
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400141ff
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 0x1400141c4
sub eax, 1
je 0x1400141c8
cmp eax, 2
jne 0x1400141ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003eed0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400141f6
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 0x1400141ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400141ac
xor al, al
jmp 0x1400141ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003eed0
add rsp, 0x60
pop rbx
ret