joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140006c60
cmp r11, r10
ja 0x140006cd7
cmp r10, rdx
ja 0x140006ce9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140006c62
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140006c40
jmp 0x140006cc4
ja 0x140006c6a
mov r11, r10
cmp rax, r8
jne 0x140006c0e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140006ca0
mov rdi, r8
sub ecx, edx
jns 0x140006cbb
jmp 0x140006cc6
cmp r8, rsi
je 0x140006cf8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140006cc6
xor al, 1
cmp rdi, rsi
jne 0x140006c80
jmp 0x140006cc6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002b5f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002b250
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002b660
int3
Function at 0x140010f70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140010f95
cmp rax, rcx
je 0x140010f9b
cmp rdx, 4
jae 0x140010fa2
xor eax, eax
xor r8d, r8d
jmp 0x140011040
pop rbp
jmp fcn.1400044d0
xor eax, eax
jmp 0x140011057
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14002d6a0]
movdqa xmm3, xmmword [0x14002d6b0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140010fd0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140011057
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140011040
pop rbp
ret
Function at 0x140017be0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
movzx eax, byte [rdx + 0x3a]
test al, al
setne r8b
cmp r9b, 1
ja 0x140017c66
test al, al
jne 0x140017c3f
movzx esi, byte [rdx + 0x10]
lea eax, [rsi - 5]
cmp al, 1
ja 0x140017c3f
invalid
mov r10, qword [rdx]
xor r8d, r8d
xor eax, eax

Function at 0x14001d0e4
Capabilities:
Parse pe header

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

Function at 0x1400207a8
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 0x140020817
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020817
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020817
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020817
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020817
cmp dword [rcx + 0x84], 0xe
jbe 0x140020817
cmp dword [rcx + 0xf8], 0
je 0x140020817
mov ecx, ebx
call fcn.1400208c8
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.1400206a4
nop
cmp dword [rbp + 0x20], 0
je 0x140020865
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020870
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400207a8

Function at 0x1400209ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400207a8
Function at 0x140023a6c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140023a9c
xor eax, eax
jmp 0x140023b5f
mov rbp, rbx
cmp word [rax], si
je 0x140023ac1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140023aa8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140023aa4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002398c
movsxd r14, eax
test eax, eax
jne 0x140023aff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140023a95
mov rcx, r14
call fcn.140024948
mov rdi, rax
test rax, rax
jne 0x140023b18
xor ecx, ecx
call fcn.140021fec
jmp 0x140023af4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002398c
test eax, eax
jne 0x140023b49
mov rcx, rdi
call fcn.140021fec
jmp 0x140023b53
xor ecx, ecx
call fcn.140021fec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140027050
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140022a5c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400270da
cmp byte [rbp - 0x21], r15b
je 0x1400270d5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027110
call fcn.140025158
test eax, eax
jne 0x1400270fc
cmp byte [rbp - 0x21], r15b
je 0x1400270f4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027110
cmp byte [rbp - 0x21], r15b
je 0x14002710d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002203c
test eax, eax
jne 0x1400271b0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140022a5c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002714f
cmp byte [rbp - 0x21], r15b
je 0x140027184
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027184
call fcn.140025158
test eax, eax
jne 0x140027170
cmp byte [rbp - 0x21], r15b
je 0x140027169
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027184
cmp byte [rbp - 0x21], r15b
je 0x140027181
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002203c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400271b0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400271b3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400271c1
mov rcx, rdi
call fcn.140021fec
cmp byte [rbp + 0x3f], r15b
je 0x1400271d0
mov rcx, qword [rbp + 0x27]
call fcn.140021fec
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002a0b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a0d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a0d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001360
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str._t_t_t__n
call fcn.140001010
lea rcx, str._t_t_t__HellShell___Designed_By_MalDevAcademy__NUL0x4C___mrd0x__n
call fcn.140001010
lea rcx, str._t_t_t__n_n
call fcn.140001010
mov rdx, rbx
lea rcx, str.____Usage:__s__Input_Payload_FileName___Enc_Obf_Option___n
call fcn.140001010
lea rcx, str._i__Options_Can_Be_:__n
call fcn.140001010
lea rcx, str._t1._____mac______:::_Output_The_Shellcode_As_A_Array_Of_Mac_Addresses___FC_48_83_E4_F0_E8__n
call fcn.140001010
lea rcx, str._t2._____ipv4_____:::_Output_The_Shellcode_As_A_Array_Of_Ipv4_Addresses__252.72.131.228__n
call fcn.140001010
lea rcx, str._t3._____ipv6_____:::_Output_The_Shellcode_As_A_Array_Of_Ipv6_Addresses__FC48:83E4:F0E8:C000:0000:4151:4150:5251__n
call fcn.140001010
lea rcx, str._t4._____uuid_____:::_Output_The_Shellcode_As_A_Array_Of_UUid_Strings____FC4883E4_F0E8_C000_0000_415141505251__n
call fcn.140001010
lea rcx, str._t5._____aes______:::_Output_The_Shellcode_As_A_Array_Of_Aes_Encrypted_Shellcode_With_Random_Key_And_Iv_n
call fcn.140001010
lea rcx, str._t6._____rc4______:::_Output_The_Shellcode_As_A_Array_Of_Rc4_Encrypted_Shellcode_With_Random_Key_n
call fcn.140001010
lea rcx, str._n_n_i_
call fcn.140001010
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x140001000
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret

Function at 0x140056860
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rbx, rdx
mov r8, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x18]
mov rax, rcx
sub rax, r8
xor r15d, r15d
cmp rax, 3
jb 0x14005691b
lea rax, [r8 + 3]
mov qword [rdx + 0x10], rax
mov rdi, rdx
cmp rcx, 0xf
jbe 0x1400568af
mov rdi, qword [rdx]
lea rax, [0x14025a507]
mov r14d, 3
lea rsi, [0x14025a504]
cmp rax, rdi
jbe 0x1400568e3
lea rax, [rdi + r8]
cmp rsi, rax
ja 0x1400568e3
cmp rdi, rsi
ja 0x1400568db
mov rbp, r15
jmp 0x1400568e6
mov rbp, rdi
sub rbp, rsi
jmp 0x1400568e6
mov rbp, r14
inc r8
lea rcx, [rdi + 3]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
sub r14, rbp
lea rdx, [rsi + 3]
add rdx, rbp
lea rcx, [rdi + rbp]
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140056949
mov r14d, 3
mov qword [rsp + 0x28], r14
lea rsi, [0x14025a504]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
movzx r8d, byte [rsp + 0xd8]
mov edx, r14d
mov rcx, rbx
call fcn.14004aa50
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea rax, str.cmd.exe
mov qword [rsp + 0x48], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400569a8
mov rax, qword [rbx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400569de
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call fcn.1400499e0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140065950
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.0x140065971
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 0x14006599e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400659a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400659f9
test ecx, ecx
jle 0x1400659d9
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 0x1400659f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400659f9
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 dword [0x1757b3221], esi
xor edx, dword [0x1557d5225]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5225]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5235]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5245]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5255]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5265]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5285]
xor dword [0x1757b328d], esi
xor edx, dword [0x1557d5291]
xor dword [0x1757b3299], esi
xor edx, dword [0xc0ca9dec]
add byte [rax - 0x7f7f0380], 2
add byte [rax + 0x28080fc], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rdx], 0x80
cmp ah, 0x80
add byte [rax - 0x7f7f7f80], 0x80
add al, 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rax - 0x7f7f7f80], 0x80
add byte [rdi], al
add dword [rax + 0x20000], eax
add al, 0
add byte [rbx], al
add byte [rdi], al
add byte [rbx], cl
add byte [rdi], cl
add byte [rbx], dl
add byte [rdi], dl
add byte [rbx], bl
add byte [rax], al
add dword [0x175513363], esi
xor edx, dword [0x1557d533d]
invalid
Function at 0x140065a20
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 0x140065a51
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140065a68
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140065a8b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140065a8d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140065ac9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140065b5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140065b04
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 0x140065b3e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140065b5e
cmp rbx, rax
ja 0x140065b10
test rbx, rbx
je 0x140065b5e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
add byte [rdi], dh
add byte [rbx], bh
add byte [rdi], bh
add byte [rbx], al
add byte [r11], r9b
add byte [r11], r10b
push rdi
add byte [rbx], bl
pop rdi
add byte [rbx], ah
add byte [ebx], ch
outsd dx, dword [rsi]
add byte [rbx], dh
ja 0x1404a1ccb
jnp 0x1404a1ccd
jg 0x1404a1ccf
add dword [rax], 0xffffff87
add byte [rbx + 0x8f00], cl
adc dword [0x1757b3211], esi
xor edx, dword [0x1557d5215]
xor dword [0x1757b321d], esi
xor dword [0x1757b3221], esi
xor edx, dword [0x1557d5225]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5225]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5235]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5245]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5255]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5265]
add eax, 0x21153335
xor eax, 0x35051533
xor edx, dword [0x1557d5285]
xor dword [0x1757b328d], esi
xor edx, dword [0x1557d5291]
xor dword [0x1757b3299], esi
xor edx, dword [0xc0ca9dec]
add byte [rax - 0x7f7f0380], 2
add byte [rax + 0x28080fc], 0x80
Function at 0x140065fb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140065fd4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140066017
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140066017
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x140066148
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006605a
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 0x140066085
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006614d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400660fa
sub eax, 1
je 0x1400660fa
cmp eax, 2
jne 0x140066148
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14006614d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14006612b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140066148
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14006614d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140068770
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140068839
cmp byte [rcx + 0x71], 0
je 0x140068839
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14006882c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x1400687e8
sub eax, 1
je 0x1400687ec
cmp eax, 2
jne 0x14006882c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14006881a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14006882c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret