Function at 0x140058940
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 0x1400589ef
mov rbx, qword [r13]
test rbx, rbx
je 0x1400589ef
mov rcx, qword [rbp + 0x6f]
movsxd rdi, dword [rcx]
test rdi, rdi
jle 0x1400589d2
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400589c4
call fcn.14017668c
mov qword [rbx], 0
add rbx, 0x10
sub rdi, 1
jne 0x1400589b0
mov rbx, qword [r13]
test rbx, rbx
je 0x1400589ea
mov rcx, rbx
call fcn.14017668c
xor ecx, ecx
mov qword [r13], rcx
or edi, 0xffffffff
jmp 0x1400589ef
or edi, 0xffffffff
xor ecx, ecx
mov rax, qword [rbp + 0x7f]
test rax, rax
je 0x1400589fb
mov qword [rax], rcx
mov rax, qword [rbp + 0x6f]
test rax, rax
je 0x140058a06
mov dword [rax], ecx
call fcn.140171a20
cmp r15d, eax
jne 0x140058a19
test r14d, r14d
je 0x140058b78
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.14003e7f0
mov qword [rbp - 0x61], rax
test rax, rax
jne 0x140058a79
mov r8, rsi
lea rdx, str.z_CreateFile_failed__s:__m
mov ecx, 0x610003
call fcn.140028ca0
jmp 0x140058b55
mov rcx, rsi
call fcn.140028530
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.140172320
test rax, rax
je 0x140058ad6
mov r8, rsi
lea rdx, str.NtCreateSection_failed___s_:__m
mov ecx, 0x610003
call fcn.140028ca0
jmp 0x140058b55
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.140172320
test rax, rax
je 0x140058b41
mov r8, rsi
lea rdx, str.NtMapViewOfSection_failed___s_:__m
mov ecx, 0x610003
call fcn.140028ca0
jmp 0x140058b55
mov eax, dword [rbp - 0x49]
mov ebx, r14d
mov dword [r12 + 8], eax
mov dword [r12 + 0xc], 1
lea rcx, [rbp - 0x69]
call fcn.14003e7b0
lea rcx, [rbp - 0x61]
call fcn.14003e7b0
test ebx, ebx
jne 0x140058cfb
mov dword [rbp + 0x47], 1
jmp 0x140058b7b
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.140059110
test eax, eax
jne 0x140058cd4
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 0x140058be8
cmp dword [rcx + 0x74], 0
jbe 0x140058c4d
lea r15, [rcx + 0x78]
jmp 0x140058c02
mov eax, 0x20b
cmp dx, ax
jne 0x140058c4d
cmp dword [rcx + 0x84], 0
jbe 0x140058c4d
lea r15, [rcx + 0x88]
mov qword [rbp - 0x51], r15
test r15, r15
je 0x140058c4d
mov r8d, dword [rbp - 0x11]
mov r9d, dword [r15]
test r8d, r8d
jne 0x140058c21
mov r10, qword [rbp - 0x41]
lea r13, [r9 + r10]
jmp 0x140058c7d
mov edx, r14d
test edi, edi
jle 0x140058c4d
lea rcx, [r11 + 0xc]
nop dword [rax]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140058c43
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140058c55
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140058c30
or edi, 0xffffffff
jmp 0x140058cd4
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x140058c4d
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 0x140058ccd
mov rdx, qword [rbp - 0x39]
mov rax, r13
sub rax, r10
cmp rax, rdx
ja 0x140058ccd
mov r9d, dword [r13 + 0x20]
test r8d, r8d
jne 0x140058ca3
lea rbx, [r9 + r10]
jmp 0x140058d55
mov edx, r14d
test edi, edi
jle 0x140058ccd
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140058cc3
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140058d2e
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140058cb0
or edi, 0xffffffff
mov r13, qword [rbp + 0x67]
cmp dword [rbp + 0x47], 0
je 0x140058cf7
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 0x140058d11
test r13, r13
je 0x140058d11
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x140058d11
mov rcx, rax
call fcn.14017668c
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 0x140058ccd
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 0x140058ccd
mov rax, rbx
sub rax, r10
cmp rax, rdx
ja 0x140058ccd
mov r9d, dword [r13 + 0x1c]
test r8d, r8d
jne 0x140058d80
lea rcx, [r9 + r10]
jmp 0x140058ddd
mov edx, r14d
test edi, edi
jle 0x140058ccd
lea rcx, [r11 + 0xc]
nop
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140058da3
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140058db2
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140058d90
jmp 0x140058ccd
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x140058ccd
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 0x140058ccd
mov rax, rcx
sub rax, r10
cmp rax, rdx
ja 0x140058ccd
mov r9d, dword [r13 + 0x24]
test r8d, r8d
jne 0x140058e08
lea rsi, [r9 + r10]
jmp 0x140058e60
mov edx, r14d
test edi, edi
jle 0x140058ccd
lea rcx, [r11 + 0xc]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140058e2a
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140058e39
inc edx
add rcx, 0x28
cmp edx, edi
jl 0x140058e17
jmp 0x140058ccd
movsxd rax, edx
lea rcx, [rax + rax*4]
lea rax, [r11 + rcx*8]
test rax, rax
je 0x140058ccd
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 0x140058ccd
mov rax, rsi
sub rax, r10
cmp rax, rdx
ja 0x140058ccd
mov eax, dword [r13 + 0x14]
test eax, eax
je 0x140058ccd
mov r15, qword [rbp + 0x67]
test r15, r15
je 0x140058eae
mov ecx, eax
mov edx, 1
shl rcx, 4
call fcn.140176684
mov r10, qword [rbp - 0x41]
mov rcx, rax
mov qword [rbp - 0x59], rax
mov eax, dword [r13 + 0x14]
jmp 0x140058eb2
mov rcx, qword [rbp - 0x59]
mov r12, qword [rbp + 0x77]
test eax, eax
je 0x140058fd8
lea r11, [rcx + 8]
mov qword [rbp - 0x69], r11
cmp r14d, dword [r13 + 0x18]
jae 0x140058fd4
cmp dword [rbp - 0x11], 0
movzx r15d, word [rsi]
mov r9d, dword [rbx]
jne 0x140058ee3
lea rbx, [r9 + r10]
jmp 0x140058f37
xor r8d, r8d
test edi, edi
jle 0x140058f0f
mov rbx, qword [rbp - 9]
lea rcx, [rbx + 0xc]
mov edx, dword [rcx]
cmp r9, rdx
jb 0x140058f03
mov eax, dword [rcx + 4]
add eax, edx
cmp r9, rax
jb 0x140058f18
inc r8d
add rcx, 0x28
cmp r8d, edi
jl 0x140058ef2
mov r12, qword [rbp + 0x57]
jmp 0x140058ccd
movsxd rax, r8d
lea rcx, [rax + rax*4]
lea rax, [rbx + rcx*8]
test rax, rax
je 0x140058f0f
mov ebx, dword [rax + 0x14]
mov eax, dword [rax + 0xc]
sub rbx, rax
add rbx, r9
add rbx, r10
test rbx, rbx
je 0x140058f0f
mov rax, rbx
sub rax, r10
cmp rax, qword [rbp - 0x39]
ja 0x140058f0f
test r12, r12
je 0x140058f60
mov rdx, rbx
mov rcx, r12
call fcn.140025e60
test eax, eax
jne 0x140058fa4
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 0x140058f82
add ecx, dword [r15 + 4]
cmp edx, ecx
jae 0x140058f82
xor eax, eax
jmp 0x140058f85
mov rax, rdx
test r12, r12
jne 0x140059019
movsxd rcx, r14d
mov rdx, rbx
shl rcx, 4
add rcx, qword [rbp - 0x59]
mov qword [r11], rax
call fcn.140026000
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 0x140058ec6
mov r15, qword [rbp + 0x67]
test r12, r12
jne 0x140059041
test r15, r15
je 0x140059032
mov rbx, qword [rbp - 0x59]
lea r9, [0x140059060]
mov rcx, rbx
mov edx, eax
lea r8d, [r12 + 0x10]
call fcn.140182640
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 0x140058cd4
mov rcx, qword [rbp + 0x7f]
mov r12, qword [rbp + 0x57]
mov qword [rcx], rax
neg rax
sbb edi, edi
neg edi
dec edi
jmp 0x140058cd0
mov r13, qword [rbp + 0x67]
xor edi, edi
mov r12, qword [rbp + 0x57]
jmp 0x140058cd4
mov r13, qword [rbp + 0x67]
or edi, 0xffffffff
mov r12, qword [rbp + 0x57]
jmp 0x140058cd4