joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001fc8
Capabilities:
Get common file path
Terminate process

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140002018
mov ecx, 0x3a99
call fcn.140005310
mov rcx, rax
mov edx, 0x60
call fcn.140003d44
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, str.KERNELBASE.DLL
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_LoadLibraryW]
mov qword [0x14002bdc8], rax
test rax, rax
jne 0x140002062
lea r8d, [rax + 0x30]
mov ecx, 0x406
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepsys.cpp
call fcn.140005a6c
mov rax, qword [0x14002bdc8]
lea rdx, str.EnumDeviceDrivers
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x14002bdd0], rax
test rax, rax
jne 0x140002093
lea r8d, [rax + 0x37]
mov ecx, 0x407
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepsys.cpp
call fcn.140005a6c
mov rcx, qword [0x14002bdc8]
lea rdx, str.GetDeviceDriverBaseNameW
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x14002bdc0], rax
test rax, rax
jne 0x1400020c8
lea r8d, [rax + 0x3e]
mov ecx, 0x407
lea rdx, str.D:_a_work1_s_src_vctoolsCompilerUtc_src_toolspogopogosweep_sweepsys.cpp
call fcn.140005a6c
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140002e50
add rsp, 0x248
ret
Function at 0x140005310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x14000bd70]
xor edi, edi
mov ebx, ecx
mov esi, 1
test rax, rax
jne 0x140005360
cmp byte [0x14000bd78], dil
jne 0x140005360
xor edx, edx
xor ecx, ecx
call fcn.140004a3c
movzx ecx, byte [0x14000bd78]
test rax, rax
mov qword [0x14000bd70], rax
cmove ecx, esi
mov byte [0x14000bd78], cl
mov ecx, ebx
xor r9d, r9d
sar ecx, 4
add cx, si
movzx r8d, cx
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
test rax, rax
je 0x1400053c4
mov rcx, qword [0x14000bd70]
mov rdx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rcx, rax
test rax, rax
je 0x1400053c4
and ebx, 0x8000000f
jge 0x1400053a8
sub ebx, esi
or ebx, 0xfffffff0
add ebx, esi
test ebx, ebx
je 0x1400053bb
movzx eax, word [rcx]
lea rcx, [rcx + rax*2]
add rcx, 2
sub ebx, esi
jne 0x1400053ac
lea rax, [rcx + 2]
cmp word [rcx], di
jne 0x1400053cb
lea rax, [0x140006e4c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140005478
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
xor r8d, r8d
lea rcx, str.VS_UNICODE_OUTPUT
xor edx, edx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400054d9
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str.VS_UNICODE_OUTPUT
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
mov qword [rbx], rax
mov eax, 1
jmp 0x1400054db
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140002e50
add rsp, 0xb0
pop rbx
ret
Function at 0x1400054f4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbp, rdx
lea rsi, [rsp + 0x60]
mov r14, rcx
call qword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
mov ecx, eax
lea rdx, [rsp + 0x40]
mov r15d, eax
call qword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetCPInfo]
or rdi, 0xffffffffffffffff
mov rbx, rdi
xor r12d, r12d
inc rbx
cmp word [rbp + rbx*2], r12w
jne 0x14000554a
imul ebx, dword [rsp + 0x40]
inc ebx
cmp ebx, 0x100
jle 0x140005595
movsxd rcx, ebx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x140005595
mov ecx, 0x2720
call fcn.140005310
lea ebx, [rsi + 2]
mov rcx, rax
mov edx, ebx
call fcn.140003d44
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x38], r12
mov r9d, edi
mov qword [rsp + 0x30], r12
mov r8, rbp
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, r15d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
cmp ebx, 0x100
jle 0x1400055df
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
inc rdi
cmp word [rbp + rdi*2], r12w
jne 0x1400055df
mov eax, edi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140002e50
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140005618
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
movsxd rdi, edx
mov rbx, rcx
cmp edi, 1
ja 0x1400056e5
lea r15, [0x140000000]
xor ebp, ebp
cmp dword [r15 + rdi*4 + 0xbd80], ebp
jne 0x140005678
lea ecx, [rbp + 1]
test edx, edx
je 0x140005656
lea ecx, [rbp + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call fcn.14000542c
mov dword [r15 + rdi*4 + 0xbd88], eax
mov dword [r15 + rdi*4 + 0xbd80], 1
cmp dword [r15 + rdi*4 + 0xbd88], ebp
je 0x14000568d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__cputws]
jmp 0x1400056e5
lea rcx, [rsp + 0x60]
call fcn.140005478
test eax, eax
je 0x1400056c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14000569f
mov rcx, qword [rsp + 0x60]
lea r8d, [rax + rax]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbp
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
jmp 0x1400056e5
mov ecx, 1
test edi, edi
je 0x1400056d4
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
mov rdx, rbx
call fcn.1400054f4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x6d7d65e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d6768
mov rax, qword [0x6d7f75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d662c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d66b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d6610
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d679d
mov rax, qword [0x6d7f75e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d6780
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d66ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d6710
add dword [0x6d7f75e4], 1
cmp edi, 8
jae 0x6d7d66e3
test dil, 4
jne 0x6d7d6754
test edi, edi
je 0x6d7d66d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d676f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d66d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d66fc
jmp 0x6d7d66d8
add rsi, qword [0x6d7f75e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d66ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d66d8
xor esi, esi
jmp 0x6d7d6637
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d66d8
mov rax, qword [0x6d7f75e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d6ef0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f78c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f78a0]
test rbx, rbx
je 0x6d7d6f44
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d6f3b
test rsi, rsi
je 0x6d7d6f3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d6f20
lea rcx, [0x6d7f78c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d7180
Capabilities:
Parse pe header

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

Function at 0x6d7d71a0
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 0x6d7d71e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d71d8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d71e3
add rax, 0x28
cmp rax, r9
jne 0x6d7d71c4
xor eax, eax
ret

Function at 0x6d7d7280
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d73f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d7410
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7408
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d746d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d7464
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d7474
add rax, 0x28
cmp rax, r9
jne 0x6d7d7450
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d7490
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d74fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d74fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d74fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d74fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d74f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d7505
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d74e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d7518
jmp 0x6d7d74fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d7526
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d74fe
test r9d, r9d
jg 0x6d7d7510
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d7860
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140007880
Capabilities:
Generate random numbers using a mersenne twister

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

Function at 0x140007ed0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x140007f09
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
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 0x140008053
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x140007f33
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x140007f3b
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x140007ffb
cmp qword [rsp + 0x28], 0
jle 0x140007ffb
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x140007f73
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.14000bb90
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x140008043
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x140008043
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x14000aa00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
je 0x14000aa3d
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000aa44
mov al, 1
jmp 0x14000abc5
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x38], 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x60]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x14000aa98
mov dword [rsp + 0x3c], 1
jmp 0x14000aaa0
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14000aab9
xor al, al
jmp 0x14000abc5
mov qword [rsp + 0x70], 0x20
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0xc0]
add rcx, 0x74
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x80]
mov rdx, rcx
mov rcx, qword [rsp + 0x68]
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 + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14000ab2c
cmp dword [rsp + 0x34], 1
je 0x14000ab38
cmp dword [rsp + 0x34], 3
je 0x14000abb3
jmp 0x14000abc3
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x14000ab8a
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x50], rax
je 0x14000ab8a
xor al, al
jmp 0x14000abc5
mov rax, qword [rsp + 0xc0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000aba4
mov dword [rsp + 0x40], 1
jmp 0x14000abac
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
jmp 0x14000abc5
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000abc5
xor al, al
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140033050
add rsp, 0xb8
ret
Function at 0x140010450
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x80000000
cmp dword [rsp + 0x80], 0x80000000
jae 0x1400104aa
mov eax, dword [rsp + 0x80]
add eax, 0x80000000
mov dword [rsp + 0x20], eax
jmp 0x1400104ba
mov eax, dword [rsp + 0x80]
sub eax, 0x80000000
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x44], 0x80000000
cmp dword [rsp + 0x88], 0x80000000
jae 0x1400104e3
mov eax, dword [rsp + 0x88]
add eax, 0x80000000
mov dword [rsp + 0x24], eax
jmp 0x1400104f3
mov eax, dword [rsp + 0x88]
sub eax, 0x80000000
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
cmp eax, 0xffffffff
jne 0x14001052f
mov rcx, qword [rsp + 0x50]
call fcn.140011000
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
ja 0x140010523
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x3c], eax
jmp 0x140010525
jmp 0x140010504
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x34], eax
jmp 0x14001054d
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
inc eax
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140010ed0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x48], 0x80000000
cmp dword [rsp + 0x28], 0x80000000
jae 0x140010580
mov eax, dword [rsp + 0x28]
add eax, 0x80000000
mov dword [rsp + 0x38], eax
jmp 0x14001058d
mov eax, dword [rsp + 0x28]
sub eax, 0x80000000
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140033050
add rsp, 0x68
ret
Function at 0x140011000
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 0x140011022
mov rcx, qword [rsp + 0x40]
call fcn.1400110d0
jmp 0x140011039
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140011039
mov rcx, qword [rsp + 0x40]
call fcn.140011180
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 0x1400110d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x1400110f1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140011175
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 0x140011140
mov dword [rsp + 4], 0x9908b0df
jmp 0x140011148
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 0x1400110e4
add rsp, 0x18
ret