Function at 0x1400570a0
Capabilities:
Enumerate pe sections
Map section object

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc0
mov r13, qword [rbp + 0x67]
xor eax, eax
mov r15d, ecx
mov qword [rbp - 0x41], rax
xor ecx, ecx
mov qword [rbp - 0x39], rax
or edi, 0xffffffff
mov dword [rbp + 0x47], ecx
mov qword [rbp - 0x59], rcx
mov rsi, r9
mov qword [rbp - 0x29], rax
mov r12, r8
mov qword [rbp - 0x11], rax
mov r14d, edx
test r13, r13
je 0x14005714f
mov rbx, qword [r13]
test rbx, rbx
je 0x14005714f
mov rcx, qword [rbp + 0x6f]
movsxd rdi, dword [rcx]
test rdi, rdi
jle 0x140057132
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140057124
call fcn.140174cec
mov qword [rbx], 0
add rbx, 0x10
sub rdi, 1
jne 0x140057110
mov rbx, qword [r13]
test rbx, rbx
je 0x14005714a
mov rcx, rbx
call fcn.140174cec
xor ecx, ecx
mov qword [r13], rcx
or edi, 0xffffffff
jmp 0x14005714f
or edi, 0xffffffff
xor ecx, ecx
mov rax, qword [rbp + 0x7f]
test rax, rax
je 0x14005715b
mov qword [rax], rcx
mov rax, qword [rbp + 0x6f]
test rax, rax
je 0x140057166
mov dword [rax], ecx
call fcn.140170140
cmp r15d, eax
jne 0x140057179
test r14d, r14d
je 0x1400572d8
xor r14d, r14d
xor eax, eax
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [r12], rax
mov edx, 0x1000a1
mov dword [rsp + 0x28], r14d
mov rcx, rsi
lea r8d, [r14 + 1]
mov qword [rbp - 0x61], r14
mov ebx, edi
mov qword [rbp - 0x69], r14
mov qword [r12 + 8], rax
mov dword [rsp + 0x20], 3
call fcn.14003e1b0
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x1400571d9
mov r8, rsi
lea rdx, str.z_CreateFile_failed__s:__m
mov ecx, 0x610003
call fcn.140028e10
jmp 0x1400572b5
mov rcx, rsi
call fcn.140028740
mov qword [rbp - 0x51], rax
lea r9, [rbp - 0x51]
mov rax, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], 0x8000000
mov edx, 0xf001f
mov dword [rsp + 0x20], 0x20
call sub.ntdll.dll_NtCreateSection
movsxd rcx, eax
call fcn.140170a40
test rax, rax
je 0x140057236
mov r8, rsi
lea rdx, str.NtCreateSection_failed___s_:__m
mov ecx, 0x610003
call fcn.140028e10
jmp 0x1400572b5
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x49], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rbp - 0x69]
xor r9d, r9d
mov dword [rsp + 0x48], 0x20
mov rdx, rax
mov dword [rsp + 0x40], r14d
lea rax, [rbp - 0x49]
mov dword [rsp + 0x38], 1
mov r8, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call sub.ntdll.dll_NtMapViewOfSection
movsxd rcx, eax
call fcn.140170a40
test rax, rax
je 0x1400572a1
mov r8, rsi
lea rdx, str.NtMapViewOfSection_failed___s_:__m
mov ecx, 0x610003
call fcn.140028e10
jmp 0x1400572b5
mov eax, dword [rbp - 0x49]
mov ebx, r14d
mov dword [r12 + 8], eax
mov dword [r12 + 0xc], 1
lea rcx, [rbp - 0x69]
call fcn.14003e170
lea rcx, [rbp - 0x61]
call fcn.14003e170
test ebx, ebx
jne 0x14005745b
mov dword [rbp + 0x47], 1
jmp 0x1400572db
xor r14d, r14d
mov eax, dword [r12 + 0xc]
lea rdx, [rbp - 0x29]
mov dword [rbp - 0x11], eax
xor r9d, r9d
mov rax, qword [r12]
xor r8d, r8d
mov qword [rbp - 0x41], rax
mov rcx, r12
movsxd rax, dword [r12 + 8]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.140057870
test eax, eax
jne 0x140057434
mov rcx, qword [rbp - 0x29]
movzx eax, word [rcx + 0x14]
lea r11, [rcx + 0x18]
movzx edx, word [rcx + 0x18]
add r11, rax
movzx edi, word [rcx + 6]
mov eax, 0x10b
mov qword [rbp - 9], r11
cmp dx, ax
jne 0x140057348
cmp dword [rcx + 0x74], 0
jbe 0x1400573ad
lea r15, [rcx + 0x78]
jmp 0x140057362
mov eax, 0x20b
cmp dx, ax
jne 0x1400573ad
cmp dword [rcx + 0x84], 0
jbe 0x1400573ad
lea r15, [rcx + 0x88]
mov qword [rbp - 0x51], r15
test r15, r15
je 0x1400573ad
mov r8d, dword [rbp - 0x11]
mov r9d, dword [r15]
test r8d, r8d
jne 0x140057381
mov r10, qword [rbp - 0x41]
lea r13, [r9 + r10]
jmp 0x1400573dd
mov edx, r14d
test edi, edi
jle 0x1400573ad
lea rcx, [r11 + 0xc]
nop dword [rax]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x1400573a3
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x1400573b5
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140057390
or edi, 0xffffffff
jmp 0x140057434
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x1400573ad
mov r13d, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
mov r10, qword [rbp - 0x41]
sub r13, rax
mov r8d, dword [rbp - 0x11]
add r13, r9
add r13, r10
test r13, r13
je 0x14005742d
mov rdx, qword [rbp - 0x39]
mov rax, r13
sub rax, r10
cmp rax, rdx
ja 0x14005742d
mov r9d, dword [r13 + 0x20]
test r8d, r8d
jne 0x140057403
lea rbx, [r9 + r10]
jmp 0x1400574b5
mov edx, r14d
test edi, edi
jle 0x14005742d
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140057423
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x14005748e
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140057410
or edi, 0xffffffff
mov r13, qword [rbp + 0x67]
cmp dword [rbp + 0x47], 0
je 0x140057457
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r12]
mov rcx, rax
call sub.ntdll.dll_NtUnmapViewOfSection
xor eax, eax
mov qword [r12], rax
mov qword [r12 + 8], rax
test edi, edi
je 0x140057471
test r13, r13
je 0x140057471
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x140057471
mov rcx, rax
call fcn.140174cec
mov eax, edi
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005742d
mov ebx, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp - 0x39]
sub rbx, rax
mov r8d, dword [rbp - 0x11]
add rbx, r9
add rbx, r10
mov qword [rbp - 0x61], rbx
test rbx, rbx
je 0x14005742d
mov rax, rbx
sub rax, r10
cmp rax, rdx
ja 0x14005742d
mov r9d, dword [r13 + 0x1c]
test r8d, r8d
jne 0x1400574e0
lea rcx, [r9 + r10]
jmp 0x14005753d
mov edx, r14d
test edi, edi
jle 0x14005742d
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140057503
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140057512
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x1400574f0
jmp 0x14005742d
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005742d
mov ecx, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp - 0x39]
sub rcx, rax
mov r8d, dword [rbp - 0x11]
add rcx, r9
add rcx, r10
mov qword [rbp - 0x49], rcx
test rcx, rcx
je 0x14005742d
mov rax, rcx
sub rax, r10
cmp rax, rdx
ja 0x14005742d
mov r9d, dword [r13 + 0x24]
test r8d, r8d
jne 0x140057568
lea rsi, [r9 + r10]
jmp 0x1400575c0
mov edx, r14d
test edi, edi
jle 0x14005742d
lea rcx, [r11 + 0xc]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x14005758a
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140057599
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140057577
jmp 0x14005742d
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005742d
mov esi, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp - 0x39]
sub rsi, rax
add rsi, r9
add rsi, r10
test rsi, rsi
je 0x14005742d
mov rax, rsi
sub rax, r10
cmp rax, rdx
ja 0x14005742d
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x14005742d
mov r15, qword [rbp + 0x67]
test r15, r15
je 0x14005760e
mov ecx, eax
mov edx, 1
shl rcx, 4
call fcn.140174ce4
mov r10, qword [rbp - 0x41]
mov rcx, rax
mov qword [rbp - 0x59], rax
mov eax, dword [r13 + 0x14]
jmp 0x140057612
mov rcx, qword [rbp - 0x59]
mov r12, qword [rbp + 0x77]
test eax, eax
je 0x140057738
lea r11, [rcx + 8]
mov qword [rbp - 0x69], r11
cmp r14d, dword [r13 + 0x18]
jae 0x140057734
cmp dword [rbp - 0x11], 0
movzx r15d, word [rsi]
mov r9d, dword [rbx]
jne 0x140057643
lea rbx, [r9 + r10]
jmp 0x140057697
xor r8d, r8d
test edi, edi
jle 0x14005766f
mov rbx, qword [rbp - 9]
lea rcx, [rbx + 0xc]
mov edx, dword [rcx]
cmp r9, rdx
jb 0x140057663
mov eax, dword [rcx + 4]
add eax, edx
cmp r9, rax
jb 0x140057678
inc r8d
add rcx, 0x28
cmp r8d, edi
jl 0x140057652
mov r12, qword [rbp + 0x57]
jmp 0x14005742d
movsxd rax, r8d
lea rcx, [rax + rax*4]
lea rax, [rbx + rcx*8]
test rax, rax
je 0x14005766f
mov ebx, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
sub rbx, rax
add rbx, r9
add rbx, r10
test rbx, rbx
je 0x14005766f
mov rax, rbx
sub rax, r10
cmp rax, qword [rbp - 0x39]
ja 0x14005766f
test r12, r12
je 0x1400576c0
mov rdx, rbx
mov rcx, r12
call fcn.140026070
test eax, eax
jne 0x140057704
mov r11, qword [rbp - 0x69]
mov rcx, qword [rbp - 0x49]
movzx eax, r15w
mov r15, qword [rbp - 0x51]
mov edx, dword [rcx + rax*4]
mov ecx, dword [r15]
cmp edx, ecx
jb 0x1400576e2
add ecx, dword [r15 + 4]
cmp edx, ecx
jae 0x1400576e2
xor eax, eax
jmp 0x1400576e5
mov rax, rdx
test r12, r12
jne 0x140057779
movsxd rcx, r14d
mov rdx, rbx
shl rcx, 4
add rcx, qword [rbp - 0x59]
mov qword [r11], rax
call fcn.140026210
mov rbx, qword [rbp - 0x61]
inc r14d
mov r11, qword [rbp - 0x69]
add rbx, 4
mov eax, dword [r13 + 0x14]
add r11, 0x10
mov r10, qword [rbp - 0x41]
add rsi, 2
mov qword [rbp - 0x61], rbx
mov qword [rbp - 0x69], r11
cmp r14d, eax
jb 0x140057626
mov r15, qword [rbp + 0x67]
test r12, r12
jne 0x1400577a1
test r15, r15
je 0x140057792
mov rbx, qword [rbp - 0x59]
lea r9, [0x1400577c0]
mov rcx, rbx
mov edx, eax
lea r8d, [r12 + 0x10]
call fcn.140180ca0
mov eax, dword [r13 + 0x14]
xor edi, edi
mov rcx, qword [rbp + 0x6f]
mov r13, qword [rbp + 0x67]
mov r12, qword [rbp + 0x57]
mov dword [rcx], eax
mov qword [r13], rbx
jmp 0x140057434
mov rcx, qword [rbp + 0x7f]
mov r12, qword [rbp + 0x57]
mov qword [rcx], rax
neg rax
sbb edi, edi
neg edi
dec edi
jmp 0x140057430
mov r13, qword [rbp + 0x67]
xor edi, edi
mov r12, qword [rbp + 0x57]
jmp 0x140057434
mov r13, qword [rbp + 0x67]
or edi, 0xffffffff
mov r12, qword [rbp + 0x57]
jmp 0x140057434