joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140069178
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x1400cc720]
mov edx, 8
mov r8d, 0x250
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400ce8c0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x1400ce8d0], rdi
and dword [rdi + 0x11c], 0
or eax, 0xffffffff
mov edx, ebx
mov rcx, rdi
mov dword [rdi + 0x118], 0xffffff
mov dword [rdi + 0xe8], 2
mov dword [rdi + 0xec], 0x3f
mov dword [rdi + 0x120], eax
mov dword [rdi + 0x124], eax
call fcn.140072368
mov rbx, qword [rsp + 0x30]
lea rax, [0x14006912c]
lea r11, [0x1400690c8]
mov qword [rdi + 0xb8], rax
lea rax, [fcn.140067d8c]
mov qword [rdi + 0xb0], r11
mov qword [rdi + 0x20], rax
lea rax, [0x140067f68]
mov qword [rdi + 0x60], rax
lea rax, [0x1400680c0]
mov qword [rdi + 0xc8], rax
lea rax, [0x140068120]
mov qword [rdi + 0xc0], rax
lea rax, [0x140068b50]
mov qword [rdi + 0x68], rax
lea rax, [0x140068988]
mov qword [rdi + 0x48], rax
lea rax, [0x1400689b4]
mov qword [rdi + 0x50], rax
lea rax, [0x1400689e4]
mov qword [rdi + 0x58], rax
lea rax, [0x140068ee4]
mov qword [rdi + 0x88], rax
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x14006a9d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
mov r10d, dword [rsp + 0x68]
movsxd rbp, dword [rcx + 0x160]
mov ebx, r8d
mov r14, rdx
mov r11, rcx
test r10d, r10d
je 0x14006aa9a
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov r12d, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r15, eax
mov eax, ebp
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg r12d
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r15
add r8, r14
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x14006aa7e
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
add r8, 4
xor byte [rdx], al
add rdx, rbp
dec rdi
jne 0x14006aa5a
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x14006aa93
add ecx, r12d
jmp 0x14006aa95
add ecx, ebx
test r10d, r10d
jne 0x14006aa2e
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret
Function at 0x14006c09c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
mov r11d, dword [rsp + 0x68]
movsxd rbp, dword [rcx + 0x160]
mov r14, rdx
mov ebx, r8d
mov rdx, rcx
test r11d, r11d
je 0x14006c168
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov r12d, ebx
lea r10d, [rax + rax*2]
mov eax, ebp
imul ecx, dword [rsp + 0x58]
movsxd r15, r10d
mov r10d, dword [rsp + 0x48]
imul eax, r9d
movsxd rdi, eax
neg r12d
mov qword [rsp + 0x28], rdi
mov eax, dword [rdx + 0x158]
movsxd r9, ecx
add r9, r15
add r9, r14
imul eax, r10d
movsxd r8, eax
add r8, qword [rdx + 0x150]
add r8, rdi
cmp dword [rsp + 0x60], 0
jle 0x14006c14d
mov edi, dword [rsp + 0x60]
mov al, byte [r9 + 2]
xor byte [r8 + 2], al
mov al, byte [r9 + 1]
xor byte [r8 + 1], al
mov al, byte [r9]
add r9, 3
xor byte [r8], al
add r8, rbp
dec rdi
jne 0x14006c126
mov rdi, qword [rsp + 0x28]
dec r11d
inc r10d
cmp dword [rdx + 0x174], 0
jne 0x14006c161
add ecx, r12d
jmp 0x14006c163
add ecx, ebx
test r11d, r11d
jne 0x14006c0fb
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret
Function at 0x180262c50
Capabilities:
Encode data using base64

Disassembly:
mov ebp, dword [rdi]
mov qword [rsp], 0x679cb4b2
mov cl, byte [rdi + 4]
add rdi, 2
and qword [rsp], 0x6230248f
call fcn.18024ac19

Function at 0x180263622
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + r9*4 - 0xc0], 0x1bcf90
ror eax, 1
mov ebp, 0xef9e6796
movzx edx, sil
dec eax
not eax
mov qword [rsp + rcx - 0x13b47c32], 0xffffffff96231534
lea eax, [rax + rcx*2 - 0x13acbd3c]
mov qword [rsp + rcx - 0x13b47c22], r10
sar dx, 0x6e
adc byte [rsp + rcx*2 - 0x2768f85e], dh
xor dword [rsp + rcx - 0x13b47c22], eax
xadd qword [rsp + rdx*2 + 5], rsi
shr edx, 0x63
mov r10, qword [rsp + rcx - 0x13b47c22]
lea rdi, [rcx + rdi - 0x13b47c36]
sub word [rsp + rcx*2 - 0x2768f861], r9w
jle 0x1802526fe

Function at 0x180269220
Capabilities:
Encode data using base64

Disassembly:
rol dl, 0x26
ror ebp, 2
mov qword [rsp + r9 - 0x521cc0c5], rdx
call fcn.1802767b3
lea rdi, [rdi + rbp*8 - 0xc0b42]
neg bpl
mov word [rbp + rdi - 0x18198], dx
pop r8
pop r8
pop rcx
jle fcn.18025b5a3

Function at 0x18026f40d
Capabilities:
Encode data using base64

Disassembly:
mov r10, qword [rsp + rsi*2 - 0x396cf98c]
movsxd rbp, ebp
call fcn.1802895d7
xor qword [rsp + rsi - 0x6087560e], rcx
movsx eax, cx
lea rdi, [rdi + rsi - 0x60875619]
mov word [rdx + rdi - 0x5211], bp
jbe 0x1802566f6
ror word [rsp + rsi - 0x60875606], 0x65
movzx ebp, al
pop rsi
pop r8
pop rbp
jae fcn.18025b5a3

Function at 0x18027e5d2
Capabilities:
Authenticate hmac
Encode data using base64

Disassembly:
rol esi, 0xc2
neg ebp
mov ecx, 0xa991752a
mov qword [rsp + r9*2 - 0x70], r8
mov edx, dword [rsp + rax - 0x7e973c54]
bswap ebp
call fcn.180247947
Function at 0x180284c8b
Capabilities:
Encode data using base64

Disassembly:
jp 0x18028a105
mov eax, 0x4f354da2
movsx edx, al
mov r8, qword [rax + rdi - 0x4f354da2]
shr edx, 4
bswap edx
shr dx, 0x61
mov rdx, qword [rdi + rax - 0x4f354d9a]
call fcn.18027ada6
mov esi, 0x50a3050e
shl esi, 0x90
mov r8d, dword [r11 + rsi*8 - 0x28700004]
jns 0x180290f4d
xor cx, r10w
neg cx
sub cx, 0xcfb4
call fcn.18026e9c2
xor dword [rsp + rdx*2 - 0xd556], eax
inc r8d
pop r10
sets r8b
jp 0x180246634
sub r11, 4
mov eax, 0x4eb08f30
movsx esi, ax
mov edx, dword [r11 + rax - 0x4eb08f30]
movsx ecx, si
xor edx, r10d
movsx r8d, ax
ror edx, 1
movsx r9d, si
dec edx
push rax
movzx ebp, al
ror edx, 1
ror r9w, 0xa5
ror r8w, 0xaf
adc dword [rsp + rbp*2 - 0x5f], 0x8383510c
not edx
inc sil
add esi, 0x5d8928ac
lea edx, [rax + rdx + 0xcfcc57e]
mov qword [rsp + rax - 0x4eb08f30], r10
xor dword [rsp + rbp - 0x30], edx
sar cl, 0x43
lea rcx, [r8 + rsi*2 + 0x93f9033]
pop r10
movsxd rdx, edx
adc rbx, rdx
ror eax, cl
sub ebp, ecx
mov ebp, dword [rdi + rax - 0x3cc13ac2]
adc cx, cx
jb 0x18027e68d
mov cl, byte [rdi + rsi - 0x5d88b7d9]
rol r8, 0x88
lea rdi, [rdi + rax*2 - 0x79827582]
shl ebp, cl
movzx edx, ax
dec r9
mov dword [rdi + rsi - 0x5d88b7dd], ebp
jmp rbx
xor r8d, r10d
lea rdx, [rsi + rsi - 0x3ef5a273]
add sil, 0x82
mov r9d, 0x4cb99c13
lea r8d, [rsi + r8 + 0x5f19e49f]
rol r8d, 2
neg si
bswap r8d
neg edx
push rdx
ror r8d, 3
or byte [rsp + rsi*2 - 0xa1dfef7], 0xe
mov qword [rsp + rsi*8 - 0x2877fbf0], r10
mov ecx, esi
inc rsi
xor dword [rsp + rsi - 0x50eff7f], r8d
sal cx, 0xa1
pop r10
movsxd r8, r8d
xchg r9b, dl
lea rax, [rdx + rcx*4 + 0x1c0dd91b]
add rbx, r8
sub rax, rsi
add ecx, esi
movsx r8d, sil
mov rax, rdi
adc rsi, rsi
mov qword [rdi + rsi*2 - 0x143bfe04], rax
ja 0x180263c39

Function at 0x18028fb17
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + rcx - 0x19956693], r9
sub eax, 0x83bbe2b0
sub r8b, byte [rsp + rcx*2 - 0x332acd25]
sal byte [rsp + rcx*2 - 0x332acd25], 4
mov qword [rsp + rcx*2 - 0x332acd26], r10
xor dword [rsp + rcx*2 - 0x332acd26], eax
shl cl, 0x25
call fcn.1802510c5
mov edx, 0x3a1152ae
jmp 0x180276b85
Function at 0x140007e10
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 [0x1400affc0]
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 [0x1400ab038]
lea eax, [rcx + 1]
mov dword [0x1400ab038], 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 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 0x140007f2c
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 [0x1400affb0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx r8d, byte [0x1400affb0]
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 [0x1400affb0], r15b
je 0x140007fd5
lea rax, [0x140008360]
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, [0x140065508]
call qword [sym.imp.api_ms_win_power_setting_l1_1_0.dll_PowerSettingRegisterNotification]
test eax, eax
je 0x140007fa2
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 [0x1400affb8], rax
test rax, rax
jne 0x140007fd5
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 0x140007fe9
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 0x14000dee0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400ab008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov r8, rdx
lea rdx, str.test.exe
lea rcx, [rsp + 0x30]
call fcn.14000f8f0
cmp qword [rax + 0x18], 8
jb 0x14000df2a
mov rax, qword [rax]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000df80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000df7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000df7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058b40
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
test rdi, rdi
je 0x14000dfe1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000dfdd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000dfd8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000e04d
mov rcx, r8
call fcn.140058b40
mov al, 1
jmp 0x14000e01e
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000e01c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000e017
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000e04d
mov rcx, r8
call fcn.140058b40
xor al, al
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058b20
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14003a3e0
Capabilities:
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400ab008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, r8
mov r14, rdx
mov qword [rsp + 0x38], rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov edx, 0x105
call fcn.140006bb0
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rsi, [rax + 0x20a]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
xor ebp, ebp
xor edx, edx
mov r8d, 0x20a
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
cmp qword [r15 + 0x18], 8
jb 0x14003a451
mov r15, qword [r15]
mov r8d, 0x105
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14003a543
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003a48b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003a520
mov qword [r14], rbp
mov qword [r14 + 0x10], rbp
mov qword [r14 + 0x18], 7
mov word [r14], bp
mov r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], bp
jne 0x14003a4a5
mov rdx, rbx
mov rcx, r14
call fcn.140006a60
nop
test rbx, rbx
je 0x14003a4f5
sub rsi, rbx
sar rsi, 1
add rsi, rsi
cmp rsi, 0x1000
jb 0x14003a4ea
add rsi, 0x27
mov rcx, qword [rbx - 8]
sub rbx, rcx
lea rax, [rbx - 8]
cmp rax, 0x1f
ja 0x14003a519
mov rbx, rcx
mov rdx, rsi
mov rcx, rbx
call fcn.140058b40
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140058b20
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rdx, str.CapDataStore::expandPathAndCreateDirectory___failed_to_create_storage_directory
lea rcx, [rsp + 0x20]
call fcn.140007360
lea rdx, [0x1400a20d0]
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.140007360
lea rdx, [0x1400a20d0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14003a860
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.0x14003a890
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 0x14003a8b8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003a8ba
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14003a91b
test ecx, ecx
jle 0x14003a8f3
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 0x14003a91b
cmp qword [rdi + 0x80], 0
je 0x14003a91b
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
Function at 0x14003a940
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 0x14003a962
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14003a974
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 0x14003a99c
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003a99e
xor ecx, ecx
movsxd rax, ecx
mov rdi, rbp
test ecx, ecx
je 0x14003a9d3
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 0x14003aa74
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14003aa0e
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 0x14003aa51
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 0x14003aa74
cmp rbx, rax
ja 0x14003aa20
test rdi, rdi
je 0x14003aa74
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
mov esp, 0xcee5ff1d
cli
push rdx
invalid
Function at 0x14003ae90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400ab008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14003aebd
xor eax, eax
jmp 0x14003b015
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14003aee8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14003aee8
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 0x14003b015
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14003b008
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14003af2b
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 0x14003af56
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 0x14003b00d
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 0x14003afc5
sub eax, 1
je 0x14003afc5
cmp eax, 2
jne 0x14003b008
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 0x14003b00d
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14003aff6
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 0x14003b008
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14003b00d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140058b20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14003b350
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400ab008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14003b426
cmp byte [rcx + 0x71], 0
je 0x14003b426
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14003b422
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 0x14003b3e4
sub eax, 1
je 0x14003b3e8
cmp eax, 2
jne 0x14003b422
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140058b20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003b419
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 0x14003b422
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14003b3cc
xor al, al
jmp 0x14003b3cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140058b20
add rsp, 0x60
pop rbx
ret
Function at 0x140057f90
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1400ab008]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
mov dword [rsp + 0x20], 0x12c
mov r8d, 0x258
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
xor bl, bl
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x140058017
xor eax, eax
lea r8, [rsp + 0x30]
lea r9, str.SYSTEM
nop dword [rax]
movzx edx, word [r8 + rax*2]
inc rax
movzx ecx, word [r9 + rax*2 - 2]
sub edx, ecx
jne 0x140058008
cmp rax, 7
jne 0x140057ff0
test edx, edx
movzx eax, bl
mov ecx, 1
cmove eax, ecx
jmp 0x14005801a
movzx eax, bl
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140058b20
add rsp, 0x2a0
pop rbx
ret