Function at 0x140018470
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r13
sub rsp, 0x38
movzx eax, word [rdx + 0x14]
lea r8, [rdx + 0x18]
mov r9d, dword [rdx + 0x90]
add r8, rax
movzx eax, word [rdx + 6]
mov rbp, rdx
lea rcx, [rax + rax*4]
lea r10, [r8 + rcx*8]
cmp r8, r10
jae 0x1400184c3
mov ecx, dword [r8 + 0xc]
cmp r9, rcx
jb 0x1400184ba
mov eax, dword [r8 + 8]
add eax, ecx
cmp r9, rax
jb 0x140018564
add r8, 0x28
cmp r8, r10
jb 0x1400184a2
mov r13d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x50], r13
test r9d, r9d
je 0x14001853c
cmp dword [rdx + 0x94], 0
je 0x14001853c
lea rbx, [0x1401975a0]
movzx eax, word [rbp + 0x14]
lea rdx, [rbp + 0x18]
mov r8d, dword [r13 - 4]
add rdx, rax
movzx eax, word [rbp + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14001853c
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140018533
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001857d
add rdx, 0x28
cmp rdx, r9
jb 0x140018521
mov al, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
pop r13
pop rbp
ret
mov r13d, dword [r8 + 0x14]
lea rax, [0x1401975b0]
sub r13, rcx
add r13, r9
add r13, rax
jmp 0x1400184c9
mov r15d, dword [rdx + 0x14]
sub r15, rcx
add r15, r8
add r15, rbx
je 0x14001853c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x1400186c1
movzx ecx, word [rbp + 0x14]
lea r8, [rbp + 0x18]
mov r9d, dword [r13]
add r8, rcx
movzx ecx, word [rbp + 6]
lea rdx, [rcx + rcx*4]
lea r10, [r8 + rdx*8]
cmp r8, r10
jae 0x1400185de
mov ecx, dword [r8 + 0xc]
cmp r9, rcx
jb 0x1400185d5
mov eax, dword [r8 + 8]
add eax, ecx
cmp r9, rax
jb 0x14001860a
add r8, 0x28
cmp r8, r10
jb 0x1400185c1
xor r14d, r14d
mov rdi, qword [r14]
test rdi, rdi
je 0x1400186a5
lea r13, [0x1401975a2]
jns 0x140018619
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movzx edx, di
jmp 0x140018667
mov r14d, dword [r8 + 0x14]
sub r14, rcx
add r14, r9
add r14, rbx
jmp 0x1400185e1
movzx eax, word [rbp + 0x14]
movzx ecx, word [rbp + 6]
add rax, 0x18
add rax, rbp
lea rdx, [rcx + rcx*4]
lea r8, [rax + rdx*8]
cmp rax, r8
jae 0x140018650
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x140018647
mov ecx, dword [rax + 8]
add ecx, edx
cmp rdi, rcx
jb 0x1400186b3
add rax, 0x28
cmp rax, r8
jb 0x140018635
mov esi, 2
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov rcx, rbx
sub rdi, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rdi + r12]
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
jne 0x1400185f4
mov r13, qword [rsp + 0x50]
lea rbx, [0x1401975a0]
add r13, 0x14
mov qword [rsp + 0x50], r13
jmp 0x140018501
mov esi, dword [rax + 0x14]
sub rsi, rdx
add rsi, rdi
add rsi, r13
jmp 0x140018655
jmp 0x14001853e