Function at 0x140055570
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 0x14005561f
mov rbx, qword [r13]
test rbx, rbx
je 0x14005561f
mov rcx, qword [rbp + 0x6f]
movsxd rdi, dword [rcx]
test rdi, rdi
jle 0x140055602
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400555f4
call fcn.1401762fc
mov qword [rbx], 0
add rbx, 0x10
sub rdi, 1
jne 0x1400555e0
mov rbx, qword [r13]
test rbx, rbx
je 0x14005561a
mov rcx, rbx
call fcn.1401762fc
xor ecx, ecx
mov qword [r13], rcx
or edi, 0xffffffff
jmp 0x14005561f
or edi, 0xffffffff
xor ecx, ecx
mov rax, qword [rbp + 0x7f]
test rax, rax
je 0x14005562b
mov qword [rax], rcx
mov rax, qword [rbp + 0x6f]
test rax, rax
je 0x140055636
mov dword [rax], ecx
call fcn.140171960
cmp r15d, eax
jne 0x140055649
test r14d, r14d
je 0x1400557a8
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.140053920
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x1400556a9
mov r8, rsi
lea rdx, str.z_CreateFile_failed__s:__m
mov ecx, 0x550003
call fcn.14002d450
jmp 0x140055785
mov rcx, rsi
call fcn.14002cce0
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.140171260
test rax, rax
je 0x140055706
mov r8, rsi
lea rdx, str.NtCreateSection_failed___s_:__m
mov ecx, 0x550003
call fcn.14002d450
jmp 0x140055785
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.140171260
test rax, rax
je 0x140055771
mov r8, rsi
lea rdx, str.NtMapViewOfSection_failed___s_:__m
mov ecx, 0x550003
call fcn.14002d450
jmp 0x140055785
mov eax, dword [rbp - 0x49]
mov ebx, r14d
mov dword [r12 + 8], eax
mov dword [r12 + 0xc], 1
lea rcx, [rbp - 0x69]
call fcn.1400538e0
lea rcx, [rbp - 0x61]
call fcn.1400538e0
test ebx, ebx
jne 0x14005592b
mov dword [rbp + 0x47], 1
jmp 0x1400557ab
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.140055d40
test eax, eax
jne 0x140055904
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 0x140055818
cmp dword [rcx + 0x74], 0
jbe 0x14005587d
lea r15, [rcx + 0x78]
jmp 0x140055832
mov eax, 0x20b
cmp dx, ax
jne 0x14005587d
cmp dword [rcx + 0x84], 0
jbe 0x14005587d
lea r15, [rcx + 0x88]
mov qword [rbp - 0x51], r15
test r15, r15
je 0x14005587d
mov r8d, dword [rbp - 0x11]
mov r9d, dword [r15]
test r8d, r8d
jne 0x140055851
mov r10, qword [rbp - 0x41]
lea r13, [r9 + r10]
jmp 0x1400558ad
mov edx, r14d
test edi, edi
jle 0x14005587d
lea rcx, [r11 + 0xc]
nop dword [rax]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140055873
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140055885
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140055860
or edi, 0xffffffff
jmp 0x140055904
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005587d
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 0x1400558fd
mov rdx, qword [rbp - 0x39]
mov rax, r13
sub rax, r10
cmp rax, rdx
ja 0x1400558fd
mov r9d, dword [r13 + 0x20]
test r8d, r8d
jne 0x1400558d3
lea rbx, [r9 + r10]
jmp 0x140055985
mov edx, r14d
test edi, edi
jle 0x1400558fd
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x1400558f3
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x14005595e
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x1400558e0
or edi, 0xffffffff
mov r13, qword [rbp + 0x67]
cmp dword [rbp + 0x47], 0
je 0x140055927
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 0x140055941
test r13, r13
je 0x140055941
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x140055941
mov rcx, rax
call fcn.1401762fc
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 0x1400558fd
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 0x1400558fd
mov rax, rbx
sub rax, r10
cmp rax, rdx
ja 0x1400558fd
mov r9d, dword [r13 + 0x1c]
test r8d, r8d
jne 0x1400559b0
lea rcx, [r9 + r10]
jmp 0x140055a0d
mov edx, r14d
test edi, edi
jle 0x1400558fd
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x1400559d3
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x1400559e2
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x1400559c0
jmp 0x1400558fd
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x1400558fd
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 0x1400558fd
mov rax, rcx
sub rax, r10
cmp rax, rdx
ja 0x1400558fd
mov r9d, dword [r13 + 0x24]
test r8d, r8d
jne 0x140055a38
lea rsi, [r9 + r10]
jmp 0x140055a90
mov edx, r14d
test edi, edi
jle 0x1400558fd
lea rcx, [r11 + 0xc]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140055a5a
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140055a69
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140055a47
jmp 0x1400558fd
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x1400558fd
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 0x1400558fd
mov rax, rsi
sub rax, r10
cmp rax, rdx
ja 0x1400558fd
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x1400558fd
mov r15, qword [rbp + 0x67]
test r15, r15
je 0x140055ade
mov ecx, eax
mov edx, 1
shl rcx, 4
call fcn.1401762f4
mov r10, qword [rbp - 0x41]
mov rcx, rax
mov qword [rbp - 0x59], rax
mov eax, dword [r13 + 0x14]
jmp 0x140055ae2
mov rcx, qword [rbp - 0x59]
mov r12, qword [rbp + 0x77]
test eax, eax
je 0x140055c08
lea r11, [rcx + 8]
mov qword [rbp - 0x69], r11
cmp r14d, dword [r13 + 0x18]
jae 0x140055c04
cmp dword [rbp - 0x11], 0
movzx r15d, word [rsi]
mov r9d, dword [rbx]
jne 0x140055b13
lea rbx, [r9 + r10]
jmp 0x140055b67
xor r8d, r8d
test edi, edi
jle 0x140055b3f
mov rbx, qword [rbp - 9]
lea rcx, [rbx + 0xc]
mov edx, dword [rcx]
cmp r9, rdx
jb 0x140055b33
mov eax, dword [rcx + 4]
add eax, edx
cmp r9, rax
jb 0x140055b48
inc r8d
add rcx, 0x28
cmp r8d, edi
jl 0x140055b22
mov r12, qword [rbp + 0x57]
jmp 0x1400558fd
movsxd rax, r8d
lea rcx, [rax + rax*4]
lea rax, [rbx + rcx*8]
test rax, rax
je 0x140055b3f
mov ebx, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
sub rbx, rax
add rbx, r9
add rbx, r10
test rbx, rbx
je 0x140055b3f
mov rax, rbx
sub rax, r10
cmp rax, qword [rbp - 0x39]
ja 0x140055b3f
test r12, r12
je 0x140055b90
mov rdx, rbx
mov rcx, r12
call fcn.14002a0e0
test eax, eax
jne 0x140055bd4
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 0x140055bb2
add ecx, dword [r15 + 4]
cmp edx, ecx
jae 0x140055bb2
xor eax, eax
jmp 0x140055bb5
mov rax, rdx
test r12, r12
jne 0x140055c49
movsxd rcx, r14d
mov rdx, rbx
shl rcx, 4
add rcx, qword [rbp - 0x59]
mov qword [r11], rax
call fcn.14002a280
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 0x140055af6
mov r15, qword [rbp + 0x67]
test r12, r12
jne 0x140055c71
test r15, r15
je 0x140055c62
mov rbx, qword [rbp - 0x59]
lea r9, [0x140055c90]
mov rcx, rbx
mov edx, eax
lea r8d, [r12 + 0x10]
call fcn.14017d7f0
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 0x140055904
mov rcx, qword [rbp + 0x7f]
mov r12, qword [rbp + 0x57]
mov qword [rcx], rax
neg rax
sbb edi, edi
neg edi
dec edi
jmp 0x140055900
mov r13, qword [rbp + 0x67]
xor edi, edi
mov r12, qword [rbp + 0x57]
jmp 0x140055904
mov r13, qword [rbp + 0x67]
or edi, 0xffffffff
mov r12, qword [rbp + 0x57]
jmp 0x140055904