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

Disassembly:
mov r11, rsp
push rbp
push r12
push r14
sub rsp, 0xb0
xor eax, eax
movsxd r12, r9d
mov dword [rsp + 0xe8], eax
mov r14, rdx
mov qword [rsp + 0x60], r12
mov rbp, rcx
test r9d, r9d
jle 0x1400244e8
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r13
xor r13d, r13d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movss xmm8, dword [0x140063e00]
nop word [rax + rax]
movss xmm1, dword [rbx - 0x20]
mov rcx, r14
comiss xmm1, xmm7
jbe 0x140024374
call fcn.140024b30
jmp 0x14002437d
xorps xmm1, xmm8
call fcn.140024b00
movzx eax, byte [rbp + 0x20]
xor edi, edi
movaps xmm6, xmm0
mov byte [rbx], al
movzx eax, byte [rbp + 0x24]
mov byte [rbx + 1], al
cmp dword [rbx - 0x10], edi
jle 0x140024490
mov r15, qword [rsp + 0xf0]
mov rax, r13
mov r12d, dword [rsp + 0xe8]
add r15, 6
shl rax, 4
xor esi, esi
add r15, rax
nop dword [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x1400243d0
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x1400243d3
mov edx, dword [rax + rsi]
mov rcx, r14
call fcn.140023790
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.140023b50
movzx eax, word [rbp + 0x20]
inc r12d
sub ax, word [rsp + 0x50]
inc r13
dec ax
inc edi
add ax, word [rbp + 0x1c]
add rsi, 4
add ax, word [rsp + 0x54]
mov word [r15 - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x58]
dec ax
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x5c]
mov word [r15], ax
add r15, 0x10
cmp edi, dword [rbx - 0x10]
jl 0x1400243c0
mov dword [rsp + 0xe8], r12d
mov r12, qword [rsp + 0x60]
add rbx, 0x28
sub r12, 1
mov qword [rsp + 0x60], r12
jne 0x140024360
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, dword [rsp + 0xe8]
add rsp, 0xb0
pop r14
pop r12
pop rbp
ret
Function at 0x140025810
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400b94c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14000ab00
mov rcx, qword [0x1400bf6b0]
lea rdx, [rsp + 0x28]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x2c]
movd xmm2, ecx
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x28]
cvtdq2ps xmm2, xmm2
movd xmm1, ecx
lea rcx, [rsp + 0x20]
cvtdq2ps xmm1, xmm1
call fcn.1400036f0
lea rcx, [rsp + 0x38]
movsd xmm0, qword [rax]
movsd qword [rbx + 8], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
xorps xmm1, xmm1
sub rax, qword [0x1400bf6b8]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1400bf6c0]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x10], xmm1
mov rax, qword [rsp + 0x38]
mov qword [0x1400bf6b8], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rbx + 0x128], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rbx + 0x129], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x12b], 0
mov byte [rbx + 0x12a], al
call fcn.140025ab0
cmp byte [rbx + 0xc8], 0
je 0x14002590e
mov eax, 0xffffffff
jmp 0x140025913
call fcn.14000ab40
cmp dword [0x14007d474], eax
je 0x140025926
mov dword [0x14007d474], eax
call fcn.140025950
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400600a0
add rsp, 0x50
pop rbx
ret

Function at 0x140027550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r10d, byte [rcx]
xor r9d, r9d
cmp r10b, 0x2d
jne 0x140027568
movzx r10d, byte [rcx + 1]
mov r9d, 1
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r10b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x1400275b6
movss xmm2, dword [0x140063d68]
nop
cmp al, 0x39
ja 0x1400275b6
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140027590
mov rax, rcx
test r9d, r9d
je 0x1400275c5
xorps xmm1, xmmword [0x140063e00]
movss dword [rdx], xmm1
ret

Function at 0x1400275d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r10d, byte [rcx]
xor r9d, r9d
cmp r10b, 0x2d
jne 0x1400275e8
movzx r10d, byte [rcx + 1]
mov r9d, 1
lea rax, [rcx + 1]
xorps xmm1, xmm1
cmovne rax, rcx
cmp r10b, 0x2b
lea rcx, [rax + 1]
cmovne rcx, rax
movzx eax, byte [rcx]
cmp al, 0x30
jl 0x140027634
movsd xmm2, qword [0x14006a340]
nop
cmp al, 0x39
ja 0x140027634
movsx eax, byte [rcx]
inc rcx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rcx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140027610
mov rax, rcx
test r9d, r9d
je 0x140027643
xorps xmm1, xmmword [0x14006a3c0]
movsd qword [rdx], xmm1
ret
Function at 0x14003de10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400b94c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov edx, 8
lea rcx, [rsp + 0x30]
call fcn.140014320
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400423a0
nop
lea rbx, [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.14003d210
mov r9, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x14003d500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x14003deb0
lea rcx, [rsp + 0x30]
call fcn.140058f70
nop
lea rcx, [rsp + 0x30]
call fcn.1400467a0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400600a0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x1400492b0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1400b94c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rsi, rcx
je 0x1400493a5
cmp byte [rcx + 0x71], 0
je 0x1400493a5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rdi
mov rbx, qword [rax + 0x18]
call fcn.140054070
mov edx, eax
mov rcx, rsi
mov edi, eax
call rbx
mov edx, eax
mov ecx, edi
call fcn.140054090
mov rdi, qword [rsp + 0x80]
test al, al
jne 0x1400493a1
mov rcx, qword [rsi + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rsi + 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 0x140049366
sub eax, 1
je 0x14004936a
cmp eax, 2
jne 0x1400493a1
mov byte [rsi + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400600a0
add rsp, 0x60
pop rsi
ret
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rbx, rax
je 0x140049398
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400493a1
cmp byte [rsi + 0x71], 0
sete al
jmp 0x14004934e
xor al, al
jmp 0x14004934e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400600a0
add rsp, 0x60
pop rsi
ret
Function at 0x14004e400
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov r10, rdx
cmp dword [0x1400b9528], 2
jl 0x14004e566
movdqa xmm4, xmmword [0x140069e80]
lea rax, [r10 + 0x1c]
lea rdx, [rcx + 0x1c]
cmp rcx, rax
ja 0x14004e435
cmp rdx, r10
jae 0x14004e566
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm0, xmmword [str.9999999999999999]
lea r9, [rcx + 4]
movdqa xmm3, xmmword [0x14006cca0]
mov rdx, r10
movdqa xmm5, xmmword [str.2222]
sub rdx, rcx
movdqa xmm6, xmmword [0x14006cc80]
movdqa xmmword [rsp], xmm0
mov r11d, dword [rsp]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea r9, [r9 + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r11d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx + r9 - 0xc]
xorps xmm2, xmm0
movd dword [r9 - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r11d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx + r9 - 8]
xorps xmm2, xmm0
movd dword [r9 - 8], xmm2
cmp r8d, 0x18
jl 0x14004e470
movaps xmm6, xmmword [rsp + 0x10]
cmp r8d, 0x1d
jge 0x14004e5a6
movsxd r9, r8d
add r9, rcx
sub r10, rcx
nop
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, 0x1d
jl 0x14004e570
add rsp, 0x28
ret
Function at 0x14004e5b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov r10, rdx
cmp dword [0x1400b9528], 2
jl 0x14004e716
movdqa xmm4, xmmword [0x140069e80]
lea rax, [r10 + 0x40]
lea rdx, [rcx + 0x40]
cmp rcx, rax
ja 0x14004e5e5
cmp rdx, r10
jae 0x14004e716
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm0, xmmword [str.9999999999999999]
lea r9, [rcx + 4]
movdqa xmm3, xmmword [0x14006cca0]
mov rdx, r10
movdqa xmm5, xmmword [str.2222]
sub rdx, rcx
movdqa xmm6, xmmword [0x14006cc80]
movdqa xmmword [rsp], xmm0
mov r11d, dword [rsp]
nop dword [rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea r9, [r9 + 8]
paddd xmm2, xmm4
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r11d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx + r9 - 0xc]
xorps xmm2, xmm0
movd dword [r9 - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r11d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx + r9 - 8]
xorps xmm2, xmm0
movd dword [r9 - 8], xmm2
cmp r8d, 0x40
jl 0x14004e620
movaps xmm6, xmmword [rsp + 0x10]
cmp r8d, 0x41
jge 0x14004e756
movsxd r9, r8d
add r9, rcx
sub r10, rcx
nop
mov eax, 0x51eb851f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x39
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, 0x41
jl 0x14004e720
add rsp, 0x28
ret
Function at 0x140056010
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400b94c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, r8d
mov rsi, rdx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
cmp ecx, 0x7b
ja 0x140056058
lea r8, [rsp + 0x30]
mov edx, ecx
lea rcx, [0x1400b8fb0]
call fcn.1400486c0
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140044f40
nop
lea rcx, [rsp + 0x40]
test rbx, rbx
lea rdx, str.Select_any_key
je 0x140056077
mov rdx, rbx
call fcn.140046d50
cmp edi, 1
jne 0x140056092
lea rdx, [0x140063b68]
lea rcx, [rsp + 0x40]
call fcn.140046d50
lea rcx, [rsp + 0x40]
call fcn.140015eb0
mov rdx, rax
movss xmm0, dword [0x140063db0]
movss dword [rsp + 0x20], xmm0
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.1400078a0
movss xmm1, dword [rsp + 0x38]
addss xmm1, dword [0x140063ea0]
xorps xmm2, xmm2
lea rcx, [rsp + 0x30]
call fcn.1400036f0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140015eb0
mov rdx, rbx
mov rcx, rax
call fcn.14002b600
test al, al
je 0x140056116
test edi, edi
jne 0x140056116
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x40]
call fcn.140015860
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400600a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140057fa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b94c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov ebp, edx
mov rdi, rcx
call fcn.140054070
mov edx, ebp
mov ecx, eax
mov esi, eax
call fcn.140054090
test al, al
je 0x140057fdf
mov ecx, ebp
call fcn.140057c90
jmp 0x140058116
mov rcx, rdi
mov qword [rsp + 0xb0], 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 0x14005802b
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 0x14005802b
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 ecx, ebp
mov rbx, rax
call fcn.140043d10
mov byte [rbx], al
mov eax, ebp
jmp 0x14005810e
cmp qword [rdi + 0x80], 0
je 0x14005810c
mov rcx, rdi
call fcn.14004a080
mov rbx, qword [rdi + 0x68]
mov ecx, ebp
call fcn.140043d10
test rbx, rbx
jne 0x140058067
mov rdx, qword [rdi + 0x80]
movzx ecx, al
call fcn.14003d020
test al, al
jmp 0x140058109
mov byte [rsp + 0x50], al
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
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 0x1400580cd
sub eax, 1
je 0x1400580cd
cmp eax, 2
jne 0x14005810c
mov rdx, qword [rdi + 0x80]
movzx ecx, byte [rsp + 0x50]
call fcn.14003d020
test al, al
jmp 0x140058109
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1400580fb
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 0x14005810c
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
cmovne esi, ebp
mov eax, esi
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400600a0
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f6c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400b94c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x14005f6ec
xor eax, eax
jmp 0x14005f7ea
cmp qword [rcx + 0x68], 0
je 0x14005f6fe
call 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]
jmp 0x14005f7ea
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]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14005f759
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x78], rbx
lea rcx, [rsp + 0x20]
call fcn.1400156a0
mov rcx, rsi
mov rbx, qword [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, rbx
mov rcx, rbp
mov rdx, rax
call fcn.140015ec0
sub qword [rsp + 0x20], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rbx, qword [rsp + 0x78]
cmp qword [rsi + 0x80], 0
je 0x14005f7df
mov rcx, rsi
call fcn.14004a080
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xfff
jbe 0x14005f7b8
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
add rbp, rax
sub rcx, rax
mov qword [rsp + 0x20], rcx
cmp rax, 0xfff
jne 0x14005f7e4
cmp rcx, rax
ja 0x14005f780
test rcx, rcx
je 0x14005f7e4
mov r9, qword [rsi + 0x80]
mov r8, rcx
mov rcx, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
jmp 0x14005f7e4
mov rcx, qword [rsp + 0x20]
sub rdi, rcx
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400600a0
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f800
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 0x14005f828
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 0x14005f89c
test rax, rax
jle 0x14005f87c
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 fcn.140015ec0
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 0x14005f89c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14005f89c
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
Function at 0x140060ea8
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x1040
call fcn.140009bb0
sub rsp, rax
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov r14, qword [rsp + 0x1090]
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rcx
test r8, r8
je 0x1400047b9
mov r9d, 0x1000
lea r8, [rsp + 0x30]
mov rdx, rdi
call fcn.140002f00
test al, al
jne 0x140004732
lea rdx, str.____Cant_read_module_headers
jmp 0x14000479d
movsxd rax, dword [rsp + 0x6c]
lea rcx, [rsp + 0x30]
add rcx, rax
mov r8d, ebx
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
cmp bx, r9w
jae 0x140004796
nop dword [rax + rax]
mov eax, r8d
lea rcx, [rax + rax*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x14000478e
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], bl
jne 0x140004780
cmp rax, 4
je 0x1400047ed
inc r8d
cmp r8d, r9d
jb 0x140004760
lea rdx, str.____Cant_find_section
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1400013e0
lea rdx, [0x1400015c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbx
mov r8d, ebx
mov r9, rbp
mov rcx, rsi
mov qword [rsp + 0x20], r14
call fcn.140004560
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400089f0
add rsp, 0x1040
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140004796
mov r8d, dword [rdx + 8]
lea rcx, [rsp + 0x30]
add rcx, rax
je 0x140004796
test r8d, r8d
je 0x140004796
lea rax, [rsp + 0x30]
mov ebx, r8d
sub rcx, rax
lea rdx, [rcx + rdi]
jmp 0x1400047bc