joyce8/EMBER2024-capa huggingface dataset:
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.14005fe80
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 0x14003dd30
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.1400422c0
nop
lea rbx, [rdi + 8]
lea rcx, [rsp + 0x30]
call fcn.14003d130
mov r9, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x14003d420]
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 0x14003ddd0
lea rcx, [rsp + 0x30]
call fcn.140058d60
nop
lea rcx, [rsp + 0x30]
call fcn.1400466c0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005fe80
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 0x1400491e0
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 0x1400492d5
cmp byte [rcx + 0x71], 0
je 0x1400492d5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rdi
mov rbx, qword [rax + 0x18]
call fcn.140053e70
mov edx, eax
mov rcx, rsi
mov edi, eax
call rbx
mov edx, eax
mov ecx, edi
call fcn.140053e90
mov rdi, qword [rsp + 0x80]
test al, al
jne 0x1400492d1
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 0x140049296
sub eax, 1
je 0x14004929a
cmp eax, 2
jne 0x1400492d1
mov byte [rsi + 0x71], 0
mov al, 1
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005fe80
add rsp, 0x60
pop rsi
ret
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rbx, rax
je 0x1400492c8
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 0x1400492d1
cmp byte [rsi + 0x71], 0
sete al
jmp 0x14004927e
xor al, al
jmp 0x14004927e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005fe80
add rsp, 0x60
pop rsi
ret
Function at 0x14004e2d0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov r10, rdx
cmp dword [0x1400b9528], 2
jl 0x14004e436
movdqa xmm4, xmmword [0x140069e80]
lea rax, [r10 + 0x1c]
lea rdx, [rcx + 0x1c]
cmp rcx, rax
ja 0x14004e305
cmp rdx, r10
jae 0x14004e436
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm0, xmmword [str.3333333333333333O]
lea r9, [rcx + 4]
movdqa xmm3, xmmword [0x14006cca0]
mov rdx, r10
movdqa xmm5, xmmword [0x14006cc20]
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 0x14004e340
movaps xmm6, xmmword [rsp + 0x10]
cmp r8d, 0x1d
jge 0x14004e476
movsxd r9, r8d
add r9, rcx
sub r10, rcx
nop
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, 0x1d
jl 0x14004e440
add rsp, 0x28
ret
Function at 0x14004e480
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov r10, rdx
cmp dword [0x1400b9528], 2
jl 0x14004e5e6
movdqa xmm4, xmmword [0x140069e80]
lea rax, [r10 + 0x40]
lea rdx, [rcx + 0x40]
cmp rcx, rax
ja 0x14004e4b5
cmp rdx, r10
jae 0x14004e5e6
movaps xmmword [rsp + 0x10], xmm6
movdqa xmm0, xmmword [str.3333333333333333O]
lea r9, [rcx + 4]
movdqa xmm3, xmmword [0x14006cca0]
mov rdx, r10
movdqa xmm5, xmmword [0x14006cc20]
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 0x14004e4f0
movaps xmm6, xmmword [rsp + 0x10]
cmp r8d, 0x41
jge 0x14004e626
movsxd r9, r8d
add r9, rcx
sub r10, rcx
nop
mov eax, 0x4ec4ec4f
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x33
xor al, byte [r10 + r9 - 1]
mov byte [r9 - 1], al
cmp r8d, 0x41
jl 0x14004e5f0
add rsp, 0x28
ret
Function at 0x140055e10
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 0x140055e58
lea r8, [rsp + 0x30]
mov edx, ecx
lea rcx, [0x1400b8fb0]
call fcn.1400485f0
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140044e60
nop
lea rcx, [rsp + 0x40]
test rbx, rbx
lea rdx, str.Select_any_key
je 0x140055e77
mov rdx, rbx
call fcn.140046c60
cmp edi, 1
jne 0x140055e92
lea rdx, [0x140063b68]
lea rcx, [rsp + 0x40]
call fcn.140046c60
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 0x140055f16
test edi, edi
jne 0x140055f16
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.14005fe80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140057d90
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.140053e70
mov edx, ebp
mov ecx, eax
mov esi, eax
call fcn.140053e90
test al, al
je 0x140057dcf
mov ecx, ebp
call fcn.140057a80
jmp 0x140057f06
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 0x140057e1b
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 0x140057e1b
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.140043c30
mov byte [rbx], al
mov eax, ebp
jmp 0x140057efe
cmp qword [rdi + 0x80], 0
je 0x140057efc
mov rcx, rdi
call fcn.140049fb0
mov rbx, qword [rdi + 0x68]
mov ecx, ebp
call fcn.140043c30
test rbx, rbx
jne 0x140057e57
mov rdx, qword [rdi + 0x80]
movzx ecx, al
call fcn.14003cf40
test al, al
jmp 0x140057ef9
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 0x140057ebd
sub eax, 1
je 0x140057ebd
cmp eax, 2
jne 0x140057efc
mov rdx, qword [rdi + 0x80]
movzx ecx, byte [rsp + 0x50]
call fcn.14003cf40
test al, al
jmp 0x140057ef9
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x140057eeb
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 0x140057efc
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.14005fe80
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f4a0
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 0x14005f4cc
xor eax, eax
jmp 0x14005f5ca
cmp qword [rcx + 0x68], 0
je 0x14005f4de
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 0x14005f5ca
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 0x14005f539
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 0x14005f5bf
mov rcx, rsi
call fcn.140049fb0
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xfff
jbe 0x14005f598
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 0x14005f5c4
cmp rcx, rax
ja 0x14005f560
test rcx, rcx
je 0x14005f5c4
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 0x14005f5c4
mov rcx, qword [rsp + 0x20]
sub rdi, rcx
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005fe80
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005f5e0
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 0x14005f608
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 0x14005f67c
test rax, rax
jle 0x14005f65c
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 0x14005f67c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14005f67c
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 0x140060c88
Capabilities:
Parse pe header

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

Disassembly:
mov edx, 0x5ed52745
lea r8, [r14 + 0x19c7fd4]
and dx, 0x12c
cmp r9b, 0xc8
lea r8, [r9 + rbp*8 + 0x6c651aa2]
je 0x14054305d
lea r8, [r8 + rcx + 0x50ab7d1e]
sub cl, 0xa5
test rdx, 0x5fd6085b
movabs r14, 0x7c451ea946535644
not ecx
lea r14, [r14 + rcx + 0x38364632]
mov r8w, dx
lea r14, [rbp + r8 + 0x5f537eb7]
call fcn.1404c8c2d
invalid
call fcn.1404d069a
xor r14d, 0x10dc4d9e
mov r8w, 0x6800
sub r14, 0x195372f4
jae 0x1404cba0c

Function at 0x14031ab10
Capabilities:
Encode data using xor

Disassembly:
mov rsi, r8
not r15b
cmp r8d, dword [rsp + 0x22]
setbe r15b
or qword [rsp + 8], r9
or r8, qword [rsp + 0x50]
movzx r9w, word [rsp + 0x26]
not byte [rsp + 0x20]
neg dword [rsp + 0x50]
bswap r11
or esi, dword [rsp + 0x41]
lea r15, [rsi + 0x6d292f3d]
add qword [rsp], 0xfffffffffffda4fc
xor dword [rsp + 8], r8d
not r9b
mov r11, qword [rsp + 0x88]
or dword [rsp + 0x50], 0x1b504df
not r9
mov byte [rsp + 0x40], reloc.WS2_32.dll_recvfrom
not byte [rsp + 0x50]
sub dword [rsp + 0x20], 0x1bba7a78
movabs rdx, 0x450a689c54a51bfa
not edx
sub bp, 0x2948
and r9w, dx
lea r15, [rdx + 0x1622e6a]
not word [rsp + 0x40]
and dword [rsp + 0x50], r8d
and bp, 0x5cde
setae sil
add r15w, 0x2ee6
test byte [rsp + 0x40], 0x6c
movzx r9, word [rsp + 0x40]
mov dx, 0x4eda
lea r9, [r8 + rsi + 0x521123f4]
movsxd rsi, dword [rsp + 0x50]
movzx r15w, byte [rsp + 0x53]
setb bpl
or byte [rsp + 8], 0x55
mov r9, qword [rsp + 0x68]
lea rbp, [rbp*8 + 0x3a3e5dc3]
not qword [rsp + 0x50]
js 0x14031ab46
mov edx, 0x1fb94a85
cmp r15, qword [rsp + 0x50]
ret 0x10

Function at 0x1403372a6
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x28]
call fcn.14064ee1f
invalid

Function at 0x140368b94
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
test byte [rsp + 0x40], 0xe9
lea rdi, [rdi*8 + 0x79b63bdd]
mov r13, qword [rsp + 0x28]
movsx di, di
lea r14, [r14*8 + 0x4ecd229d]
sets byte [rsp + 8]
not byte [rsp + 8]
mov r14d, edi
mov r14w, di
xor word [rsp + 0x40], 0x146b
jl 0x140368bc2
cmp byte [rsp + 0x48], r14b
lea r14, [r14*8 + 0x16575c8f]
mov r14, rdi
mov rdi, qword [rsp + 0x58]
lea r14, [r14 + r14*4 + 0x67c81186]
setl byte [rsp + 0x40]
neg word [rsp + 0x48]
cmovne r14, qword [rsp + 8]
xor byte [rsp + 8], 0x85
or word [rsp + 0x40], r14w
not qword [rsp + 0x40]
not qword [rsp + 8]
xor dword [rsp + 8], 0x3dca5b25
add qword [rsp + 0x18], 0xffffffffffff320a
sub word [rsp + 0x48], r14w
xor word [rsp + 8], r14w
neg dword [rsp + 0x40]
not byte [rsp + 0x48]
cmp r14d, dword [rsp + 0x40]
call fcn.140349695
loop 0x140368c17
retf 0x483d
invalid

Function at 0x140371cbe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movabs r11, 0x62cf7c447e876c8c
neg r11
not r11
add r11b, 0xae
mov r11, qword [rsp]
lea rsp, [rsp + 8]
ret
lea r11, [r11 + 0x6e694267]
add qword [rsp], 0xffffffffffd511d0
cmp r11b, 0xb
bswap r11d
mov r11, qword [rsp + 0x10]
mov qword [rsp + 0x10], 0x6d8dec38
push r11
ja 0x1402e5a92
not r15d
test r13b, 0x5d
mov rbx, qword [rsp + 0x28]
not byte [rsp + 0x20]
call fcn.1402efe14
Function at 0x140371d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call rax
jmp 0x14059736f
call fcn.14037acee
call rax
mov r11, rax
cmp r10b, 0x29
test rax, rax
jmp 0x140597220
xor eax, eax
jmp 0x140597167
jmp 0x14059736f
je 0x140597160
cmp r11, rsi
jmp 0x14059722e
jne 0x1405972c6
cmp byte [rsp + 0x180], dil
je 0x1405972ac
lea rax, [rsp + 0x40]
sar dh, 0xe4
add ch, 0xa0
sub rbp, rax
btc ecx, 0xdb
jmp 0x14059725e
nop
rol ch, cl
clc
lea rdx, [rsp + rdi + 0x40]
lahf
rol ah, 0xe1
mov ecx, edi
movsxd rax, r14d
mov eax, 0x4a562178
stc
rol eax, cl
stc
add al, dil
cmp r12d, ecx
xor al, byte [rdx + rbp]
mov byte [rdx], al
je 0x14059729f
inc rdi
cmp rdi, 0x104
jmp 0x140597299
jb 0x140597262
lea rbp, [rsp + 0x40]
cmove eax, r9d
movsx cx, al
mov rdx, rbp
mov cl, r9b
mov rcx, rsi
movsx ax, r11b
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress_1]
jmp 0x1402e83e5
cmp byte [rbx + 1], 0x23
movzx edx, r10w
cdq
lea rdx, [rbx + 1]
jmp 0x1405972d8
jne 0x14059734f
movzx edx, byte [rbx + 2]
cmp r8d, r11d
add rbx, 2
jmp 0x1405972ef
test dl, dl
je 0x14059734c
nop
lahf
cdqe
bswap ax
lea eax, [rdx - 0x30]
jmp 0x140597306
inc rbx
cmp al, 9
jmp 0x140597310
ja 0x14059734c
movsx eax, dl
shr edx, 0xa3
cmp r8w, 0x64d1
test r14b, r11b
movzx edx, byte [rbx]
shld cx, r15w, 0xc2
lea ecx, [rdi + rdi*4]
cmp bp, si
bts di, bp
test r13b, r10b
lea edi, [rax + rcx*2 - 0x30]
test dl, dl
jmp 0x140597346
jne 0x1405972fe
movsxd rdx, edi
sub r8d, r8d
movsx ecx, cx
mov rcx, r11
jmp 0x14059735d
call fcn.140596d8d
jmp 0x14059736f
mov rbx, qword [rsp + 0x178]
mov rdi, qword [rsp + 0x150]
cmc
shr bpl, 0xb
sbb bpl, 0xaa
add rsp, 0x158
pop rsi
movzx bp, bpl
pop rbp
jmp 0x14059739b
ret

Function at 0x140377293
Capabilities:
Encode data using xor

Disassembly:
invalid
lea rsp, [rsp + 0x10]
call fcn.1405ea66e
mov byte [rdi + rdx*8 + 0x3d3baa1a], bh
je 0x140372ffc
loopne 0x140373023
push rax
mov bl, reloc.WLDAP32.dll_Ordinal_26
scasb al, byte [rdi]
imul edx, dword [rax - 0x429a1ab4], 0x6fe55c34
xor al, 0x5c
in eax, 0x6f
fldenv [rdi + rbx*2 + 0x336a60e5]
sbb dword [rdx], 0x35
sub eax, 0x5ce545bb
add edx, ecx
in eax, 0x1a
invalid
cmp bpl, 0x24
jo 0x140373004
xor rbp, 0x55967841
seto bpl
test bpl, 0xa7
movsxd rbp, ebp
not bpl
mov bp, 0x5ed0
movsx bp, bpl
mov rbp, qword [rsp + 0x18]
jl 0x14037729d
add qword [rsp + 8], 0xfffffffffffd730d
lea rsp, [rsp + 8]
ret 0x10

Function at 0x14038c9e0
Capabilities:
Encode data using xor

Disassembly:
neg word [rsp + 0x38]
sub dil, byte [rsp + 0x4c]
xor r8, qword [rsp + 0x10]
lea r8, [r10 + 0x1d856e98]
add dil, 0x96
and qword [rsp + 0x10], r10
and r8, qword [rsp + 0x48]
not dword [rsp + 0x48]
and byte [rsp + 0x48], 0x90
seta byte [rsp + 0x48]
xor word [rsp + 0x10], r8w
push rbp
cmp dword [rsp + 0x50], 0x2e015c8a
jg 0x14038c9f6
seta byte [rsp + 0x20]

Function at 0x14038f8f9
Capabilities:
Encode data using xor

Disassembly:
mov rdx, qword [rsp + 0x28]
mov word [rsp + 0x30], 0x3a0
and qword [rsp + 0x30], 0x3a921ba
setae byte [rsp + 0x30]
or byte [rsp + 0x30], 0xfb
add qword [rsp + 0x30], 0x3cd63e82
mov byte [rsp + 0x30], 0xf0
jge 0x1404dc73d
not qword [rsp + 0x30]
and word [rsp + 0x30], 0x6f8d
Function at 0x1404b5843
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x18]
call fcn.1405c0d1b
Function at 0x140542062
Capabilities:
Encode data using xor

Disassembly:
call fcn.14033fdca
jns 0x1404c1d13
add byte [rax], al
push rsi
jb 0x1405420d7
jns 0x1405420c7
jb 0x1405420e7
imul ebp, dword [rdi + 0x6e], 0x6f666e49
push rdi
add byte [rdi], cl
jle 0x1403287ed
in al, 0xff
jrcxz 0x140542126
sbb al, 0x49
sub ch, byte [rcx]
and al, 0x10
adc eax, dword [rbp + 0x27ea5a87]
mov rbp, dr4
invalid

Function at 0x140595686
Capabilities:
Authenticate hmac

Disassembly:
add rdx, 0x6e501981
and r14w, 0x608c
call fcn.140339656