joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14023690c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140236922
mov al, 1
jmp 0x140236982
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140236933
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140236980
mov ecx, dword [rcx + 0x18]
nop
call fcn.1402334b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140236980
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140236980
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140236980
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140236982
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140238e70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140238e98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140238e98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001c40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x68], 0
jne 0x140001c67
xor eax, eax
jmp 0x140001dd9
mov eax, dword [rsp + 0x58]
and rax, 0xffff
movzx eax, ax
sar eax, 4
inc eax
cdqe
and rax, 0xffff
movzx eax, ax
movzx r9d, word [rsp + 0x60]
mov r8d, eax
mov edx, 6
mov rcx, qword [rsp + 0x50]
call sub.kernel32.dll_FindResourceExW
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001cb0
xor eax, eax
jmp 0x140001dd9
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call sub.kernel32.dll_LoadResource
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140001cd3
xor eax, eax
jmp 0x140001dd9
mov rcx, qword [rsp + 0x38]
call sub.kernel32.dll_LockResource
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
and eax, 0xf
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x20], 0
jmp 0x140001d01
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x20], eax
jae 0x140001d27
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
inc eax
cdqe
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x28], rax
jmp 0x140001cf7
cmp dword [rsp + 0x70], 0
jne 0x140001d4c
mov rax, qword [rsp + 0x28]
add rax, 2
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
jmp 0x140001dd9
mov eax, dword [rsp + 0x70]
dec eax
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx]
cmp eax, ecx
jge 0x140001d6a
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x24], eax
jmp 0x140001d76
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x140001db6
mov eax, dword [rsp + 0x20]
shl rax, 1
mov rcx, qword [rsp + 0x28]
add rcx, 2
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x20]
xor ecx, ecx
mov rdx, qword [rsp + 0x68]
mov word [rdx + rax*2], cx
jmp 0x140001dd5
cmp dword [rsp + 0x70], 1
jle 0x140001dd5
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x68]
mov word [rdx + rax], cx
xor eax, eax
jmp 0x140001dd9
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
mov dword [0x140005074], 1
mov dword [0x140005078], 1
mov dword [0x14000507c], 1
mov dword [0x140005088], 1
lea rax, [0x140000000]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000229e
xor eax, eax
jmp 0x14000237f
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x18]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x1400022cb
xor eax, eax
jmp 0x14000237f
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
mov dword [rsp], eax
cmp dword [rsp], 0x10b
je 0x1400022fb
cmp dword [rsp], 0x20b
je 0x140002337
jmp 0x14000237d
mov rax, qword [rsp + 0x10]
cmp dword [rax + 0x5c], 0xe
ja 0x14000230a
xor eax, eax
jmp 0x14000237f
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x10]
cmp dword [rcx + rax + 0x60], 0
je 0x140002329
mov dword [rsp + 4], 1
jmp 0x140002331
mov dword [rsp + 4], 0
mov eax, dword [rsp + 4]
jmp 0x14000237f
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x6c], 0xe
ja 0x140002350
xor eax, eax
jmp 0x14000237f
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x70], 0
je 0x14000236f
mov dword [rsp + 8], 1
jmp 0x140002377
mov dword [rsp + 8], 0
mov eax, dword [rsp + 8]
jmp 0x14000237f
xor eax, eax
add rsp, 0x38
ret

Function at 0x140002fa0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov eax, dword [0x1400050b8]
test eax, eax
jne 0x140002fb0
jmp 0x14000301e
lea rcx, [0x140005090]
call sub.kernel32.dll_EnterCriticalSection
mov rax, qword [0x1400050c0]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140003012
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax]
call sub.kernel32.dll_TlsGetValue
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x140003002
cmp qword [rsp + 0x28], 0
je 0x140003002
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
call rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
jmp 0x140002fc8
lea rcx, [0x140005090]
call sub.kernel32.dll_LeaveCriticalSection
add rsp, 0x38
ret
Function at 0x140003830
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1400a3800]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmm0, xmmword [0x140016728]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [0x140016738]
movups xmmword [rbp - 1], xmm1
mov ecx, r12d
mov eax, edx
sub eax, r14d
add dword [rbp - 0x21], eax
mov edx, r12d
nop dword [rax]
nop word [rax + rax]
add ecx, dword [rbp + rdx*4 - 0x21]
mov dword [rbp + rdx*4 - 0x21], ecx
cmp ecx, 0x10000
jb 0x1400038d2
shr ecx, 0x10
mov word [rbp + rdx*4 - 0x1f], r12w
inc rdx
cmp rdx, 4
jb 0x1400038b0
mov rsi, qword [rbp - 0x31]
cmp r14, rbx
je 0x140003918
nop dword [rax + rax]
movzx eax, byte [r14]
mov byte [rbp - 0x49], al
cmp rsi, qword [rbp - 0x29]
je 0x1400038fc
mov byte [rsi], al
mov rsi, qword [rbp - 0x31]
inc rsi
mov qword [rbp - 0x31], rsi
jmp 0x140003910
lea r8, [rbp - 0x49]
mov rdx, rsi
lea rcx, [rbp - 0x39]
call fcn.140001aa0
mov rsi, qword [rbp - 0x31]
inc r14
cmp r14, rbx
jne 0x1400038e0
mov r14, r12
mov rax, rsi
mov rbx, qword [rbp - 0x39]
sub rax, rbx
cmp rax, 0x40
jb 0x14000395c
nop dword [rax + rax]
lea rdx, [rbx + r14]
lea r8, [rdx + 0x40]
lea rcx, [rbp - 0x11]
call fcn.140002d30
add r14, 0x40
mov rsi, qword [rbp - 0x31]
mov rcx, rsi
mov rbx, qword [rbp - 0x39]
sub rcx, rbx
lea rax, [r14 + 0x40]
cmp rax, rcx
jbe 0x140003930
lea rdx, [rbx + r14]
cmp rbx, rdx
je 0x14000397b
sub rsi, rdx
mov r8, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rbx]
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x39]
call fcn.140006ab0
lea r8, [rbp - 0x11]
mov rax, r12
nop dword [rax + rax]
cmp rdi, r15
je 0x1400039b2
mov ecx, 3
sub cl, al
shl cl, 3
mov edx, dword [r8]
shr edx, cl
mov byte [rdi], dl
inc rdi
inc rax
cmp rax, 4
jb 0x140003990
add r8, 4
lea rax, [rbp + 0xf]
cmp r8, rax
jne 0x140003988
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400039fc
mov rdx, qword [rbp - 0x29]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400039f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400039f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013074
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400131f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140005610
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140005677
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x140005632
mov ecx, dword [r10]
jmp 0x140005798
cmp ecx, 0x270
jb 0x140005798
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x1400056b0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140005710
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x140005b70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a3800]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005c43
cmp byte [rcx + 0x71], 0
je 0x140005c43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005c3f
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 0x140005c04
sub eax, 1
je 0x140005c08
cmp eax, 2
jne 0x140005c3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400131f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005c36
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 0x140005c3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005bec
xor al, al
jmp 0x140005bec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400131f0
add rsp, 0x60
pop rbx
ret
Function at 0x1400064c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x4e70
call fcn.140013190
sub rsp, rax
mov rax, qword [0x1400a3800]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
mov rdi, rcx
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov r8d, eax
movabs rbp, 0x5555555555555555
mov ebx, 1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x13a8], rbp
mov edx, ebx
movabs rsi, 0x5851f42d4c957f2d
mov rax, r8
shr rax, 0x3e
xor r8, rax
imul r8, rsi
add r8, rdx
mov qword [rsp + rdx*8 + 0x28], r8
inc rdx
cmp rdx, 0x138
jb 0x140006522
mov dword [rsp + 0x20], 0x138
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov rcx, rbx
mov qword [rsp + 0x13b8], rdx
mov qword [rsp + 0x2738], rbp
nop word [rax + rax]
mov rax, rdx
shr rax, 0x3e
xor rdx, rax
imul rdx, rsi
add rdx, rcx
mov qword [rsp + rcx*8 + 0x13b8], rdx
inc rcx
cmp rcx, 0x138
jb 0x140006570
mov dword [rsp + 0x13b0], 0x138
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov edx, eax
mov rcx, rbx
mov qword [rsp + 0x2748], rdx
mov qword [rsp + 0x3ac8], rbp
nop word [rax + rax]
mov rax, rdx
shr rax, 0x3e
xor rdx, rax
imul rdx, rsi
add rdx, rcx
mov qword [rsp + rcx*8 + 0x2748], rdx
inc rcx
cmp rcx, 0x138
jb 0x1400065c0
mov dword [rsp + 0x2740], 0x138
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov ecx, eax
mov qword [rsp + 0x3ad8], rcx
mov qword [rsp + 0x4e58], rbp
nop word [rax + rax]
mov rax, rcx
shr rax, 0x3e
xor rcx, rax
imul rcx, rsi
add rcx, rbx
mov qword [rsp + rbx*8 + 0x3ad8], rcx
inc rbx
cmp rbx, 0x138
jb 0x140006610
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x3ad0], 0x138
call fcn.140005610
lea rcx, [rsp + 0x13b0]
mov qword [rdi], rax
call fcn.140005610
lea rcx, [rsp + 0x2740]
mov qword [rdi + 8], rax
call fcn.140005610
lea rcx, [rsp + 0x3ad0]
mov qword [rdi + 0x10], rax
call fcn.140005610
mov qword [rdi + 0x18], rax
mov rax, rdi
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.1400131f0
lea r11, [rsp + 0x4e70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a3800]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140007d9d
xor eax, eax
jmp 0x140007f06
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 0x140007ddd
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 0x140007ddd
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 0x140007efe
cmp qword [rdi + 0x80], 0
je 0x140007ef9
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 0x140007e17
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 0x140007e42
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 0x140007efe
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140007eb1
sub eax, 1
je 0x140007eb1
cmp eax, 2
jne 0x140007ef9
movsx ecx, byte [rsp + 0x40]
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 0x140007efe
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140007edf
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 0x140007ef9
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x140007efe
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400131f0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000ac90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x14000acc1
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.0x14000acd8
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 qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], 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 0x14000ad29
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 0x14000ada1
mov rcx, rbp
call int.140005c80
cmp rbx, 0xfff
jbe 0x14000ad81
nop word [rax + rax]
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 0x14000adc2
cmp rbx, rax
ja 0x14000ad50
test rdi, rdi
je 0x14000ada1
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 + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x14000ada4
ficomp dword [eip - 0x1d859742]
push 0xffffffff9ea8e27a
sahf
Function at 0x14000add0
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.0x14000adf1
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 0x14000ae6c
test rax, rax
jle 0x14000ae4c
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 0x14000ae6c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000ae6c
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
mov eax, 0x6b6cb4b1
invalid
Function at 0x140013cf4
Capabilities:
Parse pe header

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