joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009610
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.14000a680
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x28]
call fcn.14000ba00
mov qword [rsp + 0x38], rax
jmp 0x140009650
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x20], rax
je 0x140009688
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov edx, eax
lea rcx, [0x14010ecf0]
call fcn.14000b9e0
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rax]
mov byte [rcx], al
jmp 0x140009643
add rsp, 0x48
ret

Function at 0x140009690
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.14000a680
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x28]
call fcn.14000ba00
mov qword [rsp + 0x38], rax
jmp 0x1400096d0
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x20], rax
je 0x140009708
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov edx, eax
lea rcx, [0x14010ebf0]
call fcn.14000b9e0
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rax]
mov byte [rcx], al
jmp 0x1400096c3
add rsp, 0x48
ret

Function at 0x1400098a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 1
jne 0x1400098bb
mov dword [rsp + 0x24], 1
jmp 0x140009907
mov rax, qword [rsp + 0x40]
dec rax
mov rcx, rax
call fcn.1400098a0
movzx eax, al
cmp eax, 0x80
jl 0x1400098df
mov dword [rsp + 0x20], 0x1b
jmp 0x1400098e7
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
dec rax
mov rcx, rax
call fcn.1400098a0
movzx eax, al
shl eax, 1
movzx eax, al
xor eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
movzx eax, byte [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x14000ab60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x14000ab99
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x14000ac87
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
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 qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x14000ac2f
cmp qword [rsp + 0x20], 0
jle 0x14000ac2f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x14000abd9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
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, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1400256a0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x14000ac77
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14000ac77
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x14000ac90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x14000acc4
xor eax, eax
jmp 0x14000aec0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000acf6
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
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 0x14000aec0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
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 + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14000ada7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140023dd0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
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, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.1400256a0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000aeb0
mov rcx, qword [rsp + 0x80]
call fcn.14000c680
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14000ae5d
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14000ae58
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000aec0
jmp 0x14000add3
cmp qword [rsp + 0x50], 0
jbe 0x14000aeb0
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400df4e0
add rsp, 0x78
ret
Function at 0x14000c740
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14012c040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000c77d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c784
mov al, 1
jmp 0x14000c8dc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140025770
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140025770
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140025730
movzx eax, al
test eax, eax
je 0x14000c7d9
xor al, al
jmp 0x14000c8dc
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000c849
cmp dword [rsp + 0x30], 1
je 0x14000c855
cmp dword [rsp + 0x30], 3
je 0x14000c8ca
jmp 0x14000c8da
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000c8a1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14000c8a1
xor al, al
jmp 0x14000c8dc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c8bb
mov dword [rsp + 0x34], 1
jmp 0x14000c8c3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000c8dc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000c8dc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400df4e0
add rsp, 0xa8
ret
Function at 0x140074530
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov eax, dword [rsp + 0x98]
and eax, 1
test eax, eax
jne 0x14007457e
mov r9b, 9
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x58]
call fcn.14007b770
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x20], 0x3c
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x21], 0x21
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x21]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x22], 0x5b
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x22]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x23], 0x43
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x23]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x24], 0x44
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x25], 0x41
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x25]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x26], 0x54
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x26]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x27], 0x41
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x27]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x28], 0x5b
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000a310
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000a2d0
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000a310
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14007b7f0
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x29], 0x5d
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x29]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x2a], 0x5d
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x2a]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x2b], 0x3e
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x2b]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret
Function at 0x140074ba0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov eax, dword [rsp + 0x98]
and eax, 1
test eax, eax
jne 0x140074bee
mov r9b, 9
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x58]
call fcn.14007b770
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x20], 0x3c
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x21], 0x21
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x21]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x22], 0x44
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x22]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x23], 0x4f
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x23]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x24], 0x43
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x25], 0x54
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x25]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x26], 0x59
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x26]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x27], 0x50
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x27]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x28], 0x45
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov byte [rsp + 0x29], 0x20
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x29]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000a310
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000a2d0
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000a310
mov qword [rsp + 0x50], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.14007b7f0
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x2a], 0x3e
lea rcx, [rsp + 0x88]
call fcn.14000a680
lea rdx, [rsp + 0x2a]
mov rcx, rax
call fcn.1400708c0
lea rcx, [rsp + 0x88]
call fcn.14000a680
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
add rsp, 0x78
ret
Function at 0x1400b05d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400b06a0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400b13d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x1400b13f2
mov rcx, qword [rsp + 0x40]
call fcn.1400b14a0
jmp 0x1400b1409
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x1400b1409
mov rcx, qword [rsp + 0x40]
call fcn.1400b1550
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400b14a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x1400b14c1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x1400b1545
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x1400b1510
mov dword [rsp + 4], 0x9908b0df
jmp 0x1400b1518
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400b14b4
add rsp, 0x18
ret
Function at 0x1400b1550
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x1400b1580
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x1400b1602
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400b15ce
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x1400b15d6
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400b1575
mov qword [rsp + 8], 0xe3
jmp 0x1400b161a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x1400b16a1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x1400b166b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x1400b1673
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400b160d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x1400b16f5
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x1400b16fd
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x1400b1f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
dec rax
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jge 0x1400b2045
mov rax, qword [rsp + 0x30]
lea rax, [rax + rax + 2]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
lea rax, [rax + rcx - 1]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x80]
call fcn.1400b18a0
movzx eax, al
test eax, eax
je 0x1400b2011
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
jmp 0x1400b1fac
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
jne 0x1400b209a
mov rax, qword [rsp + 0x70]
cqo
and rax, 1
xor rax, rdx
sub rax, rdx
test rax, rax
jne 0x1400b209a
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx - 1]
mov byte [rax], cl
mov rax, qword [rsp + 0x70]
dec rax
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400b22f0
add rsp, 0x58
ret
Function at 0x1400df0a4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400df0de
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400df0e3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400df12c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.zlibwapi.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x1400df12c
dec r8
sub rdx, 1
jne 0x1400df112
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400e0198
Capabilities:
Parse pe header

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