Function at 0x2870c5202
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0x20], 0
mov dword [rbp - 0x64], 0x60
mov eax, dword [rbp - 0x64]
mov rax, qword gs:[rax]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [0x2870c82f0]
mov eax, dword [rax + 0x60]
test eax, eax
je 0x2870c5583
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov qword [rbp - 8], rax
jmp 0x2870c556d
mov rax, qword [rbp - 8]
sub rax, 0x10
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
add rax, 0x48
add rax, 0x10
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov rax, qword [rax + 8]
mov rcx, rax
call sym.MapDllFromKnownDllDir
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x38]
mov rax, qword [rax + 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x80], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x84], 0
cmp qword [rbp - 0x48], 0
je 0x2870c5518
cmp qword [rbp - 0x50], 0
je 0x2870c5518
mov rax, qword [rbp - 0x50]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x50]
add rax, rdx
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov eax, dword [rax]
cmp eax, 0x4550
jne 0x2870c551b
mov rax, qword [rbp - 0x58]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x58]
add rax, rdx
add rax, 0x18
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x1c], 0
jmp 0x2870c540d
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x60]
add rax, rdx
mov rcx, rax
call sym.CRC32B
cmp eax, 0xa21c1ea3
jne 0x2870c5409
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x60]
add rax, rdx
mov eax, dword [rax + 8]
mov eax, eax
mov qword [rbp - 0x78], rax
mov rax, qword [rbp - 0x78]
mov qword [0x2870cc120], rax
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x60]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x50]
add rax, rdx
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x80]
mov qword [0x2870cc128], rax
mov eax, dword [rbp - 0x1c]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x60]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x48]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [0x2870cc130], rax
jmp 0x2870c5421
add dword [rbp - 0x1c], 1
mov rax, qword [rbp - 0x58]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x1c], eax
jl 0x2870c5332
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x2870c551e
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x2870c551e
cmp qword [rbp - 0x18], 0
je 0x2870c551e
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
cmp rdx, rax
jne 0x2870c5521
mov rax, qword [0x2870c82f0]
mov rdx, qword [rax + 0x28]
mov rax, qword [0x2870c82f0]
mov eax, dword [rax + 0x20]
mov ecx, eax
call sym.SetSSn
lea rcx, [rbp - 0x78]
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x84]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sym.RunSyscall
mov dword [rbp - 0x20], eax
cmp dword [rbp - 0x20], 0
js 0x2870c5524
mov rcx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
call sym.Memcpy
mov rax, qword [0x2870c82f0]
mov rdx, qword [rax + 0x28]
mov rax, qword [0x2870c82f0]
mov eax, dword [rax + 0x20]
mov ecx, eax
call sym.SetSSn
mov r8d, dword [rbp - 0x84]
lea rcx, [rbp - 0x78]
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x84]
mov qword [rsp + 0x20], rdx
mov r9d, r8d
mov r8, rcx
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sym.RunSyscall
mov dword [rbp - 0x20], eax
cmp dword [rbp - 0x20], 0
nop
jmp 0x2870c5525
nop
jmp 0x2870c5525
nop
jmp 0x2870c5525
nop
jmp 0x2870c5525
nop
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov qword [rbp - 8], rax
add dword [rbp - 0xc], 1
cmp qword [rbp - 0x48], 0
je 0x2870c556d
mov rax, qword [0x2870c82f0]
mov rdx, qword [rax + 0x38]
mov rax, qword [0x2870c82f0]
mov eax, dword [rax + 0x30]
mov ecx, eax
call sym.SetSSn
mov rax, qword [rbp - 0x48]
mov rdx, rax
mov rcx, 0xffffffffffffffff
call sym.RunSyscall
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x30]
je 0x2870c5584
cmp dword [rbp - 0xc], 2
jle 0x2870c5272
jmp 0x2870c5584
nop
add rsp, 0xc0
pop rbp
ret