joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014e70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001bdd0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001bdd0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140015b42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004a248]
test eax, eax
je 0x140015bda
lea rax, [0x14004a220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004a250]
mov qword [rbp - 8], rax
jmp 0x140015bbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015bb2
cmp qword [rbp - 0x10], 0
je 0x140015bb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140015b78
lea rax, [0x14004a220]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140015bdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015ce0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015d08
mov eax, 0
jmp 0x140015d56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140015d31
mov eax, 0
jmp 0x140015d56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140015d51
mov eax, 0
jmp 0x140015d56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140015d5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140015dda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015dd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015dd1
mov rax, qword [rbp - 8]
jmp 0x140015def
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015da4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd r12, dword [rcx + 0x3c]
xor r15d, r15d
mov rbp, rdx
mov rdi, rcx
mov r11d, r15d
mov ebx, dword [r12 + rcx + 0x88]
add rbx, rcx
mov r14d, dword [rbx + 0x24]
mov r10d, dword [rbx + 0x20]
add r14, rcx
add r10, rcx
cmp rdx, 0x10000
jae 0x14000107d
mov r8d, dword [rbx + 0x10]
movzx edx, bp
cmp edx, r8d
jb 0x1400011c5
mov ecx, dword [rbx + 0x14]
add ecx, r8d
cmp edx, ecx
jae 0x1400011c5
mov ecx, dword [rbx + 0x1c]
sub edx, r8d
add rcx, rdi
mov r11, qword [rcx + rdx*8]
jmp 0x1400010d7
mov esi, dword [rbx + 0x18]
mov r9d, r15d
test esi, esi
je 0x1400010da
nop word [rax + rax]
mov r8d, dword [r10]
mov rax, rbp
add r8, rdi
sub r8, rbp
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400010b3
inc rax
test ecx, ecx
jne 0x1400010a0
test edx, edx
je 0x1400010c5
inc r9d
add r10, 4
cmp r9d, esi
jb 0x140001090
jmp 0x1400010da
mov ecx, dword [rbx + 0x1c]
mov eax, r9d
add rcx, rdi
movzx edx, word [r14 + rax*2]
mov r11d, dword [rcx + rdx*4]
add r11, rdi
cmp r11, rbx
jb 0x1400011a3
mov eax, dword [r12 + rdi + 0x8c]
add rax, rbx
cmp r11, rax
jae 0x1400011a3
mov rcx, r11
call fcn.14000a898
mov rbp, rax
test rax, rax
je 0x1400011c5
mov edx, 0x2e
mov rcx, rax
call fcn.140006dec
mov r14, rax
mov byte [rax], r15b
mov rsi, qword gs:[0x60]
test rsi, rsi
je 0x14000116b
mov rax, qword [rsi + 0x18]
mov rdi, qword [rax + 0x20]
mov rbx, rdi
nop word [rax + rax]
mov rcx, qword [rdi + 0x50]
lea rdx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140001167
mov rbx, qword [rbx]
mov rax, qword [rsi + 0x18]
mov rdi, qword [rbx]
cmp rbx, qword [rax + 0x20]
jne 0x140001140
jmp 0x14000116b
mov r15, qword [rdi + 0x20]
lea rdx, str.LoadLibraryA
mov rcx, r15
call section..text
test rax, rax
je 0x1400011c5
mov rcx, rbp
call rax
mov rcx, rbp
mov rbx, rax
call fcn.14000a910
test rbx, rbx
je 0x1400011c5
lea rdx, [r14 + 1]
mov rcx, rbx
call section..text
mov r11, rax
mov rax, r11
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
xor eax, eax
jmp 0x1400011a6
Function at 0x140001e60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x14001e018]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov edi, r8d
mov dword [rsp + 0x30], r14d
mov rsi, rdx
mov rbp, rcx
mov ebx, r14d
test rdx, rdx
je 0x140001ef8
test r8d, r8d
je 0x140001ee3
nop dword [rax + rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r14
add rdx, rsi
lea r9, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001ef8
mov eax, dword [0x14001ffc4]
add ebx, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], r14d
mov dword [0x14001ffc4], eax
cmp eax, 0xa
je 0x140001ef1
cmp edi, ebx
ja 0x140001ea0
mov dword [0x14001ffc4], r14d
mov eax, 1
jmp 0x140001efa
mov dword [0x14001ffc4], r14d
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140005d50
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b574
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b3a0
Function at 0x140029b84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
movabs rcx, 0x8f46f0ec0f918d8e
movabs rdx, 0x1000
movabs r8, 0x3ed7
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x10]
add rdx, rax
add r8, rax
mov r9, rdx
xor qword [rdx], rcx
add rdx, 8
cmp rdx, r8
jb 0x140004034
jmp r9
Function at 0x1411ad058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411ad1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1411ad089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ad06f
add dl, dl
jne 0x1411ad096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ad0f6
xor eax, eax
add dl, dl
jne 0x1411ad0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411ad1ad
add dl, dl
jne 0x1411ad0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411ad0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411ad07e
mov eax, 1
add dl, dl
jne 0x1411ad106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411ad113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ad0fb
sub eax, ebx
mov ebx, 1
jne 0x1411ad14c
mov ecx, 1
add dl, dl
jne 0x1411ad12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411ad13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ad123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ad07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411ad168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411ad175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411ad15d
cmp eax, 0x7d00
jae 0x1411ad19b
cmp eax, 0x500
jb 0x1411ad196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ad07e
cmp eax, 0x7f
ja 0x1411ad19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411ad07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411ad1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1411ad07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400026f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14014ceb0]
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 [0x14014ceb0]
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 [0x14014ceb0]
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 [0x14014ceb0]
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 [0x14014ceb0]
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 [0x14014ceb0]
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 [0x14014ceb0]
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
Function at 0x14000fa60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x14014ceb0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, r8d
mov rbp, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
mov r12b, 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rdi
mov ebx, edi
movzx r15d, r12b
movzx r14d, r12b
test rax, rax
je 0x14000fcd2
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x50], bl
cmp byte [rsi], bl
jne 0x14000fade
mov r8d, edi
jmp 0x14000faeb
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x14000fae2
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.14000b7d0
cmp qword [rsp + 0x68], 0x10
mov rbx, qword [rsp + 0x60]
mov r8d, 4
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
cmp rbx, r8
cmovb r8, rbx
test r8, r8
jne 0x14000fb24
mov eax, edi
jmp 0x14000fb30
lea rdx, [0x14001330c]
call sub.MSVCR110.dll_memcmp
cdqe
test rax, rax
jne 0x14000fb42
cmp rbx, 4
jb 0x14000fba9
mov eax, edi
setne al
test eax, eax
jne 0x14000fba9
mov rsi, r13
mov r13, qword [rsp + 0x38]
nop
mov r9d, 0x3000
mov r8, rsi
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x14000fb7b
inc edi
cmp edi, 5
jl 0x14000fb50
xor dil, dil
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0x10
jb 0x14000fb99
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test dil, dil
je 0x14000fcd2
xor eax, eax
jmp 0x14000fcd5
test rbp, rbp
jne 0x14000fbb3
mov ebp, 0x7fff
mov rax, r13
mov r13, qword [rsp + 0x38]
mov rsi, rbp
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov r9d, 0x3000
mov r8, rax
mov rdx, rsi
mov rcx, r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x14000fc1b
cmp rax, rsi
je 0x14000fc1b
sub rax, rbp
cmp rax, 0x7fffffff
jb 0x14000fb7e
mov rax, rbp
sub rax, rbx
cmp rax, 0x7fffffff
jb 0x14000fb7e
test r14b, r14b
je 0x14000fc65
test r12b, r12b
je 0x14000fcbc
mov rax, qword [rsp + 0x48]
test r15b, r15b
movzx r14d, r14b
cmovne r14d, edi
add rax, 0xffff
movabs rcx, 0x7fffffffffffffff
mov esi, eax
mov qword [rsp + 0x48], rax
add rsi, rbp
cmp rsi, rcx
jae 0x14000fc60
cmp rax, 0x7fffffff
jb 0x14000fcae
xor r12b, r12b
jmp 0x14000fcbc
test r15b, r15b
je 0x14000fcae
test r12b, r12b
mov ecx, 1
movzx r14d, r14b
cmovne r14d, ecx
mov rcx, qword [rsp + 0x30]
mov rsi, rbp
add rcx, 0xffff
mov eax, ecx
mov qword [rsp + 0x30], rcx
sub rsi, rax
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jae 0x14000fcab
cmp rcx, 0x7fffffff
jb 0x14000fcae
xor r15b, r15b
mov rax, qword [rsp + 0x40]
test r12b, r12b
jne 0x14000fbd0
mov rax, qword [rsp + 0x40]
test r15b, r15b
jne 0x14000fbd0
mov dil, 1
jmp 0x14000fb7e
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret