Function at 0x140055370
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 0x14005541f
mov rbx, qword [r13]
test rbx, rbx
je 0x14005541f
mov rcx, qword [rbp + 0x6f]
movsxd rdi, dword [rcx]
test rdi, rdi
jle 0x140055402
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400553f4
call fcn.14017610c
mov qword [rbx], 0
add rbx, 0x10
sub rdi, 1
jne 0x1400553e0
mov rbx, qword [r13]
test rbx, rbx
je 0x14005541a
mov rcx, rbx
call fcn.14017610c
xor ecx, ecx
mov qword [r13], rcx
or edi, 0xffffffff
jmp 0x14005541f
or edi, 0xffffffff
xor ecx, ecx
mov rax, qword [rbp + 0x7f]
test rax, rax
je 0x14005542b
mov qword [rax], rcx
mov rax, qword [rbp + 0x6f]
test rax, rax
je 0x140055436
mov dword [rax], ecx
call fcn.140171770
cmp r15d, eax
jne 0x140055449
test r14d, r14d
je 0x1400555a8
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.140053720
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x1400554a9
mov r8, rsi
lea rdx, str.z_CreateFile_failed__s:__m
mov ecx, 0x550003
call fcn.14002d250
jmp 0x140055585
mov rcx, rsi
call fcn.14002cae0
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.140171070
test rax, rax
je 0x140055506
mov r8, rsi
lea rdx, str.NtCreateSection_failed___s_:__m
mov ecx, 0x550003
call fcn.14002d250
jmp 0x140055585
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.140171070
test rax, rax
je 0x140055571
mov r8, rsi
lea rdx, str.NtMapViewOfSection_failed___s_:__m
mov ecx, 0x550003
call fcn.14002d250
jmp 0x140055585
mov eax, dword [rbp - 0x49]
mov ebx, r14d
mov dword [r12 + 8], eax
mov dword [r12 + 0xc], 1
lea rcx, [rbp - 0x69]
call fcn.1400536e0
lea rcx, [rbp - 0x61]
call fcn.1400536e0
test ebx, ebx
jne 0x14005572b
mov dword [rbp + 0x47], 1
jmp 0x1400555ab
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.140055b40
test eax, eax
jne 0x140055704
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 0x140055618
cmp dword [rcx + 0x74], 0
jbe 0x14005567d
lea r15, [rcx + 0x78]
jmp 0x140055632
mov eax, 0x20b
cmp dx, ax
jne 0x14005567d
cmp dword [rcx + 0x84], 0
jbe 0x14005567d
lea r15, [rcx + 0x88]
mov qword [rbp - 0x51], r15
test r15, r15
je 0x14005567d
mov r8d, dword [rbp - 0x11]
mov r9d, dword [r15]
test r8d, r8d
jne 0x140055651
mov r10, qword [rbp - 0x41]
lea r13, [r9 + r10]
jmp 0x1400556ad
mov edx, r14d
test edi, edi
jle 0x14005567d
lea rcx, [r11 + 0xc]
nop dword [rax]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140055673
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140055685
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140055660
or edi, 0xffffffff
jmp 0x140055704
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x14005567d
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 0x1400556fd
mov rdx, qword [rbp - 0x39]
mov rax, r13
sub rax, r10
cmp rax, rdx
ja 0x1400556fd
mov r9d, dword [r13 + 0x20]
test r8d, r8d
jne 0x1400556d3
lea rbx, [r9 + r10]
jmp 0x140055785
mov edx, r14d
test edi, edi
jle 0x1400556fd
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x1400556f3
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x14005575e
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x1400556e0
or edi, 0xffffffff
mov r13, qword [rbp + 0x67]
cmp dword [rbp + 0x47], 0
je 0x140055727
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 0x140055741
test r13, r13
je 0x140055741
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x140055741
mov rcx, rax
call fcn.14017610c
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 0x1400556fd
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 0x1400556fd
mov rax, rbx
sub rax, r10
cmp rax, rdx
ja 0x1400556fd
mov r9d, dword [r13 + 0x1c]
test r8d, r8d
jne 0x1400557b0
lea rcx, [r9 + r10]
jmp 0x14005580d
mov edx, r14d
test edi, edi
jle 0x1400556fd
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x1400557d3
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x1400557e2
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x1400557c0
jmp 0x1400556fd
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x1400556fd
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 0x1400556fd
mov rax, rcx
sub rax, r10
cmp rax, rdx
ja 0x1400556fd
mov r9d, dword [r13 + 0x24]
test r8d, r8d
jne 0x140055838
lea rsi, [r9 + r10]
jmp 0x140055890
mov edx, r14d
test edi, edi
jle 0x1400556fd
lea rcx, [r11 + 0xc]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x14005585a
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140055869
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140055847
jmp 0x1400556fd
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x1400556fd
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 0x1400556fd
mov rax, rsi
sub rax, r10
cmp rax, rdx
ja 0x1400556fd
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x1400556fd
mov r15, qword [rbp + 0x67]
test r15, r15
je 0x1400558de
mov ecx, eax
mov edx, 1
shl rcx, 4
call fcn.140176104
mov r10, qword [rbp - 0x41]
mov rcx, rax
mov qword [rbp - 0x59], rax
mov eax, dword [r13 + 0x14]
jmp 0x1400558e2
mov rcx, qword [rbp - 0x59]
mov r12, qword [rbp + 0x77]
test eax, eax
je 0x140055a08
lea r11, [rcx + 8]
mov qword [rbp - 0x69], r11
cmp r14d, dword [r13 + 0x18]
jae 0x140055a04
cmp dword [rbp - 0x11], 0
movzx r15d, word [rsi]
mov r9d, dword [rbx]
jne 0x140055913
lea rbx, [r9 + r10]
jmp 0x140055967
xor r8d, r8d
test edi, edi
jle 0x14005593f
mov rbx, qword [rbp - 9]
lea rcx, [rbx + 0xc]
mov edx, dword [rcx]
cmp r9, rdx
jb 0x140055933
mov eax, dword [rcx + 4]
add eax, edx
cmp r9, rax
jb 0x140055948
inc r8d
add rcx, 0x28
cmp r8d, edi
jl 0x140055922
mov r12, qword [rbp + 0x57]
jmp 0x1400556fd
movsxd rax, r8d
lea rcx, [rax + rax*4]
lea rax, [rbx + rcx*8]
test rax, rax
je 0x14005593f
mov ebx, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
sub rbx, rax
add rbx, r9
add rbx, r10
test rbx, rbx
je 0x14005593f
mov rax, rbx
sub rax, r10
cmp rax, qword [rbp - 0x39]
ja 0x14005593f
test r12, r12
je 0x140055990
mov rdx, rbx
mov rcx, r12
call fcn.140029ee0
test eax, eax
jne 0x1400559d4
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 0x1400559b2
add ecx, dword [r15 + 4]
cmp edx, ecx
jae 0x1400559b2
xor eax, eax
jmp 0x1400559b5
mov rax, rdx
test r12, r12
jne 0x140055a49
movsxd rcx, r14d
mov rdx, rbx
shl rcx, 4
add rcx, qword [rbp - 0x59]
mov qword [r11], rax
call fcn.14002a080
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 0x1400558f6
mov r15, qword [rbp + 0x67]
test r12, r12
jne 0x140055a71
test r15, r15
je 0x140055a62
mov rbx, qword [rbp - 0x59]
lea r9, [0x140055a90]
mov rcx, rbx
mov edx, eax
lea r8d, [r12 + 0x10]
call fcn.14017d600
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 0x140055704
mov rcx, qword [rbp + 0x7f]
mov r12, qword [rbp + 0x57]
mov qword [rcx], rax
neg rax
sbb edi, edi
neg edi
dec edi
jmp 0x140055700
mov r13, qword [rbp + 0x67]
xor edi, edi
mov r12, qword [rbp + 0x57]
jmp 0x140055704
mov r13, qword [rbp + 0x67]
or edi, 0xffffffff
mov r12, qword [rbp + 0x57]
jmp 0x140055704