joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400412ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140041338
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140041330
cmp dword [rcx + 0x3c], edx
jl 0x140041330
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140041330
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140041338
mov rax, rdx
add rsp, 0x18
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00407960]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00407970]
mov dword [rax], 1
mov rax, qword [0x00407980]
mov dword [rax], 1
mov rax, qword [0x00407950]
mov dword [rax], 1
mov rax, qword [0x00407810]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00407940]
mov dword [0x0040a008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call sym._encode_pointer
mov rdx, qword [0x004078a0]
mov qword [rdx], rax
mov rdx, qword [0x00407890]
mov qword [rdx], rax
mov rax, qword [0x00407900]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004077c0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x4023cc
Capabilities:
Delete network filter via wfp api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov dword [rbp - 4], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0xffffffff
mov ecx, 0
call sym.FwpmEngineOpen0
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x40243a
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.blah_blah_____F_w_p_mEngineOpen0_failed_with_error_code:_0x_x._n
call sym.printf
jmp 0x4024f7
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x10]
mov rcx, rax
call sym.FwpmFilterDeleteById0
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x402465
mov rdx, qword [rbp + 0x10]
lea rcx, str.blah_blah_Deleted_filter_id:__llu._n
call sym.printf
jmp 0x402492
cmp dword [rbp - 4], 0x80320003
jne 0x40247c
lea rcx, str.blah_blah_____The_filter_does_not_exist.
call sym.puts
jmp 0x402492
mov eax, dword [rbp - 4]
mov r8d, eax
mov rdx, qword [rbp + 0x10]
lea rcx, str.blah_blah_____Failed_to_delete_filter_id:__llu_with_error_code:_0x_x._n
call sym.printf
mov rax, qword [str.Microsoft_Windows_W_F_P_Built_in_custom_provider.]
lea rdx, [rbp - 0x20]
mov rcx, rax
call sym.GetProviderGUIDByDescription
test eax, eax
je 0x4024ea
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rax
call sym.FwpmProviderDeleteByKey0
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x4024de
cmp dword [rbp - 4], 0x8032000a
je 0x4024ea
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.blah_blah_____F_w_p_mProviderDeleteByKey0_failed_with_error_code:_0x_x._n
call sym.printf
jmp 0x4024ea
lea rcx, str.blah_blah_Deleted_custom_W_F_P_provider.
call sym.puts
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.FwpmEngineClose0
nop
add rsp, 0x50
pop rbp
ret
Function at 0x402b02
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rcx, rax
lea rax, [rbp - 8]
mov r9, rax
mov r8d, 1
mov edx, 0x28
mov rax, qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
call rax
test eax, eax
jne 0x402bc4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3f0
je 0x402b7e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____OpenThreadToken_failed_with_error_code:_0x_x._n
call sym.printf
mov eax, 0
jmp 0x402cd5
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 8]
mov r8, rax
mov edx, 0x28
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
jne 0x402bc4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____OpenProcessToken_failed_with_error_code:_0x_x._n
call sym.printf
mov eax, 0
jmp 0x402cd5
lea rax, [rbp - 0x20]
add rax, 4
mov r8, rax
lea rdx, str.SeDebugPrivilege
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call rax
test eax, eax
jne 0x402c19
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____LookupPrivilegeValueA_failed_with_error_code:_0x_x._n
call sym.printf
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x402cd5
mov dword [rbp - 0x20], 1
mov dword [rbp - 0x14], 2
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call rax
test eax, eax
jne 0x402c8d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.____AdjustTokenPrivileges_failed_with_error_code:_0x_x._n
call sym.printf
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x402cd5
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x514
jne 0x402cc0
lea rcx, str.____Failed_to_get_SeDebugPrivilege._You_might_not_be_able_to_get_the_process_handle_of_the_EDR_process.
call sym.puts
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x402cd5
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x402e01
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x200], rcx
mov qword [rbp + 0x208], rdx
mov qword [rbp + 0x210], r8
cmp qword [rbp + 0x200], 0
je 0x402e3b
cmp qword [rbp + 0x208], 0
jne 0x402e45
mov eax, 3
jmp 0x402f53
lea rax, [rbp + 0x1c0]
mov r8d, 0xa
mov rdx, rax
mov rcx, qword [rbp + 0x200]
call sym.GetDriveName
test eax, eax
jne 0x402e6f
mov eax, 4
jmp 0x402f53
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x1c0]
mov r8d, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
call rax
test eax, eax
jne 0x402e9a
mov eax, 5
jmp 0x402f53
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.wcslen
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x200]
lea r8, [rdx + rax]
lea rcx, [rbp - 0x50]
mov rdx, qword [rbp + 0x210]
mov rax, qword [rbp + 0x208]
mov qword [rsp + 0x20], r8
mov r9, rcx
lea r8, str._S_S
mov rcx, rax
call sym.swprintf
mov qword [rbp + 0x1d8], 0
jmp 0x402f31
mov rax, qword [rbp + 0x1d8]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x208]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
mov rdx, qword [rbp + 0x1d8]
lea rcx, [rdx + rdx]
mov rdx, qword [rbp + 0x208]
lea rbx, [rcx + rdx]
mov ecx, eax
call sym.towlower
mov word [rbx], ax
add qword [rbp + 0x1d8], 1
mov rax, qword [rbp + 0x1d8]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x208]
add rax, rdx
movzx eax, word [rax]
test ax, ax
jne 0x402eee
mov eax, 0
add rsp, 0x268
pop rbx
pop rbp
ret

Function at 0x402f5d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
cmp qword [rbp + 0x10], 0
jne 0x402f77
mov eax, 0
jmp 0x402f99
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x402f94
mov eax, 0
jmp 0x402f99
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x4039b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0040a644]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x403ad0
mov rax, qword [0x0040a648]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4039fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x403ab6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x4039e0
mov rcx, rsi
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x403b08
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0040a648]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x0040a648]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403aeb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x403aaf
sub eax, 0x40
and eax, 0xffffffbf
je 0x403aaf
add rbx, qword [0x0040a648]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x403ad7
add dword [0x0040a644], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebx, ebx
jmp 0x403a07
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x0040a648]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call dbg.__report_error
nop
nop dword [rax + rax]

Function at 0x404260
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040a920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040a900]
test rbx, rbx
je 0x4042b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4042ab
test rsi, rsi
je 0x4042ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404290
lea rcx, [0x0040a920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4044f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x404500
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0
Function at 0x404510
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x404551
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x404548
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x404553
add rax, 0x28
cmp rax, r9
jne 0x404534
xor eax, eax
repz ret

Function at 0x4045f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00407810]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x404610
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x404608
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40466d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x404664
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x404608
add rdx, 0x28
cmp rdx, r9
jne 0x404650
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x404780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00407810]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x4047a0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x404798
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4047fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4047f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x404804
add rax, 0x28
cmp rax, r9
jne 0x4047e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x404820
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00407810]
xor r9d, r9d
mov r8d, ecx
cmp word [r11], 0x5a4d
je 0x404841
mov rax, r9
add rsp, 0x28
ret
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x404839
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x404839
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x404839
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x404894
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x4048b0
add rdx, 0x28
cmp rdx, r10
jne 0x404880
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x4048c8
jmp 0x40489d
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x4048d6
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40489d
test r8d, r8d
jg 0x4048c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140010810
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 0x140010841
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 0x14001085f
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 qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140010880
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140010882
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400108b4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140010951
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400108f2
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 rdi, 0xfff
jbe 0x140010931
nop dword [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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140010972
cmp rdi, rax
ja 0x140010900
test rbx, rbx
je 0x140010951
mov r9, qword [rsi + 0x80]
mov r8, rdi
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 + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140010954
Function at 0x140010980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400109b7
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400109d8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400109da
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140010a33
test ecx, ecx
jle 0x140010a13
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140010a33
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140010a33
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140003800
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0
je 0x140003854
mov rcx, qword [rdx + 0x38]
test rcx, rcx
je 0x14000384a
mov rax, qword [rcx]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14000c50e.0]
and qword [rbx + 0x38], 0
mov eax, 0x80070005
jmp 0x1400038ea
add rcx, 0x10
call fcn.1400038f8
and qword [rdi + 0x50], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x140003b00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
jne 0x1400038c3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400038bf
mov r8, qword [rcx]
cmp rcx, rbx
setne dl
mov rax, qword [r8 + 0x20]
call qword [case.0x14000c50e.0]
and qword [rbx + 0x38], 0
mov eax, edi
jmp 0x1400038ea
mov qword [rdi + 8], rax
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400038e8
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14000c50e.0]
and qword [rbx + 0x38], 0
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140005580
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movabs r9, 0xcbf29ce484222325
mov r10, rdx
mov r11, r9
mov rbx, rcx
xor edx, edx
movabs rdi, 0x100000001b3
movzx eax, byte [rdx + r8]
inc rdx
xor r11, rax
imul r11, rdi
cmp rdx, 8
jb 0x1400055a9
xor ecx, ecx
movzx eax, byte [r8 + rcx + 8]
inc rcx
xor r9, rax
imul r9, rdi
cmp rcx, 8
jb 0x1400055c0
mov rdx, qword [rbx + 8]
xor r9, r11
and r9, qword [rbx + 0x30]
mov r11, qword [rbx + 0x18]
mov rax, r9
add rax, rax
add r9, r9
mov rax, qword [r11 + rax*8]
cmp qword [r11 + r9*8], rdx
jne 0x1400055fd
mov rcx, rdx
jmp 0x140005605
mov rcx, qword [r11 + r9*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x14000563f
mov rcx, qword [rax + 0x10]
cmp rcx, qword [r8]
jne 0x14000561d
mov rcx, qword [rax + 0x18]
cmp rcx, qword [r8 + 8]
je 0x140005622
mov rax, qword [rax]
jmp 0x1400055f2
mov rcx, qword [r8]
sub rcx, qword [rax + 0x10]
jne 0x140005633
mov rcx, qword [r8 + 8]
sub rcx, qword [rax + 0x18]
test rcx, rcx
cmovne rax, rdx
mov qword [r10], rax
jmp 0x140005642
mov qword [r10], rdx
mov rbx, qword [rsp + 8]
mov rax, r10
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1400058ac
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r10, rcx
movabs r9, 0xcbf29ce484222325
xor ecx, ecx
mov rdi, rdx
mov r11d, ecx
mov rbx, r9
movabs rdx, 0x100000001b3
movzx eax, byte [r11 + r8 + 0x10]
inc r11
xor rbx, rax
imul rbx, rdx
cmp r11, 8
jb 0x1400058d8
movzx eax, byte [r8 + rcx + 0x18]
inc rcx
xor r9, rax
imul r9, rdx
cmp rcx, 8
jb 0x1400058ee
mov rcx, qword [r10 + 0x18]
xor r9, rbx
and r9, qword [r10 + 0x30]
add r9, r9
cmp qword [rcx + r9*8 + 8], r8
jne 0x14000593c
cmp qword [rcx + r9*8], r8
jne 0x140005931
mov rax, qword [r10 + 8]
mov qword [rcx + r9*8], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
jmp 0x140005935
mov rax, qword [r8 + 8]
mov qword [rcx + r9*8 + 8], rax
jmp 0x140005949
cmp qword [rcx + r9*8], r8
jne 0x140005949
mov rax, qword [r8]
mov qword [rcx + r9*8], rax
mov rax, qword [r8 + 8]
mov rbx, qword [r8]
mov qword [rax], rbx
mov rcx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
mov rcx, r8
dec qword [r10 + 0x10]
call fcn.14000b314
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140005984
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, qword [rdx]
mov rbp, rcx
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
xor esi, esi
mov edx, eax
shr rdx, 2
movabs rdi, 0xcbf29ce484222325
mov r10d, eax
mov ebx, esi
movabs r15, 0x100000001b3
test rdx, rdx
je 0x1400059fc
mov r8, r14
mov rcx, rdi
mov r9, rsi
movzx eax, byte [r8 + r9]
inc r9
xor rcx, rax
imul rcx, r15
cmp r9, 4
jb 0x1400059da
xor rbx, rcx
add r8, 4
sub rdx, 1
jne 0x1400059d4
test r10b, 3
je 0x140005a28
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_VariantInit]
dec eax
lea rcx, [r14 + rax*2]
movzx eax, byte [rsi + rcx]
inc rsi
xor rdi, rax
imul rdi, r15
cmp rsi, 2
jb 0x140005a11
xor rbx, rdi
mov rax, qword [rbp + 0x30]
mov rbp, qword [rsp + 0x48]
and rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret