joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400242b0
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 0x1400244a8
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 0x140024334
call fcn.140024af0
jmp 0x14002433d
xorps xmm1, xmm8
call fcn.140024ac0
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 0x140024450
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 0x140024390
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x140024393
mov edx, dword [rax + rsi]
mov rcx, r14
call fcn.140023750
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.140023b10
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 0x140024380
mov dword [rsp + 0xe8], r12d
mov r12, qword [rsp + 0x60]
add rbx, 0x28
sub r12, 1
mov qword [rsp + 0x60], r12
jne 0x140024320
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 0x1400257c0
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.14000aae0
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.140025a60
cmp byte [rbx + 0xc8], 0
je 0x1400258be
mov eax, 0xffffffff
jmp 0x1400258c3
call fcn.14000ab20
cmp dword [0x14007d474], eax
je 0x1400258d6
mov dword [0x14007d474], eax
call fcn.140025900
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005fee0
add rsp, 0x50
pop rbx
ret

Function at 0x140027500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r10d, byte [rcx]
xor r9d, r9d
cmp r10b, 0x2d
jne 0x140027518
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 0x140027566
movss xmm2, dword [0x140063d68]
nop
cmp al, 0x39
ja 0x140027566
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 0x140027540
mov rax, rcx
test r9d, r9d
je 0x140027575
xorps xmm1, xmmword [0x140063e00]
movss dword [rdx], xmm1
ret

Function at 0x140027580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx r10d, byte [rcx]
xor r9d, r9d
cmp r10b, 0x2d
jne 0x140027598
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 0x1400275e4
movsd xmm2, qword [0x14006a340]
nop
cmp al, 0x39
ja 0x1400275e4
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 0x1400275c0
mov rax, rcx
test r9d, r9d
je 0x1400275f3
xorps xmm1, xmmword [0x14006a3c0]
movsd qword [rdx], xmm1
ret
Function at 0x14003dd70
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.1400142f0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140042300
nop
lea rbx, [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.14003d170
mov r9, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x14003d460]
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 0x14003de10
lea rcx, [rsp + 0x30]
call fcn.140058dc0
nop
lea rcx, [rsp + 0x30]
call fcn.140046700
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005fee0
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 0x140049220
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 0x140049315
cmp byte [rcx + 0x71], 0
je 0x140049315
mov rax, qword [rcx]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rdi
mov rbx, qword [rax + 0x18]
call fcn.140053ed0
mov edx, eax
mov rcx, rsi
mov edi, eax
call rbx
mov edx, eax
mov ecx, edi
call fcn.140053ef0
mov rdi, qword [rsp + 0x80]
test al, al
jne 0x140049311
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 0x1400492d6
sub eax, 1
je 0x1400492da
cmp eax, 2
jne 0x140049311
mov byte [rsi + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005fee0
add rsp, 0x60
pop rsi
ret
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rbx, rax
je 0x140049308
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 0x140049311
cmp byte [rsi + 0x71], 0
sete al
jmp 0x1400492be
xor al, al
jmp 0x1400492be
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005fee0
add rsp, 0x60
pop rsi
ret
Function at 0x14004e310
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov r10, rdx
cmp dword [0x1400b9528], 2
jl 0x14004e47e
movdqa xmm4, xmmword [0x140069e80]
lea rax, [r10 + 0x1c]
lea rdx, [rcx + 0x1c]
cmp rcx, rax
ja 0x14004e345
cmp rdx, r10
jae 0x14004e47e
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm0, xmmword [str.8888888888888888_t]
lea r9, [rcx + 4]
movdqa xmm3, xmmword [0x14006ccb0]
mov rdx, r10
movdqa xmm5, xmmword [str.::::]
sub rdx, rcx
movdqa xmm6, xmmword [0x14006cc90]
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
paddd xmm1, xmm2
psrad xmm1, 5
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
paddd xmm1, xmm2
psrad xmm1, 5
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 0x14004e380
movaps xmm6, xmmword [rsp + 0x10]
cmp r8d, 0x1d
jge 0x14004e4c9
movsxd r9, r8d
add r9, rcx
sub r10, rcx
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x38
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, 0x1d
jl 0x14004e490
add rsp, 0x28
ret
Function at 0x14004e4d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov r10, rdx
cmp dword [0x1400b9528], 2
jl 0x14004e63e
movdqa xmm4, xmmword [0x140069e80]
lea rax, [r10 + 0x40]
lea rdx, [rcx + 0x40]
cmp rcx, rax
ja 0x14004e505
cmp rdx, r10
jae 0x14004e63e
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm0, xmmword [str.8888888888888888_t]
lea r9, [rcx + 4]
movdqa xmm3, xmmword [0x14006ccb0]
mov rdx, r10
movdqa xmm5, xmmword [str.::::]
sub rdx, rcx
movdqa xmm6, xmmword [0x14006cc90]
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
paddd xmm1, xmm2
psrad xmm1, 5
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
paddd xmm1, xmm2
psrad xmm1, 5
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 0x14004e540
movaps xmm6, xmmword [rsp + 0x10]
cmp r8d, 0x41
jge 0x14004e689
movsxd r9, r8d
add r9, rcx
sub r10, rcx
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x38
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, 0x41
jl 0x14004e650
add rsp, 0x28
ret
Function at 0x140055e70
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 0x140055eb8
lea r8, [rsp + 0x30]
mov edx, ecx
lea rcx, [0x1400b8fb0]
call fcn.140048630
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140044ea0
nop
lea rcx, [rsp + 0x40]
test rbx, rbx
lea rdx, str.Select_any_key
je 0x140055ed7
mov rdx, rbx
call fcn.140046ca0
cmp edi, 1
jne 0x140055ef2
lea rdx, [0x140063b68]
lea rcx, [rsp + 0x40]
call fcn.140046ca0
lea rcx, [rsp + 0x40]
call fcn.140015e80
mov rdx, rax
movss xmm0, dword [0x140063db0]
movss dword [rsp + 0x20], xmm0
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.140007890
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.140015e80
mov rdx, rbx
mov rcx, rax
call fcn.14002b5b0
test al, al
je 0x140055f76
test edi, edi
jne 0x140055f76
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.140015830
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005fee0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140057df0
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.140053ed0
mov edx, ebp
mov ecx, eax
mov esi, eax
call fcn.140053ef0
test al, al
je 0x140057e2f
mov ecx, ebp
call fcn.140057ae0
jmp 0x140057f66
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 0x140057e7b
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 0x140057e7b
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.140043c70
mov byte [rbx], al
mov eax, ebp
jmp 0x140057f5e
cmp qword [rdi + 0x80], 0
je 0x140057f5c
mov rcx, rdi
call fcn.140049ff0
mov rbx, qword [rdi + 0x68]
mov ecx, ebp
call fcn.140043c70
test rbx, rbx
jne 0x140057eb7
mov rdx, qword [rdi + 0x80]
movzx ecx, al
call fcn.14003cf80
test al, al
jmp 0x140057f59
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 0x140057f1d
sub eax, 1
je 0x140057f1d
cmp eax, 2
jne 0x140057f5c
mov rdx, qword [rdi + 0x80]
movzx ecx, byte [rsp + 0x50]
call fcn.14003cf80
test al, al
jmp 0x140057f59
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140057f4b
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 0x140057f5c
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.14005fee0
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f500
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 0x14005f52c
xor eax, eax
jmp 0x14005f62a
cmp qword [rcx + 0x68], 0
je 0x14005f53e
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 0x14005f62a
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 0x14005f599
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x78], rbx
lea rcx, [rsp + 0x20]
call fcn.140015670
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.140015e90
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 0x14005f61f
mov rcx, rsi
call fcn.140049ff0
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xfff
jbe 0x14005f5f8
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 0x14005f624
cmp rcx, rax
ja 0x14005f5c0
test rcx, rcx
je 0x14005f624
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 0x14005f624
mov rcx, qword [rsp + 0x20]
sub rdi, rcx
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005fee0
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f640
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 0x14005f668
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 0x14005f6dc
test rax, rax
jle 0x14005f6bc
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.140015e90
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 0x14005f6dc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14005f6dc
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 0x140060ce8
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140005490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400054a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140003010
jmp 0x14000123c
mov rax, qword [0x1400054a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov rdx, rax
mov rax, qword [0x1400054d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x1400054a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400054c0]
mov rdx, rax
mov rax, qword [0x1400054b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400054a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140005490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400053f0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400053f0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140002238
mov rax, qword [0x140005520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001a30
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call fcn.14000147c
call fcn.1400017c7
mov rax, qword [0x140005410]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret