Function at 0x140055310
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 0x1400553bf
mov rbx, qword [r13]
test rbx, rbx
je 0x1400553bf
mov rcx, qword [rbp + 0x6f]
movsxd rdi, dword [rcx]
test rdi, rdi
jle 0x1400553a2
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140055394
call fcn.1401760ac
mov qword [rbx], 0
add rbx, 0x10
sub rdi, 1
jne 0x140055380
mov rbx, qword [r13]
test rbx, rbx
je 0x1400553ba
mov rcx, rbx
call fcn.1401760ac
xor ecx, ecx
mov qword [r13], rcx
or edi, 0xffffffff
jmp 0x1400553bf
or edi, 0xffffffff
xor ecx, ecx
mov rax, qword [rbp + 0x7f]
test rax, rax
je 0x1400553cb
mov qword [rax], rcx
mov rax, qword [rbp + 0x6f]
test rax, rax
je 0x1400553d6
mov dword [rax], ecx
call fcn.140171710
cmp r15d, eax
jne 0x1400553e9
test r14d, r14d
je 0x140055548
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.1400536c0
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x140055449
mov r8, rsi
lea rdx, str.z_CreateFile_failed__s:__m
mov ecx, 0x550003
call fcn.14002d1f0
jmp 0x140055525
mov rcx, rsi
call fcn.14002ca80
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.140171010
test rax, rax
je 0x1400554a6
mov r8, rsi
lea rdx, str.NtCreateSection_failed___s_:__m
mov ecx, 0x550003
call fcn.14002d1f0
jmp 0x140055525
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.140171010
test rax, rax
je 0x140055511
mov r8, rsi
lea rdx, str.NtMapViewOfSection_failed___s_:__m
mov ecx, 0x550003
call fcn.14002d1f0
jmp 0x140055525
mov eax, dword [rbp - 0x49]
mov ebx, r14d
mov dword [r12 + 8], eax
mov dword [r12 + 0xc], 1
lea rcx, [rbp - 0x69]
call fcn.140053680
lea rcx, [rbp - 0x61]
call fcn.140053680
test ebx, ebx
jne 0x1400556cb
mov dword [rbp + 0x47], 1
jmp 0x14005554b
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.140055ae0
test eax, eax
jne 0x1400556a4
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 0x1400555b8
cmp dword [rcx + 0x74], 0
jbe 0x14005561d
lea r15, [rcx + 0x78]
jmp 0x1400555d2
mov eax, 0x20b
cmp dx, ax
jne 0x14005561d
cmp dword [rcx + 0x84], 0
jbe 0x14005561d
lea r15, [rcx + 0x88]
mov qword [rbp - 0x51], r15
test r15, r15
je 0x14005561d
mov r8d, dword [rbp - 0x11]
mov r9d, dword [r15]
test r8d, r8d
jne 0x1400555f1
mov r10, qword [rbp - 0x41]
lea r13, [r9 + r10]
jmp 0x14005564d
mov edx, r14d
test edi, edi
jle 0x14005561d
lea rcx, [r11 + 0xc]
nop dword [rax]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140055613
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140055625
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140055600
or edi, 0xffffffff
jmp 0x1400556a4
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005561d
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 0x14005569d
mov rdx, qword [rbp - 0x39]
mov rax, r13
sub rax, r10
cmp rax, rdx
ja 0x14005569d
mov r9d, dword [r13 + 0x20]
test r8d, r8d
jne 0x140055673
lea rbx, [r9 + r10]
jmp 0x140055725
mov edx, r14d
test edi, edi
jle 0x14005569d
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140055693
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x1400556fe
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140055680
or edi, 0xffffffff
mov r13, qword [rbp + 0x67]
cmp dword [rbp + 0x47], 0
je 0x1400556c7
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 0x1400556e1
test r13, r13
je 0x1400556e1
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x1400556e1
mov rcx, rax
call fcn.1401760ac
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 0x14005569d
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 0x14005569d
mov rax, rbx
sub rax, r10
cmp rax, rdx
ja 0x14005569d
mov r9d, dword [r13 + 0x1c]
test r8d, r8d
jne 0x140055750
lea rcx, [r9 + r10]
jmp 0x1400557ad
mov edx, r14d
test edi, edi
jle 0x14005569d
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140055773
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140055782
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140055760
jmp 0x14005569d
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005569d
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 0x14005569d
mov rax, rcx
sub rax, r10
cmp rax, rdx
ja 0x14005569d
mov r9d, dword [r13 + 0x24]
test r8d, r8d
jne 0x1400557d8
lea rsi, [r9 + r10]
jmp 0x140055830
mov edx, r14d
test edi, edi
jle 0x14005569d
lea rcx, [r11 + 0xc]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x1400557fa
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140055809
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x1400557e7
jmp 0x14005569d
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005569d
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 0x14005569d
mov rax, rsi
sub rax, r10
cmp rax, rdx
ja 0x14005569d
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x14005569d
mov r15, qword [rbp + 0x67]
test r15, r15
je 0x14005587e
mov ecx, eax
mov edx, 1
shl rcx, 4
call fcn.1401760a4
mov r10, qword [rbp - 0x41]
mov rcx, rax
mov qword [rbp - 0x59], rax
mov eax, dword [r13 + 0x14]
jmp 0x140055882
mov rcx, qword [rbp - 0x59]
mov r12, qword [rbp + 0x77]
test eax, eax
je 0x1400559a8
lea r11, [rcx + 8]
mov qword [rbp - 0x69], r11
cmp r14d, dword [r13 + 0x18]
jae 0x1400559a4
cmp dword [rbp - 0x11], 0
movzx r15d, word [rsi]
mov r9d, dword [rbx]
jne 0x1400558b3
lea rbx, [r9 + r10]
jmp 0x140055907
xor r8d, r8d
test edi, edi
jle 0x1400558df
mov rbx, qword [rbp - 9]
lea rcx, [rbx + 0xc]
mov edx, dword [rcx]
cmp r9, rdx
jb 0x1400558d3
mov eax, dword [rcx + 4]
add eax, edx
cmp r9, rax
jb 0x1400558e8
inc r8d
add rcx, 0x28
cmp r8d, edi
jl 0x1400558c2
mov r12, qword [rbp + 0x57]
jmp 0x14005569d
movsxd rax, r8d
lea rcx, [rax + rax*4]
lea rax, [rbx + rcx*8]
test rax, rax
je 0x1400558df
mov ebx, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
sub rbx, rax
add rbx, r9
add rbx, r10
test rbx, rbx
je 0x1400558df
mov rax, rbx
sub rax, r10
cmp rax, qword [rbp - 0x39]
ja 0x1400558df
test r12, r12
je 0x140055930
mov rdx, rbx
mov rcx, r12
call fcn.140029e80
test eax, eax
jne 0x140055974
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 0x140055952
add ecx, dword [r15 + 4]
cmp edx, ecx
jae 0x140055952
xor eax, eax
jmp 0x140055955
mov rax, rdx
test r12, r12
jne 0x1400559e9
movsxd rcx, r14d
mov rdx, rbx
shl rcx, 4
add rcx, qword [rbp - 0x59]
mov qword [r11], rax
call fcn.14002a020
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 0x140055896
mov r15, qword [rbp + 0x67]
test r12, r12
jne 0x140055a11
test r15, r15
je 0x140055a02
mov rbx, qword [rbp - 0x59]
lea r9, [0x140055a30]
mov rcx, rbx
mov edx, eax
lea r8d, [r12 + 0x10]
call fcn.14017d5a0
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 0x1400556a4
mov rcx, qword [rbp + 0x7f]
mov r12, qword [rbp + 0x57]
mov qword [rcx], rax
neg rax
sbb edi, edi
neg edi
dec edi
jmp 0x1400556a0
mov r13, qword [rbp + 0x67]
xor edi, edi
mov r12, qword [rbp + 0x57]
jmp 0x1400556a4
mov r13, qword [rbp + 0x67]
or edi, 0xffffffff
mov r12, qword [rbp + 0x57]
jmp 0x1400556a4