joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007cd30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c8
call fcn.1401b6c10
sub rsp, rax
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov ecx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
mov dword [rsp + rcx*4 + 0x24], eax
inc rcx
cmp rcx, 0x270
jb 0x14007cd70
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x270
call fcn.1401079f0
mov ecx, eax
mov r8d, 0x80000000
lea rdx, [rcx + rcx]
shr rdx, 0x20
add edx, 0x80000001
cmp edx, r8d
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + r8]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1401b6160
add rsp, 0x13c8
ret

Function at 0x14008aca0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp byte [0x140249f74], 0
jne 0x14008ad07
mov rax, qword [0x1402534f8]
cmp byte [rax], 0
je 0x14008ad0e
movss xmm0, dword [0x140249f6c]
xorps xmm2, xmm2
ucomiss xmm0, xmm2
jp 0x14008acd0
je 0x14008acdf
movss xmm1, dword [0x140249f70]
ucomiss xmm1, xmm2
jp 0x14008acf0
jne 0x14008acf0
mov byte [0x140249f74], 0
mov byte [rax], 0
xor al, al
add rsp, 0x28
ret
movss dword [0x14024c320], xmm0
movss dword [0x14024c324], xmm1
mov byte [0x140249f74], 1
mov al, 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x1402534e8]
mov rbx, rax
cmp byte [rcx], 0
je 0x14008adfe
nop dword [rax]
cmp qword [0x140252eb8], 0
je 0x14008adfe
mov rcx, qword [0x14024c298]
call fcn.14006af20
mov rcx, qword [0x140259328]
lea r8, [rsp + 0x40]
mov r9d, 8
lea rdx, [rax + 0xb4]
call fcn.140063d10
mov rax, qword [0x1402534f0]
movsd xmm0, qword [rsp + 0x40]
movsd qword [rsp + 0x30], xmm0
cmp byte [rax], 0
je 0x14008adb3
mov rcx, qword [0x14024c298]
call fcn.14006af20
mov rcx, qword [0x140259328]
lea r8, [rsp + 0x48]
mov r9d, 8
lea rdx, [rax + 0x3c]
call fcn.140063d10
movsd xmm0, qword [rsp + 0x48]
movsd qword [rsp + 0x38], xmm0
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14008add2
mov ecx, Ordinal_41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x14008ae0a
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, rbx
cmp rax, 0x3938700
jge 0x14008adfe
mov rax, qword [0x1402534e8]
cmp byte [rax], 0
jne 0x14008ad30
mov rbx, qword [rsp + 0x20]
xor al, al
add rsp, 0x28
ret
mov rax, qword [0x1402534f0]
cmp byte [rax], 0
je 0x14008ae40
mov rcx, qword [0x14024c298]
call fcn.14006aff0
lea rdx, [rax + 0x20]
call fcn.1400f5ff0
shr eax, 9
test al, 1
jne 0x14008ae40
movss xmm0, dword [rsp + 0x38]
movss xmm1, dword [rsp + 0x3c]
jmp 0x14008ae4c
movss xmm1, dword [rsp + 0x34]
movss xmm0, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
mov al, 1
movss dword [0x140249f6c], xmm0
movss dword [0x140249f70], xmm1
movss dword [0x14024c320], xmm0
movss dword [0x14024c324], xmm1
mov byte [0x140249f74], 1
add rsp, 0x28
ret
Function at 0x14008ae80
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, edx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x1402534e8]
mov rbx, rax
cmp byte [rcx], 0
je 0x14008af1e
nop word [rax + rax]
cmp qword [0x140252eb8], 0
je 0x14008af1e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm6, dword [rsp + 0x20]
mov ecx, Ordinal_41
movd xmm7, dword [rsp + 0x24]
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x14008af42
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, rbx
cmp rax, 0x3938700
jge 0x14008af1e
mov rax, qword [0x1402534e8]
cmp byte [rax], 0
jne 0x14008aec0
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401b6160
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
movaps xmm0, xmm6
mov edx, edi
unpcklps xmm0, xmm7
movq r8, xmm0
call fcn.14007c260
mov al, 1
jmp 0x14008af20

Function at 0x140096e10
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, edx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x140253490]
mov rbx, rax
cmp byte [rcx], 0
je 0x140096eae
nop word [rax + rax]
cmp qword [0x140252eb8], 0
je 0x140096eae
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm6, dword [rsp + 0x20]
mov ecx, Ordinal_41
movd xmm7, dword [rsp + 0x24]
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140096ed2
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, rbx
cmp rax, 0x3938700
jge 0x140096eae
mov rax, qword [0x140253490]
cmp byte [rax], 0
jne 0x140096e50
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401b6160
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
movaps xmm0, xmm6
mov edx, edi
unpcklps xmm0, xmm7
movq r8, xmm0
call fcn.14007c260
mov al, 1
jmp 0x140096eb0
Function at 0x14009b540
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, edx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x140253460]
mov rbx, rax
cmp byte [rcx], 0
je 0x14009b5de
nop word [rax + rax]
cmp qword [0x140252eb8], 0
je 0x14009b5de
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm6, dword [rsp + 0x20]
mov ecx, Ordinal_41
movd xmm7, dword [rsp + 0x24]
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x14009b602
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, rbx
cmp rax, 0x3938700
jge 0x14009b5de
mov rax, qword [0x140253460]
cmp byte [rax], 0
jne 0x14009b580
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401b6160
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
movaps xmm0, xmm6
mov edx, edi
unpcklps xmm0, xmm7
movq r8, xmm0
call fcn.14007c260
mov al, 1
jmp 0x14009b5e0

Function at 0x14009d4e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, edx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x140253478]
mov rbx, rax
cmp byte [rcx], 0
je 0x14009d57e
nop word [rax + rax]
cmp qword [0x140252eb8], 0
je 0x14009d57e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm6, dword [rsp + 0x20]
mov ecx, Ordinal_41
movd xmm7, dword [rsp + 0x24]
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x14009d5a2
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, rbx
cmp rax, 0x3938700
jge 0x14009d57e
mov rax, qword [0x140253478]
cmp byte [rax], 0
jne 0x14009d520
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401b6160
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
movaps xmm0, xmm6
mov edx, edi
unpcklps xmm0, xmm7
movq r8, xmm0
call fcn.14007c260
mov al, 1
jmp 0x14009d580
Function at 0x14009fe00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, edx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x140253448]
mov rbx, rax
cmp byte [rcx], 0
je 0x14009fe9e
nop word [rax + rax]
cmp qword [0x140252eb8], 0
je 0x14009fe9e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm6, dword [rsp + 0x20]
mov ecx, Ordinal_41
movd xmm7, dword [rsp + 0x24]
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x14009fec2
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, rbx
cmp rax, 0x3938700
jge 0x14009fe9e
mov rax, qword [0x140253448]
cmp byte [rax], 0
jne 0x14009fe40
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401b6160
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
movaps xmm0, xmm6
mov edx, edi
unpcklps xmm0, xmm7
movq r8, xmm0
call fcn.14007c260
mov al, 1
jmp 0x14009fea0
Function at 0x1400a3ec0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm7
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, edx
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, qword [0x1402534b0]
mov rbx, rax
cmp byte [rcx], 0
je 0x1400a3f5e
nop word [rax + rax]
cmp qword [0x140252eb8], 0
je 0x1400a3f5e
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm6, dword [rsp + 0x20]
mov ecx, Ordinal_41
movd xmm7, dword [rsp + 0x24]
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm7, xmm7
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x1400a3f82
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
sub rax, rbx
cmp rax, 0x3938700
jge 0x1400a3f5e
mov rax, qword [0x1402534b0]
cmp byte [rax], 0
jne 0x1400a3f00
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401b6160
mov rbx, qword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
movaps xmm0, xmm6
mov edx, edi
unpcklps xmm0, xmm7
movq r8, xmm0
call fcn.14007c260
mov al, 1
jmp 0x1400a3f60
Function at 0x1400b1370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movzx eax, byte [rdx]
lea rsi, [rdx + 0x68]
mov byte [rcx], al
lea r14, [rcx + 0x68]
mov rax, qword [rdx + 8]
mov rdi, rdx
mov qword [rcx + 8], rax
mov rbx, rcx
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
movsd xmm0, qword [rdx + 0x18]
movsd qword [rcx + 0x18], xmm0
mov eax, dword [rdx + 0x20]
mov dword [rcx + 0x20], eax
movzx eax, byte [rdx + 0x24]
mov byte [rcx + 0x24], al
movsd xmm0, qword [rdx + 0x28]
movsd qword [rcx + 0x28], xmm0
mov eax, dword [rdx + 0x30]
mov dword [rcx + 0x30], eax
movsd xmm0, qword [rdx + 0x34]
movsd qword [rcx + 0x34], xmm0
mov eax, dword [rdx + 0x3c]
mov dword [rcx + 0x3c], eax
movsd xmm0, qword [rdx + 0x40]
movsd qword [rcx + 0x40], xmm0
mov eax, dword [rdx + 0x48]
mov dword [rcx + 0x48], eax
movsd xmm0, qword [rdx + 0x4c]
movsd qword [rcx + 0x4c], xmm0
mov eax, dword [rdx + 0x54]
mov dword [rcx + 0x54], eax
movzx eax, byte [rdx + 0x58]
mov byte [rcx + 0x58], al
mov eax, dword [rdx + 0x5c]
mov dword [rcx + 0x5c], eax
movzx eax, byte [rdx + 0x60]
mov byte [rcx + 0x60], al
movzx eax, byte [rdx + 0x61]
mov byte [rcx + 0x61], al
cmp r14, rsi
je 0x1400b144a
mov rcx, r14
call fcn.1400f1280
mov rax, qword [rsi]
mov qword [r14], rax
mov rax, qword [rsi + 8]
mov qword [r14 + 8], rax
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
movzx eax, byte [rdi + 0x80]
mov rsi, qword [rsp + 0x38]
mov byte [rbx + 0x80], al
movzx eax, byte [rdi + 0x81]
mov byte [rbx + 0x81], al
mov eax, dword [rdi + 0x84]
mov dword [rbx + 0x84], eax
mov eax, dword [rdi + 0x88]
mov dword [rbx + 0x88], eax
mov eax, dword [rdi + 0x8c]
mov dword [rbx + 0x8c], eax
mov eax, dword [rdi + 0x90]
mov rdi, qword [rsp + 0x40]
mov dword [rbx + 0x90], eax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x1400ed9c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400ed9e8
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400eda0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400eda10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400eda69
test ecx, ecx
jle 0x1400eda49
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400eda69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400eda69
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400eda90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400edab2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400edac8
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400edae4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400edae6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400edb22
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400edbbe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400edb5d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400edb9e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400edbbe
cmp rbx, rax
ja 0x1400edb70
test rbx, rbx
je 0x1400edbbe
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400edfc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400edfed
xor eax, eax
jmp 0x1400ee159
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400ee027
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400ee027
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400ee159
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400ee14c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400ee06a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400ee095
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400ee151
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x1400ee104
sub eax, 1
je 0x1400ee104
cmp eax, 2
jne 0x1400ee14c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400ee151
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400ee132
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400ee14c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400ee151
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401b6160
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400f1340
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400f1413
cmp byte [rcx + 0x71], 0
je 0x1400f1413
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x1400f140f
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 0x1400f13d4
sub eax, 1
je 0x1400f13d8
cmp eax, 2
jne 0x1400f140f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401b6160
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400f1406
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 0x1400f140f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400f13bc
xor al, al
jmp 0x1400f13bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401b6160
add rsp, 0x60
pop rbx
ret

Function at 0x1400f5b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1402345c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x28], rdx
mov rbx, rcx
mov qword [rsp + 0x20], r8
lea rdx, [rsp + 0x38]
mov r8d, 0x100
mov qword [rsp + 0x30], 0
xor eax, eax
nop
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, r8d
jl 0x1400f5b80
xor r11d, r11d
lea r10, [rsp + 0x38]
xor r9d, r9d
nop dword [rax + rax]
movzx edx, byte [r10]
lea rcx, [rsp + 0x38]
movzx eax, dl
lea r10, [r10 + 1]
add al, byte [rsp + r9 + 0x28]
add al, r11b
movzx r11d, al
movzx eax, byte [rcx + r11]
mov byte [r10 - 1], al
lea rax, [r9 + 1]
xor r9d, r9d
mov byte [rcx + r11], dl
cmp rax, 8
cmovl r9, rax
sub r8, 1
jne 0x1400f5ba0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140063640
mov rax, qword [rsp + 0x20]
xor rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401b6160
add rsp, 0x150
pop rbx
ret
Function at 0x1401079f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140107a51
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140107a10
mov ecx, dword [r9]
jmp 0x140107b38
cmp ecx, 0x4e0
jb 0x140107b38
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140107a70
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140107ac0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret