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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140972d80]
mov dword [rax], 1
mov rax, qword [0x140972d90]
mov dword [rax], 1
mov rax, qword [0x140972da0]
mov dword [rax], 1
mov rax, qword [0x140972d40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400018c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 0x7bfa480
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rcx, rax
test rax, rax
je 0x1400018df
add rsp, 0x28
jmp sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word [rax + rax]

Function at 0x1400018f0
Capabilities:
Get file size
Terminate process

Disassembly:
push rbx
sub rsp, 0x160
xor ecx, ecx
mov r8d, 0x104
lea rbx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001991
mov rcx, rbx
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov r8d, 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001991
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400019a0
pxor xmm0, xmm0
movsd xmm1, qword [0x140972630]
mov rcx, rbx
cvtsi2sd xmm0, qword [rsp + 0x48]
mulsd xmm0, qword [0x140972628]
comisd xmm1, xmm0
ja 0x14000198b
comisd xmm0, xmmword [0x140972638]
jbe 0x1400019b0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x160
pop rbx
ret
Function at 0x140002fe0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rcx
mov r12d, edx
test edx, edx
je 0x140003153
movdqa xmm0, xmmword [0x140972970]
movzx esi, byte [rcx]
mov byte [rsp + 0x40], 0x19
mov rdi, rcx
movzx ebp, byte [0x140978a08]
movaps xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x140972980]
movaps xmmword [rsp + 0x30], xmm0
test bpl, bpl
jne 0x140003172
movdqa xmm1, xmmword [rsp + 0x20]
movdqa xmm2, xmmword [rsp + 0x30]
lea rcx, [0x140001a40]
mov byte [0x140978a41], 1
mov byte [0x140978a40], 0x19
mov r13d, 1
mov byte [0x140978a08], 1
movaps xmmword [0x140978a20], xmm1
movaps xmmword [0x140978a30], xmm2
call fcn.140001583
mov r11, rbx
xor r10d, r10d
lea r8, [0x140978a20]
cmp byte [0x140978a41], 0
je 0x1400030ca
movabs r9, 0x79e9a5d7e9ffe523
xor eax, eax
nop word [rax + rax]
mov rcx, rax
mov rdx, r9
and ecx, 7
shl rcx, 3
shr rdx, cl
mov rcx, rdx
movzx edx, byte [r8 + rax]
ror dl, 3
xor edx, ecx
mov byte [r8 + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140003098
mov byte [0x140978a41], 0
mov eax, r10d
add r10d, 1
and eax, 0x1f
xor sil, byte [r8 + rax]
mov byte [r11], sil
cmp r10d, r12d
je 0x140003153
test bpl, bpl
je 0x140003160
movabs r9, 0x79e9a5d7e9ffe523
movsxd r10, r10d
nop word [rax + rax]
cmp byte [0x140978a41], 0
movzx r11d, byte [rbx + r10]
mov esi, r10d
je 0x14000313f
xor eax, eax
nop dword [rax + rax]
mov rcx, rax
movzx edx, byte [r8 + rax]
mov rdi, r9
and ecx, 7
shl rcx, 3
ror dl, 3
shr rdi, cl
xor edx, edi
mov byte [r8 + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140003110
mov byte [0x140978a41], 0
and esi, 0x1f
xor r11b, byte [r8 + rsi]
mov byte [rbx + r10], r11b
add r10, 1
cmp r10d, r12d
jb 0x1400030f8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
add rdi, 1
mov ebp, r13d
movzx esi, byte [rdi]
mov r11, rdi
jmp 0x14000307d
mov r13d, ebp
jmp 0x140003070

Function at 0x140003f90
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003fc4
cmp word [rcx], 0x5a4d
jne 0x140003fc4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003fc4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003fc4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003ed0
test eax, eax
jne 0x140003fe0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003f40
test rax, rax
je 0x140003fd5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000478f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004690
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004630
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140004ba0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140005f00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140005872
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140978d08]
test eax, eax
je 0x14000590a
lea rax, [0x140978ce0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140978d10]
mov qword [rbp - 8], rax
jmp 0x1400058ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400058e2
cmp qword [rbp - 0x10], 0
je 0x1400058e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400058a8
lea rax, [0x140978ce0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000590b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140005a10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140005a38
mov eax, 0
jmp 0x140005a86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140005a61
mov eax, 0
jmp 0x140005a86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140005a81
mov eax, 0
jmp 0x140005a86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140005a8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140005b0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140005b01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140005b01
mov rax, qword [rbp - 8]
jmp 0x140005b1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140005ad4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14007b62c
Capabilities:
Copy file
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1ff88]
mov eax, 0x20080
call fcn.140048f90
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.14007ca34
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.14007ca34
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x14007b6c1
test dil, dil
je 0x14007b6e3
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.1400295bc
test eax, eax
je 0x14007b7b7
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x14007b7b7
lea rcx, [rbp + 0xff80]
call fcn.14007ced4
test al, al
je 0x14007b6e3
lea rcx, [rbp - 0x80]
call fcn.14007ced4
test al, al
je 0x14007b6fe
test dil, dil
jne 0x14007b736
xor al, al
lea r11, [rsp + 0x20080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000ec00
lea rcx, [rsp + 0x58]
call fcn.14007bab8
test al, al
lea rcx, [rsp + 0x58]
sete bl
call fcn.14000a07c
test bl, bl
jne 0x14007b6e3
lea rcx, [rbp - 0x80]
call fcn.14007ced4
test al, al
je 0x14007b6e3
lea rdx, [0x1400dd4e8]
lea rcx, [rbp + 0xff80]
call fcn.14002dd98
lea rcx, [rbp + 0xff80]
call fcn.140028d58
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.140028d58
xorps xmm0, xmm0
mov dword [rsp + 0x44], esi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
movdqu xmmword [rsp + 0x48], xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x14007b6e3
mov al, 1
jmp 0x14007b6e5
Function at 0x14007bc70
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x30]
mov r14b, dil
call fcn.140009640
lea rcx, [rsp + 0x70]
call fcn.140009640
lea rcx, [rsp + 0x50]
call fcn.140009640
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400056d4
mov rcx, qword [rsp + 0x30]
call fcn.14007ced4
test al, al
je 0x14007bce4
lea rdx, [0x1400dd4e8]
lea rcx, [rsp + 0x30]
call fcn.1400071f8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.1400074ac
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov sil, 1
cmp rax, 0xffffffffffffffff
je 0x14007bd87
cmp sil, 1
jne 0x14007bd87
test byte [rbp - 0x70], 0x10
jne 0x14007bd66
lea rdx, [rsp + 0x70]
mov r14b, sil
lea rcx, [rsp + 0x30]
call fcn.14000e0a8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140007c24
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.1400071f8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x14007bd7c
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14007bd1b
mov sil, dil
jmp 0x14007bd1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14007bd93
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.14000a07c
lea rcx, [rsp + 0x70]
call fcn.14000a07c
lea rcx, [rsp + 0x30]
call fcn.14000a07c
lea r11, [rsp + 0x2e0]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400033b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140611400]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003483
cmp byte [rcx + 0x71], 0
je 0x140003483
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000347f
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 0x140003444
sub eax, 1
je 0x140003448
cmp eax, 2
jne 0x14000347f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140065c90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003476
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 0x14000347f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000342c
xor al, al
jmp 0x14000342c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140065c90
add rsp, 0x60
pop rbx
ret
Function at 0x1400037e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140611400]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14000380d
xor eax, eax
jmp 0x140003976
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14000384d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000384d
mov rcx, rdi
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], sil
mov eax, esi
jmp 0x14000396e
cmp qword [rdi + 0x80], 0
je 0x140003969
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140003887
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400038b2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000396e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x140003921
sub eax, 1
je 0x140003921
cmp eax, 2
jne 0x140003969
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000396e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000394f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140003969
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000396e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140065c90
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004140
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140004162
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140004171
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1400041c2
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140004231
mov rcx, rbp
call int.1400034c0
cmp rbx, 0xfff
jbe 0x140004211
mov r9, qword [rbp + 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 0x14000424a
cmp rbx, rax
ja 0x1400041e0
test rdi, rdi
je 0x140004231
mov r9, qword [rbp + 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 rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140004234
add byte [rdx], cl
add eax, edx
add byte [rcx + rax], dl
mov edx, 0x8a010400
add byte [0x14a11aea9], al
add dword [rcx - 0x4dfe0000], edi
add byte [0x14011d6b5], al
add edx, esp
add byte [rax], al
add dword [rbx], edi
or al, byte [rcx]
cmpsd dword [rsi], dword [rdi]
add byte [0x15411adc5], al
add dword [rdi - 0x34fef600], esi
add byte [rdx], cl
add dword [rbp + 0x33010a00], edi
add byte [0x145117dd9], al
add byte [0x1541190dd], al
add cl, bl
add byte [0xec10b7e4], al
add esp, ecx
add byte [rax + rax], dl
fld dword [rax]
adc al, 2
xchg edx, eax
add byte [rcx + rax], dl
mov cl, 0
adc al, 1
ret
Function at 0x140004250
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140004271
add rsp, 0x20
pop r14
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 qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400042ec
test rax, rax
jle 0x1400042cc
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400042ec
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400042ec
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 + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
add byte [0x1541190dd], al
add cl, bl
Function at 0x140004d30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
cmp byte [r8 + 7], dil
je 0x140004d64
mov eax, edi
nop dword [rax]
lea ecx, [rax - 0xe]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x140004d50
mov byte [r8 + 7], dil
lea rax, [r8 + 6]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp r8, rax
jne 0x140004d94
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x20], dil
jmp 0x140004dae
mov qword [rsp + 0x30], 6
mov eax, dword [r8]
mov dword [rsp + 0x20], eax
movzx eax, word [r8 + 4]
mov word [rsp + 0x24], ax
mov r9, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140004dbc
mov rdx, qword [rdx]
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400114f0
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140004e36
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004e31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004e31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140065b7c
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret