Function at 0x1800063d4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x18002f528]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, r8
mov r14, rdx
mov r15, rcx
lea rdx, [0x180027010]
xor r12d, r12d
test r8, r8
cmovne rdx, r8
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp word [rdx], r12w
jne 0x180006442
mov r8d, r12d
jmp 0x180006450
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x180006446
lea rcx, [rbp - 0x30]
call fcn.180003bbc
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
mov ecx, dword [0x180031de8]
mov r8d, ecx
imul r8d, ecx
imul r8d, ecx
mov eax, 0x66666667
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
mov eax, dword [0x180032234]
mov ecx, 0x34acb335
cmp r8d, 0x12
cmove eax, ecx
mov dword [0x180032234], eax
test rbx, rbx
jne 0x1800064b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.1800062e4
mov r8d, dword [0x180031de8]
test al, al
jne 0x180006539
jmp 0x180006534
mov eax, r8d
and eax, 0x80000001
jge 0x1800064d8
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1800064ef
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x180031de8], eax
jmp 0x1800064fe
lea r8d, [r8*2 + 1]
mov dword [0x180031de8], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x180006522
sub ecx, 2
je 0x180006526
dec ecx
je 0x180006529
jmp 0x180006534
add r8d, 2
inc r8d
add r8d, 2
mov dword [0x180031de8], r8d
test r8d, r8d
jne 0x1800064c7
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
mov ecx, 0x5a4d
cmp word [rbx], cx
jne 0x1800065df
cmp dword [rax], 0x4550
jne 0x1800065df
mov ecx, 0x10b
cmp word [rax + 0x18], cx
jne 0x1800065b3
cmp dword [rax + 0x84], r12d
je 0x18000657e
mov ecx, dword [rax + 0x80]
test ecx, ecx
je 0x18000657e
lea r9, [rbx + rcx]
jmp 0x1800065e2
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0xf
jne 0x1800067e4
dec dword [0x1800321b8]
jmp 0x1800067e4
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x1800067e4
cmp dword [rax + 0x94], r12d
je 0x1800067e4
mov ecx, dword [rax + 0x90]
test ecx, ecx
je 0x1800067e4
jmp 0x180006578
mov r9, r12
test r9, r9
je 0x1800067e4
cmp dword [r9 + 0x10], r12d
je 0x1800067e4
mov r11d, dword [0x180032028]
mov esi, r12d
mov eax, dword [r9]
add rax, rbx
jmp 0x180006633
add rcx, 2
add rcx, rbx
mov rdi, r15
sub rdi, rcx
movzx edx, byte [rcx]
movzx r10d, byte [rcx + rdi]
sub edx, r10d
jne 0x180006629
inc rcx
test r10d, r10d
jne 0x180006614
test edx, edx
je 0x18000667b
inc esi
add rax, 8
mov rcx, qword [rax]
test rcx, rcx
jne 0x180006607
add r9, 0x14
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0x11
jne 0x18000666f
dec r11d
mov dword [0x180032028], r11d
cmp dword [r9 + 0x10], r12d
je 0x1800067e4
jmp 0x1800065fc
movsxd rdx, esi
mov ecx, dword [r9 + 0x10]
add rcx, rbx
lea rbx, [rcx + rdx*8]
mov rdi, qword [rbx]
imul r8d, r8d
mov eax, 0x6bca1af3
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub r8d, edx
cmp r8d, 3
jne 0x1800066d5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0xcccccccd
mul r8d
shr edx, 6
lea ecx, [rdx + rdx*4]
shl ecx, 4
sub r8d, ecx
lea eax, [r8 + 1]
mov dword [0x180031de8], eax
test rdi, rdi
je 0x1800067e7
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1800066f8
mov qword [rbx], r14
jmp 0x1800067e7
lea rdx, str.VirtualProtect
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1800067bb
mov qword [rbx], r14
mov r8d, dword [0x180031de8]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub ecx, edx
cmp ecx, 5
jne 0x1800067e7
jmp 0x1800067b4
mov eax, r8d
and eax, 0x80000001
jge 0x180006758
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x18000676f
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x180031de8], eax
jmp 0x18000677e
lea r8d, [r8*2 + 1]
mov dword [0x180031de8], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x1800067a2
sub ecx, 2
je 0x1800067a6
dec ecx
je 0x1800067a9
jmp 0x1800067b4
add r8d, 2
inc r8d
add r8d, 2
mov dword [0x180031de8], r8d
test r8d, r8d
jne 0x180006747
jmp 0x1800067e7
lea r9, [rbp - 0x40]
mov edx, 8
lea r8d, [rdx - 4]
mov rcx, rbx
call rsi
mov qword [rbx], r14
lea r9, [rbp - 0x40]
mov r8d, dword [rbp - 0x40]
mov edx, 8
mov rcx, rbx
call rsi
jmp 0x1800067e7
mov rdi, r12
cmp qword [rbp - 0x18], 8
jb 0x1800067f7
mov rcx, qword [rbp - 0x30]
call fcn.18000c270
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18000bbc0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret