Function at 0x140054010
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x420
mov rax, qword [0x14010a0c0]
xor rax, rsp
mov qword [rsp + 0x410], rax
xor edi, edi
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x30], 0xafb9a88f
mov dword [rsp + 0x34], 0x8887b092
mov dword [rsp + 0x38], 0x968ecd8c
mov word [rsp + 0x3c], 0x8989
mov byte [rsp + 0x3e], 0xe8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x2c8
mov eax, dword [rdx + rcx]
mov ebx, 0x240
add rbx, rcx
test al, 1
jne 0x1400540ad
or eax, 1
mov dword [rdx + rcx], eax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14005cdd0
lea rcx, [0x1400d9940]
call fcn.1400d436c
nop
cmp byte [rbx], 0
jne 0x1400540d1
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x26]
xor byte [rcx + rbx + 1], al
inc edx
cmp edx, 0xf
jb 0x1400540c0
mov byte [rbx], 1
lea rdx, [rbx + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x3f0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x400], xmm1
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1400540f6
lea rcx, [rsp + 0x3f0]
call fcn.140004190
nop
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x280]
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsp + 0x3f0]
cmp qword [rsp + 0x408], 0xf
cmova rbx, qword [rsp + 0x3f0]
lea rax, [0x140000000]
lea rax, [rax + 0xf4138]
mov qword [rsp + 0x280], rax
lea rcx, [rsp + 0x330]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x60], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x280]
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 + 0x280]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x280], r13
mov rax, qword [rsp + 0x280]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x27c], edx
lea rcx, [rsp + 0x290]
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 + 0x290], rax
mov byte [rsp + 0x30c], 0
mov byte [rsp + 0x301], 0
lea rcx, [rsp + 0x290]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rsp + 0x310], rdi
mov rax, qword [0x140136598]
mov qword [rsp + 0x304], rax
mov qword [rsp + 0x2f8], rdi
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
mov rdx, rbx
lea rcx, [rsp + 0x290]
call fcn.140060fa0
test rax, rax
jne 0x140054259
mov rax, qword [rsp + 0x280]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x280]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 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 + 0x280]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x280], r13
mov rax, qword [rsp + 0x280]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x27c], edx
mov rax, qword [rsp + 0x280]
movsxd rcx, dword [rax + 4]
cmp dword [rsp + rcx + 0x290], 0
jne 0x14005493c
mov byte [rsp + 0x390], 0
xor edx, edx
lea rcx, [rsp + 0x398]
call fcn.14005fea0
nop
xor r13d, r13d
mov qword [rsp + 0xd0], r13
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x280]
movsxd rcx, dword [rax + 4]
mov rax, qword [rsp + rcx + 0x2c8]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x190]
call fcn.140063e60
nop
lea r8, [rsp + 0x390]
mov rcx, rax
call fcn.14005f400
nop
lea rcx, [rsp + 0x1d8]
call fcn.14005e760
mov rcx, qword [rsp + 0x1c8]
test rcx, rcx
je 0x140054343
mov rax, qword [rcx]
lea rdx, [rsp + 0x190]
cmp rcx, rdx
setne dl
call qword [rax + reloc.WLDAP32.dll_Ordinal_32]
lea r9, [rsp + 0x390]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x3d8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x3e0], xmm1
movabs rsi, 0x8000000000000000
mov rdi, rsi
movzx edx, byte [r9]
cmp edx, 9
ja case.default.0x14005438e
movsxd rax, edx
lea r8, [0x140000000]
mov ecx, dword [r8 + rax*4 + 0x54c30]
add rcx, r8
jmp rcx
lea r8, [0x140000000]
cmp edx, 9
ja case.0x1400543a7.3
mov ecx, dword [r8 + rdx*4 + 0x54c58]
add rcx, r8
jmp rcx
mov rax, qword [r9 + 8]
mov rbx, qword [rax]
mov rbx, qword [rbx]
jmp 0x1400543d8
mov r14, qword [r9 + 8]
mov r14, qword [r14]
mov rbx, qword [rsp + 0x3d8]
jmp 0x1400543e0
mov edi, 1
jmp 0x1400543d0
mov rdi, r13
mov rbx, qword [rsp + 0x3d8]
mov r14, qword [rsp + 0x3e0]
lea r10, [rsp + 0x390]
movdqu xmmword [rsp + 0x3b8], xmm0
movdqu xmmword [rsp + 0x3c0], xmm1
movzx edx, byte [r10]
cmp edx, 9
ja case.0x140054423.0
movsxd rax, edx
mov ecx, dword [r8 + rax*4 + 0x54c80]
add rcx, r8
jmp rcx
cmp edx, 9
ja case.0x140054423.0
mov ecx, dword [r8 + rdx*4 + 0x54ca8]
add rcx, r8
jmp rcx
mov r15, qword [r10 + 8]
mov r15, qword [r15]
jmp 0x14005444e
mov r12, qword [r10 + 8]
mov r12, qword [r12 + 8]
mov r15, qword [rsp + 0x3b8]
jmp 0x140054456
mov esi, 1
mov r15, qword [rsp + 0x3b8]
mov r12, qword [rsp + 0x3c0]
mov r13d, 0x430
mov r11d, 0x594
cmp r9, r10
jne 0x140054b64
movzx edx, byte [r9]
cmp edx, 9
ja 0x14005448e
movsxd rax, edx
mov ecx, dword [r8 + rax*4 + 0x54cd0]
add rcx, r8
jmp rcx
cmp rdi, rsi
setne al
test al, al
je 0x14005491f
cmp edx, 9
ja 0x1400544c0
mov ecx, dword [r8 + rdx*4 + 0x54cf8]
add rcx, r8
jmp rcx
test rdi, rdi
jne 0x140054bec
mov qword [rsp + 0x60], r9
mov dword [rsp + 0x40], 0xafb9a8af
mov dword [rsp + 0x44], 0x848dbeb0
mov byte [rsp + 0x48], 0xe2
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
mov ecx, r11d
mov eax, dword [rcx + rdx]
add r13, rdx
test al, 1
jne 0x1400545e1
or eax, 1
mov dword [rcx + rdx], eax
mov byte [r13], 0
xor eax, eax
mov qword [r13 + 1], rax
mov byte [r13 + 9], al
xor edx, edx
lea rcx, [r13 + 2]
lea r8, [rsp + 0x40]
sub r8, r13
lea r9, [rsp + 0x41]
sub r9, r13
lea r10, [rsp + 0x42]
sub r10, r13
lea r11, [rsp + 0x43]
sub r11, r13
lea rax, [rsp + 0x44]
sub rax, r13
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x45]
sub rax, r13
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x46]
sub rax, r13
mov qword [rsp + 0x68], rax
nop word [rax + rax]
movzx eax, byte [r8 + rcx - 2]
mov byte [rcx - 1], al
movzx eax, byte [rcx + r9 - 2]
mov byte [rcx], al
movzx eax, byte [r8 + rcx]
mov byte [rcx + 1], al
movzx eax, byte [rcx + r9]
mov byte [rcx + 2], al
movzx eax, byte [rcx + r10]
mov byte [rcx + 3], al
movzx eax, byte [rcx + r11]
mov byte [rcx + 4], al
mov rax, qword [rsp + 0xd8]
movzx eax, byte [rcx + rax]
mov byte [rcx + 5], al
mov rax, qword [rsp + 0x70]
movzx eax, byte [rcx + rax]
mov byte [rcx + 6], al
mov rax, qword [rsp + 0x68]
movzx eax, byte [rcx + rax]
mov byte [rcx + 7], al
add edx, 9
lea rcx, [rcx + 9]
cmp edx, 9
jb 0x140054570
lea rcx, [0x1400d9900]
call fcn.1400d436c
nop
cmp byte [r13], 0
jne 0x140054602
xor edx, edx
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x26]
xor byte [rcx + r13 + 1], al
inc edx
cmp edx, 9
jb 0x1400545f0
mov byte [r13], 1
lea rdx, [r13 + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
xor eax, eax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rax
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], al
jne 0x140054630
lea rcx, [rsp + 0x98]
call fcn.140004190
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
call fcn.14005df80
lea rdx, [rsp + 0x3b0]
mov rcx, rax
call fcn.140063240
nop
mov dword [rsp + 0x30], 0xaeafbaaa
mov dword [rsp + 0x34], 0x8592b0a9
mov byte [rsp + 0x38], 0xe2
mov eax, 0x4d4
mov edx, eax
mov r8, qword [rsp + 0x58]
mov eax, dword [rax + r8]
mov ecx, 0x750
test al, 1
jne 0x140054780
or eax, 1
mov dword [rdx + r8], eax
lea r13, [rcx + r8]
mov byte [r13], 0
xor eax, eax
mov qword [r13 + 1], rax
mov byte [r13 + 9], al
xor edx, edx
lea rcx, [r13 + 2]
lea r8, [rsp + 0x30]
sub r8, r13
lea r9, [rsp + 0x31]
sub r9, r13
lea r10, [rsp + 0x32]
sub r10, r13
lea r11, [rsp + 0x33]
sub r11, r13
lea rax, [rsp + 0x34]
sub rax, r13
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x35]
sub rax, r13
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x36]
sub rax, r13
mov qword [rsp + 0x70], rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx - 2]
mov byte [rcx - 1], al
movzx eax, byte [rcx + r9 - 2]
mov byte [rcx], al
movzx eax, byte [r8 + rcx]
mov byte [rcx + 1], al
movzx eax, byte [rcx + r9]
mov byte [rcx + 2], al
movzx eax, byte [rcx + r10]
mov byte [rcx + 3], al
movzx eax, byte [rcx + r11]
mov byte [rcx + 4], al
mov rax, qword [rsp + 0x58]
movzx eax, byte [rcx + rax]
mov byte [rcx + 5], al
mov rax, qword [rsp + 0x68]
movzx eax, byte [rcx + rax]
mov byte [rcx + 6], al
mov rax, qword [rsp + 0x70]
movzx eax, byte [rcx + rax]
mov byte [rcx + 7], al
add edx, 9
lea rcx, [rcx + 9]
cmp edx, 9
jb 0x140054710
lea rcx, [0x1400d98c0]
call fcn.1400d436c
nop
jmp 0x140054784
lea r13, [rcx + r8]
cmp byte [r13], 0
jne 0x1400547a2
xor edx, edx
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x26]
xor byte [rcx + r13 + 1], al
inc edx
cmp edx, 9
jb 0x140054790
mov byte [r13], 1
lea rdx, [r13 + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
xor r13d, r13d
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], r13
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r13b
jne 0x1400547d0
lea rcx, [rsp + 0x98]
call fcn.140004190
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
call fcn.14005df80
lea rdx, [rsp + 0x3d0]
mov rcx, rax
call fcn.140063240
cmp qword [rsp + 0x3c0], r13
je 0x1400549e0
cmp qword [rsp + 0x3e0], r13
je 0x1400549e0
lea r8, [rsp + 0x3b0]
cmp qword [rsp + 0x3c8], 0xf
cmova r8, qword [rsp + 0x3b0]
mov edx, 0xff
lea rcx, [0x140136159]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x3d0]
cmp qword [rsp + 0x3e8], 0xf
cmova r8, qword [rsp + 0x3d0]
mov edx, 0xff
lea rcx, [0x140136258]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rdx, qword [rsp + 0x3e8]
cmp rdx, 0xf
jbe 0x1400548bf
inc rdx
mov rcx, qword [rsp + 0x3d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400548ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054a1a
call fcn.1400d3d24
mov qword [rsp + 0x3e0], r13
mov qword [rsp + 0x3e8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x3d0], r13b
mov rdx, qword [rsp + 0x3c8]
cmp rdx, 0xf
jbe 0x14005491f
inc rdx
mov rcx, qword [rsp + 0x3b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054919
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054a7c
call fcn.1400d3d24
nop
movzx edx, byte [rsp + 0x390]
lea rcx, [rsp + 0x398]
call fcn.14005f9a0
nop
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov rax, qword [rsp + 0x280]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x280], r13
mov rax, qword [rsp + 0x280]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x27c], edx
lea rcx, [rsp + 0x290]
call fcn.14005dc30
lea rcx, [rsp + 0x298]
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 + 0x330]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsp + 0x408]
cmp rdx, 0xf
jbe 0x140054b32
inc rdx
mov rcx, qword [rsp + 0x3f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054b2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054b2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rsp + 0x3e8]
cmp rdx, 0xf
jbe 0x140054a26
inc rdx
mov rcx, qword [rsp + 0x3d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054a21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054a21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d3d24
mov qword [rsp + 0x3e0], r13
mov qword [rsp + 0x3e8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x3d0], r13b
mov rdx, qword [rsp + 0x3c8]
cmp rdx, 0xf
jbe 0x140054a88
inc rdx
mov rcx, qword [rsp + 0x3b0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054a83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054a83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d3d24
lea r9, [rsp + 0x390]
movzx eax, byte [r9]
lea r8, [0x140000000]
cmp eax, 9
ja case.0x140054aab.912
mov ecx, dword [r8 + rax*4 + 0x54d20]
add rcx, r8
jmp rcx
mov rax, rbx
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x140054ae4
mov rbx, qword [rax + 8]
cmp byte [rbx + 0x19], 0
jne 0x140054aff
cmp rax, qword [rbx + 0x10]
jne 0x140054aff
mov rax, rbx
mov rbx, qword [rbx + 8]
cmp byte [rbx + 0x19], 0
je 0x140054ac4
lea r10, [rsp + 0x390]
jmp 0x140054456
mov rcx, qword [rbx]
cmp byte [rcx + 0x19], 0
jne 0x140054aff
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140054af0
lea r10, [rsp + 0x390]
jmp 0x140054456
add r14, 0x10
lea r10, [rsp + 0x390]
jmp 0x140054456
inc rdi
lea r10, [rsp + 0x390]
jmp 0x140054456
call fcn.1400d3d24
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.1400d3a80
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
lea rdx, str.cannot_compare_iterators_of_different_containers
lea rcx, [rsp + 0x98]
call fcn.140003ed0
nop
lea r8, [rsp + 0x98]
mov edx, 0xd4
lea rcx, [rsp + 0xe8]
call fcn.140063c30
lea rdx, [0x1401054b8]
lea rcx, [rsp + 0xe8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.cannot_get_value
lea rcx, [rsp + 0x98]
call fcn.140003ed0
nop
lea r8, [rsp + 0x98]
mov edx, Ordinal_217
lea rcx, [rsp + 0x120]
call fcn.140063c30
lea rdx, [0x1401054b8]
lea rcx, [rsp + 0x120]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.cannot_get_value
lea rcx, [rsp + 0x98]
call fcn.140003ed0
nop
lea r8, [rsp + 0x98]
mov edx, Ordinal_217
lea rcx, [rsp + 0x158]
call fcn.140063c30
lea rdx, [0x1401054b8]
lea rcx, [rsp + 0x158]
call sub.VCRUNTIME140.dll__CxxThrowException
int3