joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016e470
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1401dfa98]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
call fcn.1401818f0
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.140198d30
lea rcx, [rsp + 0x20]
test r14, r14
je 0x14016e533
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, r14
call sub.python310.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
je 0x14016e521
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x14016e553
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x14016e553
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x14016e553
mov rcx, rbp
call fcn.1400ea580
sub qword [rdi], 1
jne 0x14016e563
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x14016e573
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14019e3f0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140198de0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140198ea4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x140198e00
not eax
ret
Function at 0x14019ee68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019eeb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019eeb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019eeb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019eeb2
cmp dword [rcx + 0x84], 0xe
jbe 0x14019eeb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14019eeb4
xor al, al
add rsp, 0x28
ret

Function at 0x1401a3e24
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401a3c83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401a3c83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401a3c83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401a3c83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401a3c83
cmp dword [rcx + 0x84], 0xe
jbe 0x1401a3c83
cmp dword [rcx + 0xf8], 0
je 0x1401a3c83
mov ecx, ebx
call fcn.1401a3d40
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401a3b10
nop
cmp dword [rbp + 0x20], 0
je 0x1401a3cd1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401a3cdc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401a3c14
Function at 0x1401b5714
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401b579b
mov rsi, rbx
cmp word [rax], bp
je 0x1401b575a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b5744
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b5740
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401b0e00
mov rdi, rax
test rax, rax
je 0x1401b5788
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14019f190
mov rbp, rdi
xor ecx, ecx
call fcn.1401b1920
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1409ba9e8
Capabilities:
Encode data using xor

Disassembly:
call fcn.140986350
xor r8w, bx
push r11
sub r8w, 0xdfab
neg r8w
inc r8w
rol byte [rsp + 5], 1
add r11w, 0xecbd
xor r8w, 0x8cb6
not r8w
neg r8w
not r11w
call fcn.1409aa383
call fcn.1409b249e
mov dx, word [r10 + rdx - 0x7700d6b5]
mov qword [rsp], rbp
and word [rsp + 6], bp
sal rbp, 0xc1
adc r10, 2
ror bpl, 0xe3
sar dword [rsp + 4], 0xb8
push rbp
sbb rdi, 1
push rbp
movzx ebp, byte [rdi]
xor dword [rsp + 0x12], 0x6e8bbc3d
xor bpl, sil
inc bpl
not bpl
sar byte [rsp + 0x15], 0x86
add bpl, 0xbd
rol bpl, 1
not bpl
ror dword [rsp + 9], 0x15
xor sil, bpl
dec qword [rsp + 8]
lea rbp, [rsp + rbp + 0x18]
jne 0x1409ba9b0
push 0xb862f08
lea rsp, [rsp + 0x10]
jmp fcn.1409b01da
add r10, 4
jmp 0x14097f853
mov word [rbp + riz], dx
lea rsp, [rsp + 0x18]
jg fcn.1409b01da
inc bl
mov edi, 0xd52ffb33
ror di, 0xe3
shr edi, 0x7d
xor bpl, bl
shr edi, 0x1c
adc rbx, rsp
not di
not dil
sub edi, edi
or dil, byte [rbx + rdi*2]
call fcn.1409831d8
mov rax, qword [r10]
mov ebp, 0x5f39f69c
ror ebp, 0x3a
mov ebp, dword ss:[rax]
jb 0x1409a5e2f
push 0x54b6699e
adc rbx, 0xc
shr dword [rsp + 1], 0xf
xor eax, eax
sar qword [rsp], 0xa6
test r8, r8
lea rsp, [rsp + 8]
je 0x1409bb21b
push rbx
lea rbx, [0x1409ac720]
push 0xffffffffd0abf586
mov r10d, dword [rsp + 1]
movzx r10d, byte [rcx]
push 0xffffffffd2388f82
xor r10d, eax
and r10d, 0xff
push 0xffffffffb8172cbd
mov r10d, dword [rbx + r10*4]
shr eax, 8
xor eax, r10d
inc rcx
xor eax, 0xdaa9b1bc
not byte [rsp + 0xa]
dec r8
lea rsp, [rsp + 0x18]
jne 0x1409baa2a
push 0xffffffff8921cd8a
call fcn.140982ee5
add r10, 4
add ebp, ecx
push 0xffffffff82bc370b
mov dword [r10], ebp
jmp 0x1409a2419
not eax
mov dword [rbx], eax
call fcn.1409ab912
mov edx, 0xe5959e0c
mov rdx, qword [r10]
mov r9d, 0xec9c0321
mov r9, qword [r10 + 8]
push 0xfffffffff3b1e83e
call fcn.14098aa0e
Function at 0x140007170
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x60
mov rdi, r8
mov esi, edx
mov rbx, qword [0x1400ce050]
mov qword [rsp + 0x48], rbx
lea rdx, str.Service_trying_to_start.
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
mov dword [rsp + 0x80], 0x428
mov dword [rbx + 0x1c], 2
xor r15d, r15d
mov dword [rbx + 0x24], r15d
mov dword [rbx + 0x30], r15d
mov ecx, dword [0x1400c9038]
lea eax, [rcx + 1]
mov dword [0x1400c9038], eax
mov dword [rbx + 0x2c], ecx
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rax, qword [rbx]
mov r8, rdi
mov edx, esi
mov rcx, rbx
call qword [rax + 8]
mov dword [rbx + 0x1c], 4
mov dword [rbx + 0x24], r15d
mov qword [rbx + 0x2c], r15
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov rcx, rbx
call fcn.1400076d0
mov qword [rsp + 0x40], r15
lea r8, [rsp + 0x40]
lea rdx, str.SYSTEMCurrentControlSetControlPowerModernSleep
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140007294
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.EnabledActions
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [0x1400ce040]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx r8d, byte [0x1400ce040]
lea rdx, str.System_Supports_Modern_Standby:__d
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
cmp byte [0x1400ce040], r15b
je 0x14000733d
lea rax, [0x140007990]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x98], r15
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x50]
mov edx, 2
lea rcx, [0x1400793d8]
call qword [sym.imp.api_ms_win_power_setting_l1_1_0.dll_PowerSettingRegisterNotification]
test eax, eax
je 0x14000730a
mov r8d, eax
lea rdx, str.PowerSettingRegisterNotification_failed:__u
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogError_wchar_t_const____ptr64____ptr64]
lea r9, str.CE7DC567_F47B_4A07_8489_C9DEB372B88F
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400ce048], rax
test rax, rax
jne 0x14000733d
lea rdx, str.Failed_to_create_notification_event_for_modern_Standby
mov rcx, qword [rbx + 8]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogError_wchar_t_const____ptr64____ptr64]
mov dword [rsp + 0x80], r15d
mov eax, r15d
jmp 0x140007351
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000d850
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov r8, rdx
lea rdx, str.test.exe
lea rcx, [rsp + 0x38]
call fcn.140010110
nop
cmp qword [rax + 0x18], 8
jb 0x14000d8a6
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000d8fc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d8f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d8f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061bc0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
test rbp, rbp
je 0x14000d9e5
mov sil, 1
mov eax, 1
mov edx, dword [rsp + 0x20]
cmp edx, eax
jle 0x14000d983
lea rcx, [rbp + 8]
nop dword [rax]
mov rdi, qword [rcx]
cmp word [rdi], 0x2f
jne 0x14000d945
inc eax
add rcx, 8
cmp eax, edx
jl 0x14000d930
jmp 0x14000d983
lea rax, vtable.Hp::Bridge::Security::HPAuthenticodeFacadeBase.0
mov qword [rsp + 0x28], rax
lea r15, vtable.Hp::Bridge::Security::HPAuthenticodeFacade.0
mov qword [rsp + 0x28], r15
lea r8, [0x1400ce240]
mov rdx, rdi
call fcn.140014470
movzx esi, al
test al, al
je 0x14000d97e
mov rdx, rdi
call fcn.1400167f0
movzx esi, al
mov qword [rsp + 0x28], r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000d9c8
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000d9c3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d9de
mov rcx, r8
call fcn.140061bc0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
movzx eax, sil
jmp 0x14000da32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000da20
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000da1b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000da59
mov rcx, r8
call fcn.140061bc0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140061ba0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
Function at 0x14003dde0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x38], rdx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov edx, 0x105
lea rcx, [rsp + 0x40]
call fcn.14000cbb0
nop
xor edx, edx
mov r8d, 0x20a
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
cmp qword [rsi + 0x18], 8
jb 0x14003de42
mov rsi, qword [rsi]
mov r8d, 0x105
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14003df3c
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003de80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003df19
mov qword [rbx], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], 7
mov word [rbx], bp
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003dea0
mov rcx, rbx
call fcn.140005a60
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003def9
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003def4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003def4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140061bc0
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140061ba0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.CapDataStore::expandPathAndCreateDirectory___failed_to_create_storage_directory
lea rcx, [rsp + 0x20]
call fcn.1400066a0
lea rdx, [0x1400bf338]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.CapDataStore::expandPathAndCreateDirectory___failed_to_expanded_environment_variable_pointing_to_output_directory
lea rcx, [rsp + 0x20]
call fcn.1400066a0
lea rdx, [0x1400bf338]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14003e250
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 case.default.0x14003e280
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 0x14003e2a8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003e2aa
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003e30b
test ecx, ecx
jle 0x14003e2e3
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 0x14003e30b
cmp qword [rdi + 0x80], 0
je 0x14003e30b
lfence
mov r9, qword [rdi + 0x80]
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
invalid
fsubr qword [rcx]
xor al, 8
push 0xffffffffa1d0019a
adc dword [rdx + 0x34], edx
movabs eax, dword [0x7fe29a3f435ed189]
invalid
invalid
invalid
loop 0x14013d324
test dword [rbx - 8], edi
jg 0x14013d2a1
invalid
jle 0x14013d283
and bl, byte [rbx - 0x1fe47ae]
invalid
Function at 0x14003e330
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 0x14003e352
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14003e364
lfence
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 qword [rsp + 0x20], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14003e38c
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003e38e
xor ecx, ecx
movsxd rax, ecx
mov rdi, rbp
test ecx, ecx
je 0x14003e3c3
cmp rax, 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, rbx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14003e464
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003e3fe
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 0x14003e441
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]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x14003e464
cmp rbx, rax
ja 0x14003e410
test rdi, rdi
je 0x14003e464
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]
mov rbx, rdi
sub rbx, rax
sub rbp, rbx
mov rax, rbp
lfence
mov rbx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
pop qword [rax - 0x5b]
test eax, 0x72156517
jp fcn.14013d2a0
invalid
Function at 0x14003e880
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003e8ad
xor eax, eax
jmp 0x14003ea05
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14003e8d8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14003e8d8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14003ea05
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003e9f8
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003e91b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14003e946
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 0x14003e9fd
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 0x14003e9b5
sub eax, 1
je 0x14003e9b5
cmp eax, 2
jne 0x14003e9f8
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 0x14003e9fd
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003e9e6
lfence
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 0x14003e9f8
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14003e9fd
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140061ba0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14003ed40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c9008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003ee16
cmp byte [rcx + 0x71], 0
je 0x14003ee16
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003ee12
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 0x14003edd4
sub eax, 1
je 0x14003edd8
cmp eax, 2
jne 0x14003ee12
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140061ba0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003ee09
lfence
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 0x14003ee12
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003edbc
xor al, al
jmp 0x14003edbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140061ba0
add rsp, 0x60
pop rbx
ret