Function at 0x14004cb70
Capabilities:
Enumerate pe sections
Enumerate process modules
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6e0
xor r13d, r13d
mov dword [rsp + 0x720], r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x438
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14004d1ae
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x2d0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x730], 0
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x730]
mov r8d, 0x400
lea rdx, [rsp + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
jne 0x14004cc0e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004d1ae
mov eax, dword [rsp + 0x730]
shr eax, 3
mov dword [rsp + 0x50], eax
xor r15d, r15d
mov dword [rsp + 0x728], r15d
mov rcx, rsi
cmp r15d, eax
jge 0x14004d1a7
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], rax
movsxd rax, r15d
lea r12, [rsp + 0x2d0]
lea r12, [r12 + rax*8]
mov qword [rsp + 0x58], r12
mov r9d, Ordinal_27
lea r8, [rsp + 0x88]
mov rdx, qword [r12]
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
test eax, eax
je 0x14004d19b
mov ecx, dword [rsp + 0x90]
call fcn.1400d975c
mov rbx, rax
mov qword [rsp + 0x1b0], rax
mov qword [rsp + 0x80], 0
mov r9d, dword [rsp + 0x90]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r8, rbx
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x14004ccdc
mov rcx, rbx
call fcn.1400d9650
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x14004cc1f
movsxd rcx, dword [rbx + 0x3c]
add rcx, rbx
jne 0x14004ccf9
mov rcx, rbx
call fcn.1400d9650
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x14004cc1f
movzx r14d, word [rcx + 6]
mov dword [rsp + 0x738], r14d
movzx edi, word [rcx + 0x14]
add rcx, 0x18
add rdi, rcx
mov qword [rsp + 0x40], rdi
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x104
lea r8, [rsp + 0x1c0]
mov rdx, qword [r12]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
jne 0x14004cd5e
mov rcx, rbx
call fcn.1400d9650
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x14004cc1f
lea rax, [0x140102fe8]
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or r13d, 1
mov dword [rsp + 0x720], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0xb0], rax
mov byte [rsp + 0x12c], 0
mov byte [rsp + 0x121], 0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
xor ecx, ecx
mov qword [rsp + 0x130], rcx
mov rax, qword [0x1401b7628]
mov qword [rsp + 0x124], rax
mov qword [rsp + 0x118], rcx
mov r8d, reloc.WLDAP32.dll_Ordinal_33
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xb0]
call fcn.140076ee0
test rax, rax
jne 0x14004ce7b
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xa0]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
test al, al
je 0x14004cf0e
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xb0]
call fcn.140074600
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, rbx
call fcn.1400d9650
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x14004cc1f
xor eax, eax
mov dword [rsp + 0x38], eax
cmp eax, r14d
jge 0x14004d11b
xor ecx, ecx
lea rdx, str..text
nop word [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x14004d107
cmp rcx, 6
jne 0x14004cf30
mov r14d, dword [rdi + 0xc]
add r14, rbx
mov r15d, dword [rdi + 0x10]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
xor r13d, r13d
mov qword [rsp + 0x78], r13
test r15, r15
je 0x14004cf85
mov r8d, r15d
mov edx, 0xffffffe9
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x14004cf85
sub rdi, r14
jmp 0x14004cf8c
mov rdi, 0xffffffffffffffff
mov rsi, qword [rsp + 0x70]
cmp rdi, 0xffffffffffffffff
je 0x14004d007
lea rcx, [rdi + r14]
sub ecx, ebx
add rcx, qword [r12]
mov qword [rsp + 0x48], rcx
cmp rsi, r13
je 0x14004cfb9
mov qword [rsi], rcx
add rsi, 8
mov qword [rsp + 0x70], rsi
jmp 0x14004cfd5
lea r8, [rsp + 0x48]
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.14007f6e0
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
inc rdi
cmp rdi, r15
jae 0x14004cffe
mov r8, r15
sub r8, rdi
lea rcx, [r14 + rdi]
mov edx, 0xffffffe9
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x14004cffe
sub rdi, r14
jmp 0x14004cf91
mov rdi, 0xffffffffffffffff
jmp 0x14004cf91
mov r12, qword [rsp + 0x68]
mov rdi, r12
nop
cmp rdi, rsi
je 0x14004d0b5
mov r15, qword [rdi]
mov ecx, r15d
mov rax, qword [rsp + 0x58]
sub ecx, dword [rax]
mov r14d, ecx
mov rax, qword [rsp + 0x40]
sub ecx, dword [rax + 0xc]
mov edx, dword [rax + 0x14]
add edx, ecx
xor r8d, r8d
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
xor eax, eax
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x34], al
mov r8d, 5
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
mov eax, dword [r14 + rbx]
cmp eax, dword [rsp + 0x30]
jne 0x14004d080
movzx eax, byte [r14 + rbx + 4]
cmp al, byte [rsp + 0x34]
je 0x14004d0ac
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8, [rsp + 0x30]
mov rdx, r15
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
add rdi, 8
jmp 0x14004d010
test r12, r12
je 0x14004d0f5
sub r13, r12
and r13, 0xfffffffffffffff8
mov rax, r12
cmp r13, 0x1000
jb 0x14004d0ea
add r13, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004d0ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r13
mov rcx, r12
call fcn.1400d9650
mov r14d, dword [rsp + 0x738]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov eax, dword [rsp + 0x38]
inc eax
add rdi, 0x28
mov qword [rsp + 0x40], rdi
jmp 0x14004cf10
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xb0]
call fcn.140074600
lea rcx, [rsp + 0xb8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x150]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
test rbx, rbx
je 0x14004d186
mov rcx, rbx
call fcn.1400d9650
mov r13d, dword [rsp + 0x720]
mov r15d, dword [rsp + 0x728]
mov rsi, qword [rsp + 0x60]
inc r15d
mov eax, dword [rsp + 0x50]
jmp 0x14004cc1f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x6e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret