Function at 0x140012530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x420
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x9c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x1400250f4]
call fcn.140011433
lea rcx, str.InitSyscallList_n
call fcn.1400111f4
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012589
int3
lea rcx, str.ntdll.dll
call fcn.1400121c0
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
add rax, 0x88
mov qword [rbp + 0xa8], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax]
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xe8]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x104], eax
mov rax, qword [rbp + 0xe8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0xe8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
mov rax, qword [rbp + 0xe8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x168], rax
mov dword [rbp + 0x184], 0
mov eax, dword [rbp + 0x104]
dec eax
mov eax, eax
mov rcx, qword [rbp + 0x148]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
movzx eax, word [rax]
cmp eax, 0x775a
jne 0x1400126bd
mov eax, dword [rbp + 0x184]
inc eax
mov dword [rbp + 0x184], eax
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0x104], eax
cmp dword [rbp + 0x104], 0
jne 0x140012679
mov eax, dword [rbp + 0x184]
mov dword [0x14001f170], eax
mov eax, dword [0x14001f170]
imul rax, rax, 0x10
mov dword [rsp + 0x20], 4
mov r9d, 0x101000
mov r8, rax
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [0x14001f178], rax
cmp qword [0x14001f178], 0
jne 0x140012723
int3
mov dword [rbp + 0x184], 0
mov rax, qword [rbp + 0xe8]
mov eax, dword [rax + 0x18]
mov dword [rbp + 0x104], eax
mov rax, qword [0x14001f178]
mov qword [rbp + 0x1c8], rax
mov eax, dword [rbp + 0x104]
dec eax
mov eax, eax
mov rcx, qword [rbp + 0x148]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1e8]
movzx eax, word [rax]
cmp eax, 0x775a
jne 0x140012838
mov eax, dword [rbp + 0x104]
dec eax
mov eax, eax
mov rcx, qword [rbp + 0x168]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x128]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x204], eax
mov eax, dword [rbp + 0x204]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x184]
imul rcx, rcx, 0x10
mov rdx, qword [rbp + 0x1c8]
mov qword [rdx + rcx], rax
mov eax, dword [rbp + 0x184]
imul rax, rax, 0x10
mov rcx, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x1e8]
mov qword [rcx + rax + 8], rdx
mov eax, dword [rbp + 0x184]
imul rax, rax, 0x10
mov rcx, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0x48]
cmp qword [rcx + rax], rdx
jbe 0x14001281a
mov rdx, qword [rbp + 0x1e8]
lea rcx, str.out_s_n
call fcn.1400111f4
mov eax, dword [rbp + 0x184]
inc eax
mov dword [rbp + 0x184], eax
mov eax, dword [0x14001f170]
cmp dword [rbp + 0x184], eax
jne 0x140012838
jmp 0x140012853
mov eax, dword [rbp + 0x104]
dec eax
mov dword [rbp + 0x104], eax
cmp dword [rbp + 0x104], 0
jne 0x14001274b
mov dword [rbp + 0x184], 0
jmp 0x14001286d
mov eax, dword [rbp + 0x184]
inc eax
mov dword [rbp + 0x184], eax
mov eax, dword [0x14001f170]
dec eax
cmp dword [rbp + 0x184], eax
jae 0x14001298a
mov dword [rbp + 0x224], 0
jmp 0x14001289b
mov eax, dword [rbp + 0x224]
inc eax
mov dword [rbp + 0x224], eax
mov eax, dword [rbp + 0x184]
mov ecx, dword [0x14001f170]
sub ecx, eax
mov eax, ecx
dec eax
cmp dword [rbp + 0x224], eax
jae 0x140012985
mov eax, dword [rbp + 0x224]
imul rax, rax, 0x10
mov ecx, dword [rbp + 0x224]
inc ecx
mov ecx, ecx
imul rcx, rcx, 0x10
mov rdx, qword [rbp + 0x1c8]
mov r8, qword [rbp + 0x1c8]
mov rcx, qword [r8 + rcx]
cmp qword [rdx + rax], rcx
jbe 0x140012980
mov eax, dword [rbp + 0x224]
imul rax, rax, 0x10
lea rcx, [rbp + 0x248]
mov rdx, qword [rbp + 0x1c8]
mov rdi, rcx
lea rsi, [rdx + rax]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rbp + 0x224]
inc eax
mov eax, eax
imul rax, rax, 0x10
mov ecx, dword [rbp + 0x224]
imul rcx, rcx, 0x10
mov rdx, qword [rbp + 0x1c8]
mov rdi, qword [rbp + 0x1c8]
mov qword [rbp + 0x3e8], rdi
lea rdi, [rdx + rcx]
mov rcx, qword [rbp + 0x3e8]
lea rsi, [rcx + rax]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rbp + 0x224]
inc eax
mov eax, eax
imul rax, rax, 0x10
mov rcx, qword [rbp + 0x1c8]
lea rdx, [rbp + 0x248]
lea rdi, [rcx + rax]
mov rsi, rdx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
jmp 0x14001288d
jmp 0x14001285f
mov edx, dword [0x14001f170]
lea rcx, str.__InitSyscallList:_g_syscallList.count_d_n
call fcn.1400111f4
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bd80]
call fcn.1400113b1
mov rax, rdi
lea rsp, [rbp + 0x3f0]
pop rdi
pop rsi
pop rbp
ret