joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043b90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, str.ALLUSERSPROFILE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140043bf9
mov qword [rdi], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], bl
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], bl
jne 0x140043be0
mov rdx, rax
mov rcx, rdi
call fcn.14002b310
jmp 0x140043d12
mov qword [rsp + 0x38], rbx
movdqa xmm0, xmmword [0x140161f70]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bx
mov dword [rsp + 0x30], 2
lea rcx, [rsp + 0x38]
call fcn.14003ee90
test eax, eax
jne 0x140043d32
lea rbp, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
call fcn.1400d37ac
mov r14d, eax
mov qword [rdi], rbx
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x30], Ordinal_41
test rsi, rsi
je 0x140043ccd
cmp rsi, 0x7fffffff
ja 0x140043d3a
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
mov ecx, eax
call fcn.1400d381c
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x140043d40
movsxd rdx, ebx
xor r8d, r8d
mov rcx, rdi
call fcn.14004aa50
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140043cb3
mov r9, qword [rdi]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, rbp
mov ecx, r14d
call fcn.1400d381c
shr rax, 0x20
test eax, eax
jne 0x140043d2a
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140043d12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140043d0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140043d0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d43b4
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, eax
call fcn.14003e210
nop
mov edx, eax
call fcn.14003ebc0
nop
call fcn.14003aca0
int3
mov ecx, eax
call fcn.14003e210
int3

Function at 0x140046ba0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
xor edx, edx
cmp byte [rcx + 8], dl
je 0x140046bd4
mov r8d, edx
nop dword [rax]
nop word [rax + rax]
lea eax, [r8 - 0x67]
xor byte [r8 + rcx], al
inc r8
cmp r8, 7
jb 0x140046bc0
mov byte [rcx + 8], dl
lea rax, [rcx + 7]
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
cmp rcx, rax
je 0x140046bff
mov rdx, rcx
mov r8d, 7
mov rcx, rbx
call fcn.14002b310
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140046c10
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
xor edx, edx
cmp byte [rcx + 0x10], dl
je 0x140046c44
mov r8d, edx
nop dword [rax]
nop word [rax + rax]
lea eax, [r8 - 0x67]
xor byte [r8 + rcx], al
inc r8
cmp r8, 0xf
jb 0x140046c30
mov byte [rcx + 0x10], dl
lea rax, [rcx + 0xf]
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
cmp rcx, rax
je 0x140046c6f
mov rdx, rcx
mov r8d, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call fcn.14002b310
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140046ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140047020
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140047048
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004704a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400470a3
test ecx, ecx
jle 0x140047083
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400470a3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400470a3
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 + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
ret 0x623
Function at 0x1400470d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140047101
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140047118
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140047140
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140047142
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140047174
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140047211
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400471b2
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 rdi, 0xfff
jbe 0x1400471f1
nop dword [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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140047232
cmp rdi, rax
ja 0x1400471c0
test rbx, rbx
je 0x140047211
mov r9, qword [rsi + 0x80]
mov r8, rdi
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 + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140047214
invalid
Function at 0x140047640
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140047664
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004769b
mov rax, qword [rcx + 0x58]
movsxd rcx, dword [rax]
add rcx, rdx
cmp rdx, rcx
jae 0x14004769b
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x1400477c4
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400476de
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 0x140047709
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 0x1400477c9
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
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 0x14004777e
sub eax, 1
je 0x14004777e
cmp eax, 2
jne 0x1400477c4
movsx ecx, byte [rsp + 0x40]
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 0x1400477c9
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x1400477af
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400477c4
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov eax, edi
jne 0x1400477c9
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret

Function at 0x140047890
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
xor edx, edx
cmp byte [rcx + 9], dl
je 0x1400478c4
mov r8d, edx
nop dword [rax]
nop word [rax + rax]
lea eax, [r8 - 0x67]
xor byte [r8 + rcx], al
inc r8
cmp r8, 8
jb 0x1400478b0
mov byte [rcx + 9], dl
lea rax, [rcx + 8]
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
cmp rcx, rax
je 0x1400478ef
mov rdx, rcx
mov r8d, 8
mov rcx, rbx
call fcn.14002b310
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140047900
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
xor edx, edx
cmp byte [rcx + 0xa], dl
je 0x140047934
mov r8d, edx
nop dword [rax]
nop word [rax + rax]
lea eax, [r8 - 0x67]
xor byte [r8 + rcx], al
inc r8
cmp r8, 9
jb 0x140047920
mov byte [rcx + 0xa], dl
lea rax, [rcx + 9]
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
cmp rcx, rax
je 0x14004795f
mov rdx, rcx
mov r8d, 9
mov rcx, rbx
call fcn.14002b310
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140049cb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140049d79
cmp byte [rcx + 0x71], 0
je 0x140049d79
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140049d6c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
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 0x140049d28
sub eax, 1
je 0x140049d2c
cmp eax, 2
jne 0x140049d6c
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140049d5a
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140049d6c
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x14004c700
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx + 8], rax
mov byte [rcx], 3
lea ecx, [rax + 0x20]
call fcn.1400d4128
mov rdi, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rdi
xor edx, edx
cmp byte [rbx + 0xb], dl
je 0x14004c753
mov ecx, edx
lea eax, [rcx - 0x67]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 0xa
jb 0x14004c741
mov byte [rbx + 0xb], dl
lea rax, [rbx + 0xa]
mov qword [rdi], rdx
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
cmp rbx, rax
je 0x14004c77d
mov r8d, 0xa
mov rdx, rbx
mov rcx, rdi
call fcn.14002b310
nop
mov qword [rsi + 8], rdi
mov rcx, rsi
call fcn.14004a780
mov rcx, rsi
call fcn.14004a780
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14005aca0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, dword [rcx + 0x28]
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x40
jae 0x14005ae43
lea ecx, [r8*8]
add qword [rbx], rcx
mov byte [r8 + rbx + 0x2c], 0x80
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x38
jbe 0x14005ad05
cmp eax, 0x40
jae 0x14005acf0
nop
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
mov eax, dword [rbx + 0x28]
cmp eax, 0x40
jb 0x14005ace0
lea rdx, [rbx + 0x2c]
mov rcx, rbx
call fcn.14005a5f0
mov dword [rbx + 0x28], 0
jmp 0x14005ad10
jae 0x14005ad21
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
mov byte [rax + rbx + 0x2c], 0
inc dword [rbx + 0x28]
cmp dword [rbx + 0x28], 0x38
jb 0x14005ad10
movzx eax, byte [rbx + 7]
lea rdx, [rbx + 0x2c]
mov byte [rbx + 0x64], al
mov rcx, rbx
movzx eax, byte [rbx + 6]
mov byte [rbx + 0x65], al
movzx eax, byte [rbx + 5]
mov byte [rbx + 0x66], al
movzx eax, byte [rbx + 4]
mov byte [rbx + 0x67], al
movzx eax, byte [rbx + 3]
mov byte [rbx + 0x68], al
movzx eax, byte [rbx + 2]
mov byte [rbx + 0x69], al
movzx eax, byte [rbx + 1]
mov byte [rbx + 0x6a], al
movzx eax, byte [rbx]
mov byte [rbx + 0x6b], al
call fcn.14005a5f0
movzx eax, byte [rbx + 0xb]
mov byte [rdi], al
movzx eax, byte [rbx + 0xa]
mov byte [rdi + 1], al
movzx eax, byte [rbx + 9]
mov byte [rdi + 2], al
movzx eax, byte [rbx + 8]
mov byte [rdi + 3], al
movzx eax, byte [rbx + 0xf]
mov byte [rdi + 4], al
movzx eax, byte [rbx + 0xe]
mov byte [rdi + 5], al
movzx eax, byte [rbx + 0xd]
mov byte [rdi + 6], al
movzx eax, byte [rbx + 0xc]
mov byte [rdi + 7], al
movzx eax, byte [rbx + 0x13]
mov byte [rdi + 8], al
movzx eax, byte [rbx + 0x12]
mov byte [rdi + 9], al
movzx eax, byte [rbx + 0x11]
mov byte [rdi + 0xa], al
movzx eax, byte [rbx + 0x10]
mov byte [rdi + 0xb], al
movzx eax, byte [rbx + 0x17]
mov byte [rdi + 0xc], al
movzx eax, byte [rbx + 0x16]
mov byte [rdi + 0xd], al
movzx eax, byte [rbx + 0x15]
mov byte [rdi + 0xe], al
movzx eax, byte [rbx + 0x14]
mov byte [rdi + 0xf], al
movzx eax, byte [rbx + 0x1b]
mov byte [rdi + 0x10], al
movzx eax, byte [rbx + 0x1a]
mov byte [rdi + 0x11], al
movzx eax, byte [rbx + 0x19]
mov byte [rdi + 0x12], al
movzx eax, byte [rbx + 0x18]
mov byte [rdi + 0x13], al
movzx eax, byte [rbx + 0x1f]
mov byte [rdi + 0x14], al
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 0x15], al
movzx eax, byte [rbx + 0x1d]
mov byte [rdi + 0x16], al
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 0x17], al
movzx eax, byte [rbx + 0x23]
mov byte [rdi + 0x18], al
movzx eax, byte [rbx + 0x22]
mov byte [rdi + 0x19], al
movzx eax, byte [rbx + 0x21]
mov byte [rdi + 0x1a], al
movzx eax, byte [rbx + 0x20]
mov byte [rdi + 0x1b], al
movzx eax, byte [rbx + 0x27]
mov byte [rdi + 0x1c], al
movzx eax, byte [rbx + 0x26]
mov byte [rdi + 0x1d], al
movzx eax, byte [rbx + 0x25]
mov byte [rdi + 0x1e], al
movzx eax, byte [rbx + 0x24]
mov byte [rdi + 0x1f], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14005cab0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rsi
mov eax, 0x13c8
call fcn.1400d4a90
sub rsp, rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x14005cae0
mov rax, qword [0x1411c23f0]
xor ebp, ebp
mov rsi, qword [0x1411c23e8]
sub rax, rsi
mov dword [rsp + 0x20], 0x270
sar rax, 3
test rax, rax
je 0x14005cd42
movss xmm4, dword [0x140162200]
xorps xmm5, xmm5
mov qword [rsp + 0x13e0], rbx
mov ebx, ebp
mov qword [rsp + 0x13e8], rdi
mov qword [rsp + 0x13f0], r14
mov r14d, ebp
mov qword [rsp + 0x13c0], r15
mov r15, qword [0x1411c2380]
movaps xmmword [rsp + 0x13b0], xmm6
movsd xmm6, qword [0x140161e68]
nop
mov rdi, qword [0x1411c2400]
xorps xmm2, xmm2
mov rax, qword [0x1411c2418]
movss xmm0, dword [rbx + rsi]
cvtps2pd xmm0, xmm0
mov ecx, dword [r14 + rax]
movss xmm1, dword [rbx + rdi]
cvtps2pd xmm1, xmm1
cvtsi2ss xmm2, ecx
mulsd xmm1, xmm6
addsd xmm1, xmm0
movss xmm0, dword [rbx + rsi + 4]
cvtps2pd xmm0, xmm0
cvtpd2ps xmm3, xmm1
movss dword [rbx + rsi], xmm3
movss xmm1, dword [rbx + rdi + 4]
cvtps2pd xmm1, xmm1
mulsd xmm1, xmm6
addsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
movaps xmm1, xmm3
subss xmm1, xmm2
movss dword [rbx + rsi + 4], xmm0
comiss xmm5, xmm1
ja 0x14005cbee
mov rax, qword [r15 + 0x4038]
movaps xmm0, xmm2
addss xmm0, xmm3
comiss xmm0, dword [rax + 0x30]
jbe 0x14005cc5f
movss xmm0, dword [rbx + rdi]
xorps xmm0, xmm4
movss dword [rbx + rdi], xmm0
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call fcn.140069ba0
mov r8d, eax
mov eax, 0x6b1490ab
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 8
cmp ecx, 0xb58a48
jae 0x14005cc00
mov eax, 0x6b1490ab
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 8
imul eax, eax, 0x169
sub r8d, eax
and r8d, 1
lea eax, [r8*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + rdi + 4], xmm0
movss xmm1, dword [rbx + rsi + 4]
movaps xmm0, xmm1
subss xmm0, xmm2
comiss xmm5, xmm0
ja 0x14005cc82
mov rax, qword [r15 + 0x4038]
addss xmm2, xmm1
comiss xmm2, dword [rax + 0x34]
jbe 0x14005ccef
movss xmm0, dword [rbx + rdi + 4]
xorps xmm0, xmm4
movss dword [rbx + rdi + 4], xmm0
lea rcx, [rsp + 0x20]
call fcn.140069ba0
mov r8d, eax
mov eax, 0x6b1490ab
mul r8d
mov ecx, r8d
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 8
cmp ecx, 0xb58a48
jae 0x14005cc91
mov eax, 0x6b1490ab
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 8
imul eax, eax, 0x169
sub r8d, eax
and r8d, 1
lea eax, [r8*2 - 1]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + rdi], xmm0
mov rcx, qword [0x1411c23f0]
inc ebp
mov rsi, qword [0x1411c23e8]
add rbx, 8
sub rcx, rsi
movsxd rax, ebp
sar rcx, 3
add r14, 4
cmp rax, rcx
jb 0x14005cb70
movaps xmm6, xmmword [rsp + 0x13b0]
mov r15, qword [rsp + 0x13c0]
mov r14, qword [rsp + 0x13f0]
mov rdi, qword [rsp + 0x13e8]
mov rbx, qword [rsp + 0x13e0]
add rsp, 0x13c8
pop rsi
pop rbp
ret
Function at 0x14005d0a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x13b0
call fcn.1400d4a90
sub rsp, rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, 0x270
jb 0x14005d0d0
xor ebx, ebx
mov dword [rsp + 0x20], 0x270
lea edi, [rbx - 1]
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140069ba0
mov r8d, eax
mov eax, 0xf2805af1
mul r8d
shr edx, 0xa
cmp edx, 0x3ca016
jae 0x14005d100
mov eax, 0xf2805af1
mul r8d
shr edx, 0xa
imul ecx, edx, 0x439
sub r8d, ecx
movd xmm1, r8d
cvtdq2ps xmm1, xmm1
nop dword [rax]
lea rcx, [rsp + 0x20]
call fcn.140069ba0
mov ecx, eax
mov eax, 0x422a20d3
mul ecx
shr edx, 9
cmp edx, 0x211510
jae 0x14005d140
mov eax, 0x422a20d3
movss dword [rsp + 0x13cc], xmm1
mul ecx
shr edx, 9
imul eax, edx, 0x7bd
mov rdx, qword [0x1411c23f0]
sub ecx, eax
cmp rdx, qword [0x1411c23f8]
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x13c8], xmm0
je 0x14005d1b0
movsd xmm0, qword [rsp + 0x13c8]
movsd qword [rdx], xmm0
add qword [0x1411c23f0], 8
jmp 0x14005d1c4
lea r8, [rsp + 0x13c8]
lea rcx, [0x1411c23e8]
call fcn.140069880
lea rcx, [rsp + 0x20]
call fcn.140069ba0
and eax, 1
lea rcx, [rsp + 0x20]
lea eax, [rax*2 - 1]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.140069ba0
mov rdx, qword [0x1411c2408]
test al, 1
mov eax, 1
cmove eax, edi
cmp rdx, qword [0x1411c2410]
movss dword [rsp + 0x13d4], xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x13d0], xmm0
je 0x14005d233
movsd xmm0, qword [rsp + 0x13d0]
movsd qword [rdx], xmm0
add qword [0x1411c2408], 8
jmp 0x14005d247
lea r8, [rsp + 0x13d0]
lea rcx, [0x1411c2400]
call fcn.140069880
mov rdx, qword [0x1411c2420]
cmp rdx, qword [0x1411c2428]
mov dword [rsp + 0x13c0], 3
je 0x14005d272
mov dword [rdx], 3
add qword [0x1411c2420], 4
jmp 0x14005d27f
lea r8, [rsp + 0x13c0]
call fcn.1400696d0
inc ebx
cmp ebx, 0x96
jl 0x14005d100
mov rbx, qword [rsp + 0x13d8]
add rsp, 0x13b0
pop rdi
ret

Function at 0x14005dc40
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov r8, rcx
jb 0x14005dc5a
mov r8, qword [rcx]
movzx eax, dl
xor edi, edi
mov dword [rsp + 0x28], eax
lea rdx, str.runas
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14005dcb5
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14005dcb0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005dccf
mov rcx, r8
call fcn.1400d43b4
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3