Function at 0x1400044b8
Capabilities:
Access pe header
Map section object

Disassembly:
jmp 0x140006280
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x328
lea rbp, [rsp + 0x50]
movzx eax, byte [0x14000ac30]
lea r14, [0x14000e040]
mov ecx, eax
mov qword [rbp + 8], r14
add rax, 0xf
cmp rax, rcx
ja 0x1400062c4
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rbp + 0x30], r14
xor r13d, r13d
mov qword [rbp], r13
lea r12, [rsp + 0x50]
mov rbx, r12
mov rcx, qword [r14 + 8]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rbp + 0x320], rax
mov qword [r14 + 8], rax
test rax, rax
je 0x14000651b
lea rax, [r14 + 0x10]
mov rsi, qword [rax]
mov qword [rbp + 0x10], rax
test rsi, rsi
je 0x14000651b
mov r14, qword [rbp + 0x320]
xor r15d, r15d
xor edi, edi
cmp rsi, 0x10000
jae 0x14000633c
mov qword [rbp + 0x320], rsi
mov r15d, esi
jmp 0x14000634d
mov rdx, rsi
lea rcx, [rbp + 0x38]
lea rdi, [rbp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
lea r9, [rbp + 0x20]
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
test eax, eax
js 0x1400064fb
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x338]
call qword [sym.imp.ntdll.dll_LdrFindEntryForAddress]
test eax, eax
js 0x1400064fb
mov rax, qword [rbp + 0x338]
mov rdi, qword [rax + 0x30]
cmp rdi, r14
je 0x140006427
mov rax, qword [rbp + 0x20]
lea r9, [rbp + 0x330]
xor r8d, r8d
mov qword [rbp + 0x28], rax
mov dl, 1
mov rcx, rdi
xor esi, esi
xor r15d, r15d
call qword [sym.imp.ntdll.dll_RtlImageDirectoryEntryToData]
mov rdx, rax
test rax, rax
je 0x1400064fb
mov r9d, dword [rax + 0x14]
test r9d, r9d
je 0x1400064fb
mov r8d, dword [rax + 0x1c]
mov r11d, dword [rax + 0x20]
add r8, rdi
mov ecx, dword [rdx + 0x18]
add r11, rdi
mov eax, dword [rax + 0x24]
add rax, rdi
mov dword [rbp + 0x320], ecx
mov qword [rbp], rax
test ecx, ecx
je 0x140006466
movzx eax, word [rax]
mov r10d, dword [r11]
lea r11, [r11 + 4]
add r10, rdi
mov ecx, dword [r8 + rax*4]
mov rax, qword [rbp]
add rcx, rdi
add rax, 2
mov qword [rbp], rax
cmp rcx, qword [rbp + 0x28]
je 0x140006424
add dword [rbp + 0x320], 0xffffffff
jmp 0x1400063f3
mov rsi, r10
mov rax, qword [rbp + 0x338]
mov rdi, r13
add rax, 0x58
mov qword [rbp + 0x320], rax
test r13, r13
je 0x14000648d
mov rdx, qword [rdi + 8]
mov r8b, 1
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
test al, al
jne 0x140006488
mov rdi, qword [rdi]
test rdi, rdi
je 0x14000648d
mov rax, qword [rbp + 0x320]
jmp 0x140006441
mov r15d, dword [rdx + 0x10]
mov rcx, qword [rbp + 0x28]
mov eax, dword [r8]
lea r8, [r8 + 4]
add rax, rdi
cmp rax, rcx
je 0x140006427
inc r15d
add r9d, 0xffffffff
je 0x1400064fb
jmp 0x14000646e
test rdi, rdi
jne 0x1400064c3
sub rbx, 0x18
mov rdi, rbx
cmp rbx, r12
jae 0x1400064a9
mov eax, dword [rsp]
sub rsp, 0x20
lea r12, [rsp + 0x50]
mov eax, dword [r12]
and qword [rbx + 0x10], 0
mov rax, qword [rbp + 0x338]
add rax, 0x58
mov qword [rbx], r13
mov qword [rbx + 8], rax
mov r13, rbx
sub rbx, 0x20
cmp rbx, r12
jae 0x1400064dc
mov eax, dword [rsp]
sub rsp, 0x20
lea r12, [rsp + 0x50]
mov eax, dword [r12]
mov rax, qword [rdi + 0x10]
mov qword [rbx], rax
mov rax, qword [rbp + 0x10]
mov qword [rdi + 0x10], rbx
add rax, 8
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
mov dword [rbx + 0x18], r15d
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov qword [rbp + 0x10], rax
mov rsi, qword [rax]
test rsi, rsi
jne 0x140006322
mov r14, qword [rbp + 8]
mov qword [rbp], r13
mov r14, qword [r14]
mov qword [rbp + 8], r14
test r14, r14
jne 0x1400062e3
xor r12d, r12d
jmp 0x1400067bc
mov r9, qword [r13 + 8]
lea r8, str.KnownDlls32_wZ
mov rdi, qword [r13 + 0x10]
lea rcx, [rbp + 0xd0]
mov edx, 0x100
call qword [sym.imp.ntdll.dll_swprintf_s]
test eax, eax
js 0x1400067b4
lea rax, [rbp + 0x48]
mov dword [rbp + 0x58], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0xd0]
mov qword [rbp + 0x60], r12
lea rcx, [rbp + 0x48]
mov dword [rbp + 0x70], 0x40
movups xmmword [rbp + 0x78], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea r8, [rbp + 0x58]
mov edx, 9
lea rcx, [rbp + 0x18]
call qword [sym.imp.ntdll.dll_NtOpenSection]
test eax, eax
js 0x1400067b4
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x90]
mov r9d, 0x40
mov qword [rbp + 0x320], r12
mov qword [rbp + 0x338], r12
mov qword [rsp + 0x20], r12
lea edx, [r9 - 0x3f]
call qword [sym.imp.ntdll.dll_NtQuerySection]
mov ebx, eax
test eax, eax
js 0x140006639
mov rax, qword [rbp + 0x90]
test rax, rax
je 0x140006634
mov rcx, qword [rbp + 0x18]
lea r8, [rbp + 0x320]
mov dword [rsp + 0x48], InitCommonControls
xor r9d, r9d
mov dword [rsp + 0x40], r12d
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x38], 2
mov qword [rbp + 8], rax
lea rax, [rbp + 0x338]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
jmp 0x140006639
mov ebx, 0xc0000049
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x1400067b4
mov rcx, qword [rbp + 0x320]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r15, rax
test rax, rax
je 0x1400067a3
mov r13, qword [rbp + 8]
mov rsi, qword [rbp + 0x320]
lea r9, [rbp + 0x328]
mov rax, qword [rdi + 0x10]
mov rcx, rsi
mov ebx, dword [rdi + 0x18]
xor r8d, r8d
mov dl, 1
mov qword [rbp + 0x330], rax
call qword [sym.imp.ntdll.dll_RtlImageDirectoryEntryToData]
mov r8, rax
test rax, rax
je 0x140006793
mov r14d, r8d
sub r14d, esi
cmp dword [rax + 0x14], r12d
je 0x140006793
test ebx, ebx
je 0x1400066ba
sub ebx, dword [rax + 0x10]
jmp 0x140006759
mov r10d, dword [rax + 0x20]
mov edx, dword [rax + 0x18]
add r10, rsi
test edx, edx
je 0x140006793
mov r9, qword [rbp + 0x330]
mov r11d, edx
shr r11d, 1
mov ebx, r11d
mov ecx, dword [r10 + r11*4]
add rcx, rsi
sub r9, rcx
mov al, byte [rcx]
cmp al, byte [rcx + r9]
jne 0x140006742
inc rcx
test al, al
jne 0x1400066e6
jmp 0x14000673e
test eax, eax
lea ecx, [rbx + 1]
cmovns ecx, r12d
xor r12d, r12d
test eax, eax
cmovns edx, r11d
cmp ecx, edx
jae 0x140006793
mov r9, qword [rbp + 0x330]
lea r11d, [rcx + rdx]
shr r11d, 1
mov r12d, ecx
mov ebx, r11d
mov ecx, dword [r10 + r11*4]
add rcx, rsi
sub r9, rcx
mov al, byte [rcx]
cmp al, byte [rcx + r9]
jne 0x140006742
inc rcx
test al, al
jne 0x14000672f
xor eax, eax
jmp 0x140006747
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1400066f7
mov ecx, dword [r8 + 0x24]
add rcx, rsi
xor r12d, r12d
movzx ebx, word [rcx + rbx*2]
cmp ebx, dword [r8 + 0x14]
jae 0x140006793
mov eax, dword [r8 + 0x1c]
add rax, rsi
mov edx, dword [rax + rbx*4]
mov eax, r14d
mov ecx, edx
sub rcx, rax
mov eax, dword [rbp + 0x328]
cmp rcx, rax
jb 0x140006793
test edx, edx
je 0x140006793
mov eax, dword [r15 + 0x28]
mov ecx, edx
sub rcx, rax
mov rax, qword [rdi + 8]
add rcx, r13
mov qword [rax], rcx
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140006668
mov r13, qword [rbp]
mov rdx, qword [rbp + 0x320]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov r13, qword [r13]
mov qword [rbp], r13
test r13, r13
jne 0x140006533
mov rbx, qword [rbp + 0x30]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400067d8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400067c9
lea rsp, [rbp + 0x2d8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret