joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800183e0
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1800183e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, ecx
test ecx, ecx
je 0x180018407
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
jmp 0x18001840a
mov rsi, rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
call fcn.18001cf04
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x40
movsxd rdx, eax
lea rdx, [rdx*2 + 0x21a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea rdx, [0x180092db0]
mov rcx, rdx
mov rdi, rax
mov r8, rax
or rcx, rax
and ecx, 0xf
jne 0x1800184c7
lea eax, [rcx + 4]
movaps xmm0, xmmword [rdx]
lea r8, [r8 + 0x80]
lea rdx, [rdx + 0x80]
movaps xmmword [r8 - 0x80], xmm0
movaps xmm1, xmmword [rdx - 0x70]
movaps xmmword [r8 - 0x70], xmm1
movaps xmm0, xmmword [rdx - 0x60]
movaps xmmword [r8 - 0x60], xmm0
movaps xmm1, xmmword [rdx - 0x50]
movaps xmmword [r8 - 0x50], xmm1
movaps xmm0, xmmword [rdx - 0x40]
movaps xmmword [r8 - 0x40], xmm0
movaps xmm1, xmmword [rdx - 0x30]
movaps xmmword [r8 - 0x30], xmm1
movaps xmm0, xmmword [rdx - 0x20]
movaps xmmword [r8 - 0x20], xmm0
movaps xmm1, xmmword [rdx - 0x10]
movaps xmmword [r8 - 0x10], xmm1
dec rax
jne 0x180018453
movaps xmm0, xmmword [rdx]
movaps xmmword [r8], xmm0
mov rax, qword [rdx + 0x10]
mov qword [r8 + 0x10], rax
movzx eax, word [rdx + 0x18]
mov word [r8 + 0x18], ax
jmp 0x1800184d5
mov r8d, 0x21a
mov rcx, rax
call fcn.180019e60
test ebp, ebp
jne 0x1800184e5
mov rbx, qword [rsp + 0x38]
sub rbx, qword [0x180092db8]
lea rcx, [rdi + 0x218]
mov rdx, rsi
mov qword [rdi + 8], rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1800188b0
Capabilities:
Get common file path

Disassembly:
jmp 0x1800188b0
push rbx
sub rsp, 0x250
mov rax, qword [0x180093040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x32]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.180019d40
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 0xf]
lea rdx, [0x180095370]
lea rcx, [0x180092dc0]
mov dword [rsp + 0x20], ebx
call fcn.180001230
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180019370
add rsp, 0x250
pop rbx
ret

Function at 0x1800190a0
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1800190a0
sub rsp, 0x28
lea rcx, [0x180095328]
call fcn.1800010be
lea rcx, [0x1800950e8]
call fcn.1800010be
lea rcx, [0x180095330]
add rsp, 0x28
jmp fcn.1800010be
Function at 0x1800033a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180003407
lea rax, [0x180053c20]
mov rdi, qword [rsp + 0x30]
mov rsi, rax
mov ecx, 0x400
rep movsb byte [rdi], byte [rsi]
call fcn.180002e80
jmp 0x180003413
lea rcx, str.Error._r_n
call fcn.1800014a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x2000
mov r8d, 0x1000
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140003230
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [0x14077f1e0]
xor esi, esi
mov rdi, r8
mov r12, rdx
mov ebp, ecx
test rax, rax
jne 0x140003279
lea rcx, str.Setupapi.dll
xor edx, edx
call fcn.140002970
mov qword [0x14077f1e0], rax
test rax, rax
je 0x140003356
cmp qword [0x14077f1e8], rsi
jne 0x1400032a9
lea rdx, [0x1402fe208]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077f1e8], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077f1e0]
cmp qword [0x14077f1f0], rsi
jne 0x1400032d9
lea rdx, [0x1402fe1f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077f1f0], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077f1e0]
cmp qword [0x14077f200], rsi
jne 0x140003305
lea rdx, [0x1402fe1c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077f200], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077f1e0]
cmp qword [0x14077f1f8], rsi
jne 0x140003331
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077f1f8], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077f1e0]
cmp qword [0x14077f210], rsi
jne 0x14000335d
lea rdx, [0x1402fe180]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077f210], rax
test rax, rax
jne 0x14000335d
xor eax, eax
jmp 0x1400033fd
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [0x14077f1e8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400033f6
xor eax, eax
mov r8, rdi
xor edx, edx
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, rbx
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_32
call qword [0x14077f1f0]
test eax, eax
je 0x1400033ed
nop word [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, ebp
call fcn.140002150
cmp eax, 1
je 0x140003413
xor eax, eax
inc esi
mov r8, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov edx, esi
mov rcx, rbx
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_32
call qword [0x14077f1f0]
test eax, eax
jne 0x1400033b0
mov rcx, rbx
call qword [0x14077f210]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov qword [r12], rbx
mov eax, 1
jmp 0x1400033f8
Function at 0x1400056b0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
mov rax, qword [0x14072a340]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rdx, qword [rcx + 0x10]
xor eax, eax
mov qword [r11 - 0x24], rax
xorps xmm0, xmm0
mov dword [r11 - 0x1c], eax
xor ebx, ebx
lea rax, [0x140542b38]
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
mov dword [rsp + reloc.WS2_32.dll_WSASetLastError], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [r11 - 0x78], rax
lea rax, str.cmd.exe
mov qword [r11 - 0x70], rax
movabs rax, 0x7fffffffffffffff
sub rax, rdx
mov qword [r11 - 0x80], rbx
cmp rax, 3
jb 0x1400057f8
cmp qword [rcx + 0x18], 0xf
mov rax, rcx
jbe 0x14000573d
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdx
lea r9, [0x140542b48]
movzx edx, byte [rsp + 0x40]
mov r8, rcx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], 3
call fcn.140006740
cmp qword [rsp + 0x60], 0xf
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x48]
cmova rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
call fcn.1400062c0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa0], ebx
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400057d1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.ShellExecuteEx_failed
call fcn.1400063d0
lea rdx, [0x1400065a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x1400057df
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1402cf370
add rsp, 0xf0
pop rbx
ret
call fcn.140005690
int3
Function at 0x14000a600
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push rdi
push r13
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x14072a340]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 1
mov r14d, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov r15d, eax
call qword [sym.imp.USER32.dll_GetDC]
mov rdi, rax
test rax, rax
je 0x14000a830
mov rcx, rax
mov qword [rsp + 0xc8], rbp
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbp, rax
test rax, rax
jne 0x14000a677
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x14000a828
mov r8d, r15d
mov qword [rsp + 0x90], r12
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r12, rax
mov rcx, rbp
test rax, rax
jne 0x14000a6af
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x14000a820
mov qword [rsp + 0xc0], rbx
mov rdx, r12
mov qword [rsp + 0xd0], rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov dword [rsp + 0x40], 0xcc0020
xor esi, esi
mov dword [rsp + 0x38], esi
mov r9d, r14d
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x28], rdi
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], r15d
mov rbx, rax
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, r15d
mov dword [rsp + 0x84], esi
neg eax
mov dword [rsp + 0x60], Ordinal_46
mov dword [rsp + 0x68], eax
xorps xmm0, xmm0
mov eax, r15d
mov dword [rsp + 0x64], r14d
imul eax, r14d
movdqu xmmword [rsp + 0x74], xmm0
mov qword [rsp + 0x6c], 0x180001
lea eax, [rax + rax*2]
movsxd rcx, eax
call fcn.1402cf838
mov r13, rax
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x60]
mov r9d, r15d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], r13
mov rcx, rbp
call qword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x14000a7eb
lea rax, [rsp + 0x50]
mov r9d, r15d
lea edx, [r14 + r14*2]
mov qword [rsp + 0x28], rax
mov r8d, r14d
mov rcx, r13
call fcn.140009cf0
mov rbx, rax
test rax, rax
je 0x14000a7eb
lea r8, [0x1405435fc]
lea rdx, str.danger.png
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x14000a7b9
mov qword [rsp + 0x58], rsi
jmp 0x14000a7be
mov rsi, qword [rsp + 0x58]
mov rcx, rbx
test rsi, rsi
je 0x14000a7e5
movsxd r8, dword [rsp + 0x50]
mov r9, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r13
call fcn.1402cf3d4
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbp
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rsi, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc0]
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1402cf370
add rsp, 0x98
pop r15
pop r14
pop r13
pop rdi
ret
Function at 0x14000bb00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14072a340]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov byte [0x140780257], 1
cmp qword [0x140780538], 0
je 0x14000bbc2
test cl, cl
jne 0x14000bbc2
mov ecx, 1
call fcn.1402cf390
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140026540]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000bbae
cmp dword [rsp + 0x38], 0
je 0x14000bba2
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14000bba2
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402cf370
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [0x140780530]
call fcn.1400f00f0
int3
Function at 0x14001fba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x14001fd31
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x14001fd31
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14001fc3b
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x14001fd58
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14001fc52
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x14001fc52
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14001fc65
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x14001fcb2
mov r9d, eax
cmp eax, 0x800
jae 0x14001fc7f
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x14001fcb2
cmp eax, 0x10000
jae 0x14001fc99
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x14001fcb2
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x14001fd31
add qword [r14], 2
test sil, sil
jne 0x14001fcd3
cmp r10d, 3
jae 0x14001fcdf
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x14001fd0e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x14001fcf0
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x14001fbef
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14001fd3f
Function at 0x140020b20
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 0x140020b48
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 0x140020b6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140020b70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140020bc9
test ecx, ecx
jle 0x140020ba9
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 0x140020bc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140020bc9
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

Function at 0x140020bf0
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 0x140020c12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140020c28
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 0x140020c44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140020c46
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140020c82
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 0x140020d1e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140020cbd
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 0x140020cfe
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 0x140020d1e
cmp rbx, rax
ja 0x140020cd0
test rbx, rbx
je 0x140020d1e
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
Function at 0x140021150
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14072a340]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14002117d
xor eax, eax
jmp 0x1400212e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400211b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400211b7
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 0x1400212e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400212dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400211fa
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 0x140021225
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 0x1400212e1
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 0x140021294
sub eax, 1
je 0x140021294
cmp eax, 2
jne 0x1400212dc
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 0x1400212e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400212c2
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 0x1400212dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400212e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402cf370
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140022fb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14072a340]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140023083
cmp byte [rcx + 0x71], 0
je 0x140023083
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + SafeArrayPutElement]
cmp eax, 0xffffffff
je 0x14002307f
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 0x140023044
sub eax, 1
je 0x140023048
cmp eax, 2
jne 0x14002307f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402cf370
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140023076
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 0x14002307f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002302c
xor al, al
jmp 0x14002302c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402cf370
add rsp, 0x60
pop rbx
ret
Function at 0x140026c20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14072a340]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x34], al
call fcn.140026ba0
test rax, rax
je 0x140026c8e
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbx
mov rcx, rdi
call rax
test eax, eax
setne r9b
mov byte [rsp + 0x34], r9b
jmp 0x140026c94
movzx r9d, byte [rsp + 0x34]
movzx eax, byte [rsi + 0x11]
mov byte [rdi], al
mov ecx, 1
lea rdx, [rbx - 1]
cmp rbx, rcx
jbe 0x140026d50
cmp rdx, 0x40
jb 0x140026d38
lea r8, [rsi + 0x20]
movsx eax, byte [r8]
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
lea r10, [rdx + rdi]
lea rax, [rdi + 1]
cmp rax, r8
ja 0x140026ce1
cmp r10, r8
jae 0x140026d38
and edx, 0x3f
mov r8, rbx
sub r8, rdx
lea rax, [rdi + 0x21]
nop
movdqu xmm0, xmmword [rax - 0x20]
xorps xmm0, xmm2
movdqu xmmword [rax - 0x20], xmm0
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
xorps xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
xorps xmm0, xmm2
movdqu xmmword [rax], xmm0
movdqu xmm0, xmmword [rax + 0x10]
xorps xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
add rcx, 0x40
lea rax, [rax + 0x40]
cmp rcx, r8
jb 0x140026cf0
cmp rcx, rbx
jae 0x140026d50
lea rax, [rdi + rcx]
sub rbx, rcx
nop
movzx ecx, byte [rsi + 0x20]
xor byte [rax], cl
lea rax, [rax + 1]
sub rbx, 1
jne 0x140026d40
test r9b, r9b
je 0x140026d76
call fcn.140026ba0
test rax, rax
je 0x140026d76
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call rax
nop
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402cf370
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret