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

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x190
mov rax, qword [0x140038018]
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 0x1400015fb
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
jmp 0x1400017fc
cmp qword [rsp + 0x38], 0
je 0x14000171c
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x50], 0
je 0x14000170a
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x14000170a
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 0x1400016ad
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 0x140001694
movsx eax, byte [rsp + 0x30]
cmp eax, 0x5a
jg 0x140001694
movsx eax, byte [rsp + 0x30]
add eax, 0x20
mov ecx, dword [rsp + 0x34]
mov byte [rsp + rcx + 0x70], al
jmp 0x1400016a1
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 0x140001644
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x104
jae 0x1400016c3
jmp 0x1400016c8
call fcn.14000e6e8
mov rax, qword [rsp + 0x60]
mov byte [rsp + rax + 0x70], 0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x50]
call fcn.140005710
cmp eax, dword [rsp + 0x1a0]
je 0x1400016fc
lea rcx, [rsp + 0x70]
call fcn.140005710
cmp eax, dword [rsp + 0x1a0]
jne 0x14000170a
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x20]
jmp 0x1400017fc
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x1400015fb
xor eax, eax
cmp eax, 1
je 0x1400017fa
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 0x1400017fa
mov edx, 0x5c
lea rcx, [0x140038b18]
call fcn.140005960
test rax, rax
je 0x140001783
mov edx, 0x5c
lea rcx, [0x140038ae0]
call fcn.140005960
inc rax
mov qword [rsp + 0x68], rax
jmp 0x14000178f
lea rax, [0x140038a58]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x20], 0x8d
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.14000e5c0
add rsp, 0x190
pop rdi
ret