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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040bbf0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0040bc00]
mov dword [rax], 1
mov rax, qword [0x0040bc10]
mov dword [rax], 1
mov rax, qword [0x0040bbe0]
mov dword [rax], 1
mov rax, qword [0x0040ba90]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0040bbd0]
mov dword [0x0040f008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040bb90]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040b9c0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x4028f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040f6e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402a78
mov rax, qword [0x0040f6e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40293c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4029c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402920
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402aad
mov rax, qword [0x0040f6e8]
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 [0x0040f6e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402a90
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4029be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402a20
add dword [0x0040f6e4], 1
cmp edi, 8
jae 0x4029f3
test dil, 4
jne 0x402a64
test edi, edi
je 0x4029e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402a7f
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 0x4029e8
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 0x402a0c
jmp 0x4029e8
add rsi, qword [0x0040f6e8]
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 0x4029be
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 0x4029e8
xor esi, esi
jmp 0x402947
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4029e8
mov rax, qword [0x0040f6e8]
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 0x403200
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040f9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040f9a0]
test rbx, rbx
je 0x403254
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 0x40324b
test rsi, rsi
je 0x40324b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403230
lea rcx, [0x0040f9c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403490
Capabilities:
Parse pe header

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

Function at 0x4034b0
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 0x4034f1
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 0x4034e8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4034f3
add rax, 0x28
cmp rax, r9
jne 0x4034d4
xor eax, eax
ret

Function at 0x403590
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040ba90]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4035fd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4035fd
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 0x4035fd
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 0x4035f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4035ff
add rax, 0x28
cmp rax, r9
jne 0x4035e0
xor eax, eax
add rsp, 0x28
ret

Function at 0x403700
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0040ba90]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403720
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403718
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 0x40377d
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 0x403774
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403784
add rax, 0x28
cmp rax, r9
jne 0x403760
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4037a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0040ba90]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40380e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40380e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40380e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40380e
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 0x403805
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403815
add rcx, 0x28
cmp rcx, rax
jne 0x4037f0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403828
jmp 0x40380e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403836
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40380e
test r9d, r9d
jg 0x403820
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403850
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x2c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x403942
mov eax, dword [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [rax + 1]
call r12
movsxd rbx, ebx
mov r13, qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, 8
shl rbx, 3
mov rcx, rax
mov r8, rbx
call r13
mov rbp, rax
test rax, rax
je 0x403942
mov edx, dword [rsp + 0x2c]
test edx, edx
jle 0x403983
xor ebx, ebx
lea r15, str.UTF_16LE
jmp 0x403919
mov rcx, rax
call sym.SDL_strlen
mov esi, eax
call r12
lea r8, [rsi + 1]
mov edx, 8
mov rcx, rax
call r13
mov qword [rbp + rbx*8], rax
mov rcx, rax
test rax, rax
je 0x403942
mov r8, rsi
mov rdx, r14
call sym.SDL_memcpy
mov rcx, r14
call sym.SDL_free
lea rax, [rbx + 1]
cmp dword [rsp + 0x2c], eax
jle 0x403978
mov rbx, rax
mov rcx, qword [rdi + rbx*8]
call sym.SDL_wcslen
mov r8, qword [rdi + rbx*8]
mov rdx, r15
lea rcx, str.UTF_8
lea r9, [rax + rax + 2]
call sym.SDL_iconv_string
mov r14, rax
test rax, rax
jne 0x4038d0
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
mov ecx, 0x10
xor r13d, r13d
lea rdx, str.Fatal_Error
call sym.SDL_ShowSimpleMessageBox
mov eax, r13d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add ebx, 1
movsxd rbx, ebx
lea rax, [rbp + rbx*8]
mov rcx, rdi
mov qword [rax], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call sym.SDL_SetMainReady
mov ecx, dword [rsp + 0x2c]
mov rdx, rbp
call sym.SDL_main
mov rdi, qword [sym.imp.KERNEL32.dll_HeapFree]
mov r13d, eax
mov eax, dword [rsp + 0x2c]
test eax, eax
jle 0x4039dc
nop dword [rax + rax]
mov rsi, qword [rbp + rbx*8]
add rbx, 1
call r12
xor edx, edx
mov rcx, rax
mov r8, rsi
call rdi
cmp dword [rsp + 0x2c], ebx
jg 0x4039c0
call r12
mov r8, rbp
xor edx, edx
mov rcx, rax
call rdi
jmp 0x403960
Function at 0x4048f0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x404945
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x404930
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x4049c0
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
mov r8d, 1
cmovl r12d, edx
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
add r12d, 1
mov dword [rbx + 0xc], eax
call sym.__pformat_emit_float
mov ecx, dword [rbx + 8]
mov rdx, rbx
mov eax, dword [rbx + 0x2c]
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call sym.__pformat_putc
mov rdx, rbx
mov rcx, rsi
add dword [rbx + 0xc], r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.__pformat_int.isra.0
mov eax, dword [0x0040a080]
cmp eax, 0xffffffff
je 0x4049f6
test eax, eax
je 0x4049e6
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x40494d
mov dword [0x0040a080], 0
call sym._get_output_format
mov edx, 3
test al, 1
jne 0x4049cf
jmp 0x4049d4
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sym.getenv
test rax, rax
je 0x4049dc
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
ja 0x4049dc
mov dword [0x0040a080], 1
jmp 0x4049cf

Function at 0x4090c0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call sym.__main
mov rax, qword [0x0040bb00]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x0040baf0]
mov r8, qword [rax]
mov rax, qword [0x0040bae0]
mov rcx, qword [rax]
add rsp, 0x28
jmp dbg.WinMain

Function at 0x409100
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 0x140070a70
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1402979a8]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140070ac7
jnp 0x140070b2c
ucomisd xmm0, xmm6
jne 0x140070ad3
jnp 0x140070c66
invalid
invalid
invalid
invalid
invalid
Function at 0x14010b2a0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov rsi, rcx
mov rax, qword [0x14028f028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], r14
movaps xmm6, xmmword [0x140257270]
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov ecx, ebx
mov r9d, 0x9c
call fcn.14007e2d0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14008e970
mov qword [rbx], r14
mov rcx, qword [rsi]
lea rdi, [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, eax
mov rbx, qword [rdi]
test byte [0x140291180], 0x19
jne 0x14010b384
xor edi, edi
cmp esi, 1
sbb rdi, rdi
or rdi, rbx
lea rcx, [rsp + 0x60]
call fcn.14007d180
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400ccfe0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r14
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140291180]
lea r9, [0x14025c94b]
mov rcx, rdi
mov dl, 0x45
call fcn.140086650
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14010b347
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14010b347
Function at 0x1400026f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], r8b
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x34]
lea r8d, [r9 - 0x3f]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x30]
mov r9d, 1
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002787
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400027c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], r8w
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x34]
lea r8d, [r9 - 0x3e]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x30]
mov r9d, 2
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002858
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x3c]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x34]
mov r9d, 4
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002927
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
movss dword [rsp + 0x34], xmm2
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x3c]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x34]
mov r9d, 4
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x1400029f8
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
movsd qword [rsp + 0x38], xmm2
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x38]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x38]
mov r9d, 8
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002ac8
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140002b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r8
mov rdi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x40
mov rdx, rdi
mov rbx, rax
lea rax, [rsp + 0x30]
lea r8d, [r9 - 0x38]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea r8, [rsp + 0x38]
mov r9d, 8
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x18], 0x10
jb 0x140002b97
mov rcx, qword [rsi]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsi + 0x10], 0
mov eax, edi
mov byte [rsi], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000e1a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400f32b0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edi, edi
mov rbp, rdx
mov rdx, qword [rsp + 0xc0]
mov r15d, r9d
mov r14, r8
mov ebx, ecx
mov qword [rsp + 0x50], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x38], dil
cmp byte [rdx], dil
jne 0x14000e1ee
mov r8d, edi
jmp 0x14000e1fb
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], dil
jne 0x14000e1f2
lea rcx, [rsp + 0x38]
call fcn.14000b7d0
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp qword [rsp + 0x50], 0x10
mov rbx, qword [rsp + 0x48]
mov r8d, 5
lea rcx, [rsp + 0x38]
mov rsi, rax
cmovae rcx, qword [rsp + 0x38]
cmp rbx, r8
mov dword [rsp + 0x30], edi
cmovb r8, rbx
test r8, r8
jne 0x14000e248
mov eax, edi
jmp 0x14000e254
lea rdx, [0x140013314]
call sub.MSVCR110.dll_memcmp
cdqe
test rax, rax
jne 0x14000e266
cmp rbx, 5
jb 0x14000e2a2
mov eax, edi
setne al
test eax, eax
jne 0x14000e2a2
lea rax, [rsp + 0x30]
mov r9d, 0x40
mov r8, r15
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9, r15
mov r8, r14
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 0x10
jb 0x14000e2bd
mov rcx, qword [rsp + 0x38]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret