Function at 0x140001590
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x190
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x38], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x1a0], 0
jne 0x14000160b
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
jmp 0x14000180c
cmp qword [rsp + 0x38], 0
je 0x14000172c
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x50], 0
je 0x14000171a
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x14000171a
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1400016bd
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x50]
movzx eax, byte [rcx + rax*2]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0x41
jl 0x1400016a4
movsx eax, byte [rsp + 0x30]
cmp eax, 0x5a
jg 0x1400016a4
movsx eax, byte [rsp + 0x30]
add eax, 0x20
mov ecx, dword [rsp + 0x34]
mov byte [rsp + rcx + 0x70], al
jmp 0x1400016b1
mov eax, dword [rsp + 0x34]
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + rax + 0x70], cl
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
jmp 0x140001654
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x104
jae 0x1400016d3
jmp 0x1400016d8
call fcn.140003fa8
mov rax, qword [rsp + 0x60]
mov byte [rsp + rax + 0x70], 0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x50]
call fcn.140002bb0
cmp eax, dword [rsp + 0x1a0]
je 0x14000170c
lea rcx, [rsp + 0x70]
call fcn.140002bb0
cmp eax, dword [rsp + 0x1a0]
jne 0x14000171a
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
jmp 0x14000180c
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x14000160b
xor eax, eax
cmp eax, 1
je 0x14000180a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x14000180a
mov edx, 0x5c
lea rcx, [0x140007130]
call fcn.140002d90
test rax, rax
je 0x140001793
mov edx, 0x5c
lea rcx, [0x140007100]
call fcn.140002d90
inc rax
mov qword [rsp + 0x68], rax
jmp 0x14000179f
lea rax, [0x1400070d0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0x86
mov r9, qword [rsp + 0x68]
mov r8d, dword [rsp + 0x1a0]
lea rdx, str.____GetModuleHandleH_Failed:_Module_Of_Hash_0x_08X_Was_Not_Found____s._d_n
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0x48], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140003e80
add rsp, 0x190
pop rdi
ret