joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004cb7d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004cb7e0]
mov dword [rax], 1
mov rax, qword [0x004cb7f0]
mov dword [rax], 1
mov rax, qword [0x004cb7c0]
mov dword [rax], 1
mov rax, qword [0x004cb690]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004cb7b0]
mov dword [0x004f400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004cb770]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004caae0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x402280
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x268
mov rax, rcx
lea rdx, [rsp + 0x60]
mov r8, rcx
mov qword [rsp + 0x260], r8
mov dword [rsp + 0x5c], 0x100
mov qword [rsp + 0x40], rcx
mov rcx, rdx
lea rdx, [rsp + 0x5c]
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 0
je 0x402315
lea rax, [rsp + 0x58]
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.0046b610
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x4022ee
lea rcx, [rsp + 0x58]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x402369
lea rax, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.0046b610
lea rdx, [0x004c606c]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x402342
lea rcx, [rsp + 0x48]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x402369
mov rax, qword [rsp + 0x38]
add rsp, 0x268
ret

Function at 0x402390
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x268
mov rax, rcx
lea rdx, [rsp + 0x60]
mov r8, rcx
mov qword [rsp + 0x260], r8
mov dword [rsp + 0x5c], 0x100
mov qword [rsp + 0x40], rcx
mov rcx, rdx
lea rdx, [rsp + 0x5c]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp eax, 0
je 0x402425
lea rax, [rsp + 0x58]
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.0046b610
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x4023fe
lea rcx, [rsp + 0x58]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x402479
lea rax, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.0046b610
lea rdx, [0x004c606c]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x402452
lea rcx, [rsp + 0x48]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x402479
mov rax, qword [rsp + 0x38]
add rsp, 0x268
ret
Function at 0x4024a0
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x278
mov rax, rcx
lea rdx, [rsp + 0x60]
mov r8, rcx
mov qword [rsp + 0x270], r8
mov dword [rsp + 0x26c], 0x104
mov r9d, 2
mov qword [rsp + 0x40], rcx
mov ecx, r9d
lea r8, [rsp + 0x26c]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
cmp eax, 0
je 0x402541
lea rax, [rsp + 0x58]
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.0046b610
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x30]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x40251a
lea rcx, [rsp + 0x58]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x402595
lea rax, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.0046b610
lea rdx, [0x004c606c]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x28]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
jmp 0x40256e
lea rcx, [rsp + 0x48]
call sym.std::allocator_wchar_t_::allocator__
jmp 0x402595
mov rax, qword [rsp + 0x38]
add rsp, 0x278
ret
Function at 0x402c50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x98
lea rax, [rsp + 0x90]
mov rcx, rax
mov qword [rsp + 0x60], rax
call method.std::unique_ptr_char_____std::default_delete_char______::unique_ptr_std.default_delete_char______void___
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
call sym.readFile_std::unique_ptr_char_____std::default_delete_char________long_long_
mov dword [rsp + 0x5c], eax
jmp 0x402c87
mov eax, dword [rsp + 0x5c]
cmp eax, 0
je 0x402cbc
mov ecx, 1
call sym.exit
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x7c], edx
lea rcx, [rsp + 0x90]
call method.std::unique_ptr_char_____std::default_delete_char______.unique_ptr__
jmp 0x402dc1
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x90]
call sym.xor_decrypt_std::unique_ptr_char_____std::default_delete_char________long_long_
jmp 0x402cd6
mov rdx, qword [rsp + 0x88]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call rax
mov qword [rsp + 0x50], rax
jmp 0x402cff
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x48], rcx
mov rcx, rdx
mov qword [rsp + 0x40], rdx
call method.std::unique_ptr_char_____std::default_delete_char______.get___const
mov r8, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
mov rdx, rax
call sym.memcpy
xor r9d, r9d
mov edx, r9d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
call method.std::unique_ptr_char_____std::default_delete_char______.reset_decltype_nullptr__
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x88]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 0x20
lea r9, [rsp + 0x6c]
call rax
jmp 0x402d78
mov r9, qword [rsp + 0x70]
mov rax, rsp
mov qword [rax + 0x28], 0
mov dword [rax + 0x20], 0
lea r8, [sym.run_void_]
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov edx, ecx
mov rcx, rdx
call rax
jmp 0x402dab
lea rcx, [rsp + 0x90]
call method.std::unique_ptr_char_____std::default_delete_char______.unique_ptr__
nop
add rsp, 0x98
ret
mov rcx, qword [rsp + 0x80]
call sym._Unwind_Resume
int3
Function at 0x40f2a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x40f310
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004f46b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40f4b8
mov rax, qword [0x004f46b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40f35c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40f3e7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40f340
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x40f4f2
mov rax, qword [0x004f46b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004f46b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40f501
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40f3e0
sub eax, 4
and eax, 0xfffffffb
jne 0x40f470
add dword [0x004f46b4], 1
cmp ebx, 8
jae 0x40f418
test bl, 4
jne 0x40f4c0
test ebx, ebx
je 0x40f409
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40f4e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40f409
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40f44a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004f46b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40f3e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x40f367
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40f409
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40f409
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x004f46b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x40fce0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004f49a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004f4980]
test rbx, rbx
je 0x40fd34
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40fd2b
test r12, r12
je 0x40fd2b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40fd10
lea rcx, [0x004f49a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40ff60
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x40ff70
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x40ff80
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40ffc5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40ffbc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x40ffc7
add rax, 0x28
cmp rax, r9
jne 0x40ffa8
xor eax, eax
ret

Function at 0x410070
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004cb690]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4100e9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4100e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x4100e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x4100dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4100e9
add r8, 0x28
cmp r8, r9
jne 0x4100c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x4101d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004cb690]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x41023f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41023f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x41023d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x410234
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x410248
add rax, 0x28
cmp rax, r9
jne 0x410220
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x410260
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004cb690]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x4102d8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4102d8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x4102d8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4102d8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x4102cc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x4102e0
add rdx, 0x28
cmp rdx, r10
jne 0x4102b8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x4102f0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x4102fe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4102d5
test r8d, r8d
jg 0x4102e8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x4103e0
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x410410
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x410450
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x410490
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4104a8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x41b870
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x41b8b8
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x004f5400], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x41b89f

Function at 0x41de40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x41de6c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x41eae0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004c5f40], 0
jne 0x41ebea
mov byte [0x004c5f40], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x41ebc0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x41ebb1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004c6241]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x41ebac
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x41eb7b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x41ec7f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x41ebe5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x41ebe5

Function at 0x47a000
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47a027
call rbp
cmp dword [rax], 4
jne 0x47a044
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47a020
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x48db80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
mov rdi, rcx
mov rcx, qword [rcx]
lea rsi, [rsp + 0x2c]
test rcx, rcx
jne 0x48dbbd
jmp 0x48dbfd
cdqe
add rsi, rax
sub rbx, rax
je 0x48dbf0
mov rcx, qword [rdi]
call sym.fileno
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
test eax, eax
jg 0x48dbb0
cmp eax, 0xffffffff
jne 0x48dbdf
call rbp
cmp dword [rax], 4
je 0x48dbba
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop dword [rax + rax]
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.00478d50
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x49a4a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x2c], 0x80000000
mov dword [rsp + 0x28], 0x7fffffff
mov qword [rsp + 0x20], 0
mov qword [rsp], rax
cmp qword [rsp + 0x20], 0xe3
jae 0x49a55a
xor eax, eax
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp]
mov r8d, dword [rdx + rcx*4]
and r8d, 0x80000000
mov rcx, qword [rsp + 0x20]
mov r9d, dword [rdx + rcx*4 + 4]
and r9d, 0x7fffffff
or r8d, r9d
mov dword [rsp + 0x1c], r8d
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rdx + rcx*4 + 0x634]
mov r9d, dword [rsp + 0x1c]
shr r9d, 1
xor r8d, r9d
mov r9d, dword [rsp + 0x1c]
and r9d, 1
cmp r9d, 0
mov r9d, 0x9908b0df
cmovne eax, r9d
xor r8d, eax
mov rcx, qword [rsp + 0x20]
mov dword [rdx + rcx*4], r8d
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x49a4cb
mov qword [rsp + 0x10], 0xe3
cmp qword [rsp + 0x10], 0x26f
jae 0x49a5f2
xor eax, eax
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp]
mov r8d, dword [rdx + rcx*4]
and r8d, 0x80000000
mov rcx, qword [rsp + 0x10]
mov r9d, dword [rdx + rcx*4 + 4]
and r9d, 0x7fffffff
or r8d, r9d
mov dword [rsp + 0xc], r8d
mov rcx, qword [rsp + 0x10]
mov r8d, dword [rdx + rcx*4 - 0x38c]
mov r9d, dword [rsp + 0xc]
shr r9d, 1
xor r8d, r9d
mov r9d, dword [rsp + 0xc]
and r9d, 1
cmp r9d, 0
mov r9d, 0x9908b0df
cmovne eax, r9d
xor r8d, eax
mov rcx, qword [rsp + 0x10]
mov dword [rdx + rcx*4], r8d
mov rax, qword [rsp + 0x10]
add rax, 1
mov qword [rsp + 0x10], rax
jmp 0x49a563
xor eax, eax
mov rcx, qword [rsp]
mov edx, dword [rcx + 0x9bc]
and edx, 0x80000000
mov r8d, dword [rcx]
and r8d, 0x7fffffff
or edx, r8d
mov dword [rsp + 8], edx
mov edx, dword [rcx + 0x630]
mov r8d, dword [rsp + 8]
shr r8d, 1
xor edx, r8d
mov r8d, dword [rsp + 8]
and r8d, 1
cmp r8d, 0
mov r8d, 0x9908b0df
cmovne eax, r8d
xor edx, eax
mov dword [rcx + 0x9bc], edx
mov qword [rcx + 0x9c0], 0
add rsp, 0x38
ret
Function at 0x49a680
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x3c], edx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x3c]
mov qword [rsp + 0x20], rax
call method.unsigned_int_std::__detail.__mod_unsigned_int__0u__1u__0u__unsigned_int_
mov r8, qword [rsp + 0x20]
mov dword [r8], eax
mov qword [rsp + 0x30], 1
cmp qword [rsp + 0x30], 0x270
jae 0x49a732
mov rax, qword [rsp + 0x30]
sub rax, 1
mov rcx, qword [rsp + 0x20]
mov edx, dword [rcx + rax*4]
mov dword [rsp + 0x2c], edx
mov edx, dword [rsp + 0x2c]
shr edx, 0x1e
xor edx, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], edx
imul edx, dword [rsp + 0x2c], 0x6c078965
mov dword [rsp + 0x2c], edx
mov rax, qword [rsp + 0x30]
mov ecx, eax
call method.unsigned_int_std::__detail.__mod_unsigned_int__624u__1u__0u__unsigned_int_
add eax, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], eax
mov ecx, dword [rsp + 0x2c]
call method.unsigned_int_std::__detail.__mod_unsigned_int__0u__1u__0u__unsigned_int_
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x20]
mov dword [r9 + r8*4], eax
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x49a6b1
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x9c0], 0x270
add rsp, 0x48
ret

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

Disassembly:
mov r8d, 1
mov dword [rcx], edx
jmp 0x49a7c5
mov edx, dword [rcx + r8*4 - 4]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul eax, eax, 0x6c078965
add eax, r8d
mov dword [rcx + r8*4], eax
add r8, 1
cmp r8, 0x270
jne 0x49a7c0
mov qword [rcx + 0x9c0], 0x270
ret

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

Disassembly:
mov r8d, 0x1571
mov edx, 1
mov dword [rcx], 0x1571
jmp 0x49a81d
mov r8d, dword [rcx + rdx*4 - 4]
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rcx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x49a818
mov qword [rcx + 0x9c0], 0x270
ret

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

Disassembly:
mov r8d, 0x1571
mov edx, 1
mov dword [rcx], 0x1571
jmp 0x49a89d
mov r8d, dword [rcx + rdx*4 - 4]
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rcx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x49a898
mov qword [rcx + 0x9c0], 0x270
ret
Function at 0x49a8d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x9c0], 0x270
mov qword [rsp + 0x20], rax
jb 0x49a8fe
mov rcx, qword [rsp + 0x20]
call fcn.0049a4a0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x9c0]
mov rdx, rcx
add rdx, 1
mov qword [rax + 0x9c0], rdx
mov r8d, dword [rax + rcx*4]
mov dword [rsp + 0x2c], r8d
mov r8d, dword [rsp + 0x2c]
shr r8d, 0xb
xor r8d, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], r8d
mov r8d, dword [rsp + 0x2c]
shl r8d, 7
and r8d, 0x9d2c5680
xor r8d, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], r8d
mov r8d, dword [rsp + 0x2c]
shl r8d, 0xf
and r8d, 0xefc60000
xor r8d, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], r8d
mov r8d, dword [rsp + 0x2c]
shr r8d, 0x12
xor r8d, dword [rsp + 0x2c]
mov dword [rsp + 0x2c], r8d
mov r8d, dword [rsp + 0x2c]
mov eax, r8d
add rsp, 0x38
ret