Function at 0x18000ca40
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18002f108]
xor rax, rsp
mov qword [rsp + 0x38], rax
inc word [0x1806b75e0]
mov r13, rcx
mov rsi, qword [rcx + 8]
mov r14, rdx
movzx ecx, byte [rsi]
sub ecx, 2
je 0x18000d53a
sub ecx, 0x84
je 0x18000d183
sub ecx, 1
je 0x18000ce47
sub ecx, 1
je 0x18000ccad
cmp ecx, 1
je 0x18000cab6
inc word [0x1806b75ee]
inc word [0x1806b75e4]
jmp 0x18000d5ac
movzx eax, word [r13 + 0x12]
cmp ax, 0x28
jb 0x18000ccb8
xor ebp, ebp
lea r15, [rsi + 0x28]
cmp ax, 0x30
lea rax, [rsi + 0x18]
cmovb r15, rbp
test rax, rax
jne 0x18000caed
mov qword [0x1806b7abc], rbp
mov eax, ebp
mov dword [0x1806b7ac4], ebp
jmp 0x18000cb0a
mov eax, dword [rax]
mov dword [0x1806b7abc], eax
mov eax, dword [rsi + 0x1c]
mov dword [0x1806b7ac0], eax
mov eax, dword [rsi + 0x20]
mov dword [0x1806b7ac4], eax
mov eax, dword [rsi + 0x24]
lea rcx, [0x1806b7abc]
mov dword [0x1806b7ac8], eax
call fcn.18000c2e0
test al, al
js 0x18000d5ac
movsx rax, al
lea rdx, [rsi + 8]
lea rbx, [0x180000000]
lea rcx, [rax + rax*4]
shl rcx, 3
test rdx, rdx
jne 0x18000cb53
mov qword [rcx + rbx + 0x6b7710], rbp
mov eax, ebp
mov dword [rcx + rbx + 0x6b7718], ebp
jmp 0x18000cb73
mov eax, dword [rdx]
mov dword [rcx + rbx + 0x6b7710], eax
mov eax, dword [rsi + 0xc]
mov dword [rcx + rbx + 0x6b7714], eax
mov eax, dword [rsi + 0x10]
mov dword [rcx + rbx + 0x6b7718], eax
mov eax, dword [rsi + 0x14]
mov dword [rcx + rbx + 0x6b771c], eax
test r15, r15
je 0x18000d5ac
cmp byte [r15], 2
jne 0x18000d5ac
test rdx, rdx
jne 0x18000cba1
mov qword [0x1806b7abc], rbp
mov dword [0x1806b7ac4], ebp
jmp 0x18000cbbe
mov eax, dword [rdx]
mov dword [0x1806b7abc], eax
mov eax, dword [rsi + 0xc]
mov dword [0x1806b7ac0], eax
mov eax, dword [rsi + 0x10]
mov dword [0x1806b7ac4], eax
mov ebp, dword [rsi + 0x14]
lea rcx, [0x1806b7abc]
mov dword [0x1806b7ac8], ebp
call fcn.18000c330
movzx esi, al
test al, al
jns 0x18000cc60
call fcn.18000d5e0
movsx rsi, al
test al, al
js 0x18000d5ac
add r15, 2
lea rdi, [rsi + rsi*2]
shl rdi, 4
mov rdx, r15
mov qword [rdi + rbx + 0x6b78b0], r14
lea rcx, [rdi + 0x6b78b8]
movzx r8d, byte [r14 + 0x74]
add rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x1806b7abc]
mov dword [rdi + rbx + 0x6b78a0], eax
mov eax, dword [0x1806b7ac0]
mov dword [rdi + rbx + 0x6b78a4], eax
mov eax, dword [0x1806b7ac4]
mov dword [rdi + rbx + 0x6b78a8], eax
mov eax, dword [0x1806b7ac8]
mov dword [rdi + rbx + 0x6b78ac], eax
mov byte [rdi + rbx + 0x6b78c8], 4
mov dword [rdi + rbx + 0x6b78cc], 0x1388
jmp 0x18000cc64
add r15, 2
movzx eax, sil
lea rdi, [rax + rax*2]
shl rdi, 4
cmp byte [rdi + rbx + 0x6b78c8], 1
jne 0x18000d5ac
movzx r8d, byte [r14 + 0x74]
lea rcx, [rbx + 0x6b78b8]
add rcx, rdi
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx + 0x6b78c8], 4
mov dword [rdi + rbx + 0x6b78cc], 0x1388
jmp 0x18000d5ac
movzx eax, word [r13 + 0x12]
cmp ax, 0x18
jae 0x18000ccd3
mov rcx, r13
call fcn.18000efe0
inc word [0x1806b75e8]
inc word [0x1806b75e4]
jmp 0x18000d5b4
cmp byte [0x1806b7acc], 0xff
jne 0x18000cd6a
cmp ax, 0x20
jb 0x18000ccb8
lea rax, [rsi + 8]
test rax, rax
jne 0x18000cd00
xor ebp, ebp
mov qword [0x1806b7acc], rbp
mov dword [0x1806b7ad4], ebp
jmp 0x18000cd1d
mov eax, dword [rax]
mov dword [0x1806b7acc], eax
mov eax, dword [rsi + 0xc]
mov dword [0x1806b7ad0], eax
mov eax, dword [rsi + 0x10]
mov dword [0x1806b7ad4], eax
mov ebp, dword [rsi + 0x14]
lea rcx, [0x1806b7acc]
mov dword [0x1806b7ad8], ebp
call fcn.18000c330
test al, al
js 0x18000d5ac
test byte [rsi + 4], 0x20
je 0x18000d5ac
movzx r8d, byte [r14 + 0x74]
lea rdx, [rsi + 0x1a]
movsx rax, al
lea rcx, [rax + rax*2]
shl rcx, 4
lea rax, [0x1806b78b8]
add rcx, rax
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18000d5ac
lea rax, [rsi + 8]
test rax, rax
jne 0x18000cd84
xor ebp, ebp
mov qword [0x1806b7acc], rbp
mov dword [0x1806b7ad4], ebp
jmp 0x18000cda1
mov eax, dword [rax]
mov dword [0x1806b7acc], eax
mov eax, dword [rsi + 0xc]
mov dword [0x1806b7ad0], eax
mov eax, dword [rsi + 0x10]
mov dword [0x1806b7ad4], eax
mov ebp, dword [rsi + 0x14]
lea rcx, [0x1806b7acc]
mov dword [0x1806b7ad8], ebp
call fcn.18000c330
movsx rbp, al
test al, al
js 0x18000d5ac
mov eax, dword [0x18002f040]
lea rbx, [0x180000000]
lea rdi, [rbp*2]
add rdi, rbp
shl rdi, 4
mov qword [rdi + rbx + 0x6b78b0], r14
mov dword [rdi + rbx + 0x6b78cc], eax
test byte [rsi + 4], 0x20
jne 0x18000cdfa
cmp byte [rdi + rbx + 0x6b78c8], 1
jne 0x18000ce22
cmp word [r13 + 0x12], 0x20
jb 0x18000ccb8
mov rdx, qword [r13 + 8]
lea rcx, [rbx + 0x6b78b8]
movzx r8d, byte [r14 + 0x74]
add rdx, 0x1a
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
cmp qword [rdi + rbx + 0x6b78c0], 0
mov byte [rdi + rbx + 0x6b78c8], 2
je 0x18000d5ac
movzx ecx, bpl
call fcn.18000df90
jmp 0x18000d5ac
movzx eax, word [r13 + 0x12]
cmp ax, 0x18
jb 0x18000ccb8
mov ebx, dword [0x1806b7ac8]
lea rdi, [rsi + 0x18]
mov r11d, dword [0x1806b7ac4]
lea r15, [rsi + 8]
mov r10d, dword [0x1806b7ac0]
xor ebp, ebp
mov r9d, dword [0x1806b7abc]
cmp ax, 0x20
cmovb rdi, rbp
xor dl, dl
mov qword [rsp + 0x20], rdi
nop word [rax + rax]
movsx r8, dl
movzx eax, byte [r8 + r14 + 0x44]
test al, 0x10
jne 0x18000ceb5
test al, 8
je 0x18000cef0
test r9d, r9d
jne 0x18000cef0
test r10d, r10d
jne 0x18000cef0
test r11d, r11d
jne 0x18000cef0
test ebx, ebx
jne 0x18000cef0
mov rcx, r8
add rcx, rcx
mov eax, dword [r14 + rcx*8 + 0x14]
cmp dword [r15], eax
jne 0x18000cef0
mov eax, dword [r14 + rcx*8 + 0x18]
cmp dword [r15 + 4], eax
jne 0x18000cef0
mov eax, dword [r14 + rcx*8 + 0x1c]
cmp dword [r15 + 8], eax
jne 0x18000cef0
lea rax, [r8 + 2]
add rax, rax
mov eax, dword [r14 + rax*8]
cmp dword [r15 + 0xc], eax
je 0x18000cfb0
inc dl
cmp dl, 3
jl 0x18000ce90
mov rax, qword [0x1806b7610]
test rax, rax
je 0x18000d5ac
mov ecx, dword [r15]
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rsp + 0x2c], ecx
mov ecx, dword [rsi + 0x10]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rsi + 0x14]
mov dword [rsp + 0x34], ecx
mov rcx, r14
call qword [case.0x180016895.0]
test eax, eax
je 0x18000d5ac
mov ebx, dword [0x1806b7ac8]
mov r12b, 1
mov r11d, dword [0x1806b7ac4]
mov r10d, dword [0x1806b7ac0]
mov r9d, dword [0x1806b7abc]
test r9d, r9d
jne 0x18000d00e
test r10d, r10d
jne 0x18000d00e
test r11d, r11d
jne 0x18000d00e
test ebx, ebx
jne 0x18000d00e
test r12b, r12b
je 0x18000cfb5
mov eax, dword [r15]
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x28], eax
mov r8b, 2
mov eax, dword [rsi + 0xc]
mov rcx, r14
mov dword [rsp + 0x2c], eax
mov eax, dword [rsi + 0x10]
mov dword [rsp + 0x30], eax
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x34], eax
call fcn.18000dc60
jmp 0x18000d5ac
xor r12b, r12b
jmp 0x18000cf57
lea rdi, [r14 + 0x44]
mov ebp, 3
lea rbx, [r14 + 0x14]
cmp byte [rdi], 0
je 0x18000cffc
mov eax, dword [rbx]
cmp dword [r15], eax
jne 0x18000cffc
mov eax, dword [rbx + 4]
cmp dword [rsi + 0xc], eax
jne 0x18000cffc
mov eax, dword [rbx + 8]
cmp dword [rsi + 0x10], eax
jne 0x18000cffc
mov eax, dword [rbx + 0xc]
cmp dword [rsi + 0x14], eax
jne 0x18000cffc
mov r8b, reloc.OLEAUT32.dll_RegisterTypeLib
mov rdx, rbx
mov rcx, r14
call fcn.18000dc60
test byte [rdi], 8
je 0x18000cffc
mov byte [rdi], 0
add rbx, 0x10
inc rdi
sub rbp, 1
jne 0x18000cfc2
jmp 0x18000d5ac
test rdi, rdi
jne 0x18000d02e
mov rcx, r13
call fcn.18000efe0
inc word [0x1806b75ee]
inc word [0x1806b75e4]
jmp 0x18000d5b4
lea rcx, [0x1806b7abc]
call fcn.18000c330
test al, al
js 0x18000d089
movsx rax, al
lea rbx, [0x180000000]
lea rdi, [rax + rax*2]
shl rdi, 4
cmp byte [rdi + rbx + 0x6b78c8], 1
jne 0x18000d125
mov rdx, qword [rsp + 0x20]
lea rcx, [rbx + 0x6b78b8]
mov qword [rdi + rbx + 0x6b78b0], r14
add rdx, 2
movzx r8d, byte [r14 + 0x74]
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18000d112
call fcn.18000d5e0
test al, al
jns 0x18000d0a6
mov rcx, r13
call fcn.18000efe0
inc word [0x1806b75ea]
jmp 0x18000d5b4
mov rdx, qword [rsp + 0x20]
lea rbx, [0x180000000]
movsx rax, al
lea rcx, [rbx + 0x6b78b8]
add rdx, 2
lea rdi, [rax + rax*2]
shl rdi, 4
add rcx, rdi
mov qword [rdi + rbx + 0x6b78b0], r14
movzx r8d, byte [r14 + 0x74]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [0x1806b7abc]
mov dword [rdi + rbx + 0x6b78a0], eax
mov eax, dword [0x1806b7ac0]
mov dword [rdi + rbx + 0x6b78a4], eax
mov eax, dword [0x1806b7ac4]
mov dword [rdi + rbx + 0x6b78a8], eax
mov eax, dword [0x1806b7ac8]
mov dword [rdi + rbx + 0x6b78ac], eax
mov dword [rdi + rbx + 0x6b78cc], 0x1388
mov byte [rdi + rbx + 0x6b78c8], 4
test r15, r15
jne 0x18000d139
mov qword [0x1806b7acc], rbp
mov dword [0x1806b7ad4], ebp
jmp 0x18000d157
mov eax, dword [r15]
mov dword [0x1806b7acc], eax
mov eax, dword [rsi + 0xc]
mov dword [0x1806b7ad0], eax
mov eax, dword [rsi + 0x10]
mov dword [0x1806b7ad4], eax
mov ebp, dword [rsi + 0x14]
test r12b, r12b
mov dword [0x1806b7ad8], ebp
mov ecx, 0x40
lea rdx, [0x1806b7acc]
mov r8d, 0xe0
cmovne r8d, ecx
mov rcx, r14
call fcn.18000dc60
jmp 0x18000d5ac
cmp word [r13 + 0x12], 0x10
jb 0x18000ccb8
mov r8d, dword [0x1806b7ac8]
lea rbx, [0x180000000]
mov r10d, dword [0x1806b7ac4]
xor cl, cl
mov r11d, dword [0x1806b7ac0]
mov edi, dword [0x1806b7abc]
movsx rax, cl
xor ebp, ebp
add rax, rax
mov rdx, qword [rbx + rax*8 + 0x6b7620]
test rdx, rdx
je 0x18000d1ea
test r14, r14
je 0x18000d1d4
cmp r14, qword [rdx + 0x10]
jne 0x18000d1ea
cmp edi, dword [rdx]
jne 0x18000d1ea
cmp r11d, dword [rdx + 4]
jne 0x18000d1ea
cmp r10d, dword [rdx + 8]
jne 0x18000d1ea
cmp r8d, dword [rdx + 0xc]
je 0x18000d1f3
inc cl
cmp cl, 3
jl 0x18000d1b3
jmp 0x18000d1fb
test cl, cl
jns 0x18000d324
xor r9b, r9b
nop
movsx rax, r9b
lea rcx, [rax + rax*2]
add rcx, rcx
cmp edi, dword [rbx + rcx*8 + 0x6b78a0]
jne 0x18000d232
cmp r11d, dword [rbx + rcx*8 + 0x6b78a4]
jne 0x18000d232
cmp r10d, dword [rbx + rcx*8 + 0x6b78a8]
jne 0x18000d232
cmp r8d, dword [rbx + rcx*8 + 0x6b78ac]
je 0x18000d23d
inc r9b
cmp r9b, 0xa
jl 0x18000d200
jmp 0x18000d242
test r9b, r9b
jns 0x18000d2b3
call fcn.18000d5e0
movsx r9, al
test al, al
js 0x18000d092
mov eax, dword [0x1806b7ac4]
lea r8, [r9 + r9*2]
mov edx, dword [0x1806b7abc]
add r8, r8
mov ecx, dword [0x1806b7ac0]
mov dword [rbx + r8*8 + 0x6b78a8], eax
mov eax, dword [0x1806b7ac8]
mov dword [rbx + r8*8 + 0x6b78ac], eax
mov dword [rbx + r8*8 + 0x6b78a0], edx
mov dword [rbx + r8*8 + 0x6b78a4], ecx
mov qword [rbx + r8*8 + 0x6b78b0], r14
mov qword [rbx + r8*8 + 0x6b78c0], rbp
mov byte [rbx + r8*8 + 0x6b78c8], 1
mov dword [rbx + r8*8 + 0x6b78cc], ebp
movzx eax, r9b
lea r8, [rax + rax*2]
shl r8, 4
xor cl, cl
mov byte [rbx + r8 + 0x6b78c9], 1
nop word [rax + rax]
movsx rdx, cl
mov rax, rdx
add rax, rax
cmp qword [rbx + rax*8 + 0x6b7620], rbp
je 0x18000d307
inc cl
cmp cl, 3
jl 0x18000d2d0
mov rcx, r13
mov byte [rbx + r8 + 0x6b78c9], bpl
call fcn.18000efe0
inc word [0x1806b75ea]
jmp 0x18000d5b4
add rdx, rdx
lea rax, [rbx + 0x6b78a0]
add rax, r8
mov qword [rbx + rdx*8 + 0x6b7620], rax
test cl, cl
js 0x18000d092
movzx eax, word [rsi + 6]
movzx r15d, cl
add r15, r15
mov dword [rbx + r15*8 + 0x6b7628], eax
movzx eax, byte [rsi + 5]
mov esi, reloc.WS2_32.dll_recv
mov byte [rbx + r15*8 + 0x6b762c], al
movzx edx, word [r13 + 0x10]
cmp dx, si
jbe 0x18000d5ac
lea r12, [0x18002f728]
nop dword [rax]
cmp word [r13 + 0x12], dx
jne 0x18000d370
movzx edi, si
add rdi, qword [r13 + 8]
jmp 0x18000d388
mov r8d, 0x20
movzx r9d, si
mov rdx, r12
mov rcx, r13
mov rdi, r12
call fcn.18000eec0
movzx ecx, byte [rdi]
sub ecx, 1
je 0x18000d4d6
sub ecx, 2
je 0x18000d3b7
sub ecx, 2
je 0x18000d518
cmp ecx, 0x13
je 0x18000d518
inc word [0x1806b75ee]
jmp 0x18000d518
cmp byte [rdi + 3], bpl
jge 0x18000d518
lea rax, [rdi + 0x10]
test rax, rax
jne 0x18000d3e5
mov qword [0x1806b7acc], rbp
mov r8d, ebp
mov r10d, ebp
mov dword [0x1806b7ad4], ebp
mov r11d, ebp
mov r9d, ebp
jmp 0x18000d409
mov r9d, dword [rax]
mov dword [0x1806b7acc], r9d
mov r8d, dword [rdi + 0x14]
mov dword [0x1806b7ad0], r8d
mov r10d, dword [rdi + 0x18]
mov dword [0x1806b7ad4], r10d
mov r11d, dword [rdi + 0x1c]
mov dword [0x1806b7ad8], r11d
xor al, al
nop dword [rax]
nop word [rax + rax]
movsx rcx, al
shl rcx, 5
cmp dword [rcx + rbx + 0x6b7660], r9d
jne 0x18000d446
cmp dword [rcx + rbx + 0x6b7664], r8d
jne 0x18000d446
cmp qword [rcx + rbx + 0x6b7670], r14
je 0x18000d44e
inc al
cmp al, 5
jl 0x18000d420
jmp 0x18000d452
test al, al
jns 0x18000d4b5
xor al, al
movsx rdx, al
mov rcx, rdx
shl rcx, 5
cmp qword [rcx + rbx + 0x6b7670], rbp
je 0x18000d47d
cmp dword [rcx + rbx + 0x6b7678], ebp
je 0x18000d47d
inc al
cmp al, 5
jl 0x18000d454
jmp 0x18000d518
shl rdx, 5
mov qword [rdx + rbx + 0x6b7670], r14
mov dword [rdx + rbx + 0x6b7660], r9d
mov dword [rdx + rbx + 0x6b7664], r8d
mov dword [rdx + rbx + 0x6b7668], r10d
mov dword [rdx + rbx + 0x6b766c], r11d
mov byte [rdx + rbx + 0x6b767c], bpl
test al, al
js 0x18000d518
movzx ecx, al
mov eax, dword [rdi + 4]
shl rcx, 5
mov dword [rcx + rbx + 0x6b7678], eax
test byte [rdi + 3], 0x40
je 0x18000d518
or byte [rcx + rbx + 0x6b767c], 1
jmp 0x18000d518
mov rcx, qword [rbx + r15*8 + 0x6b7620]
test rcx, rcx
je 0x18000d518
cmp byte [rcx + 0x28], 1
jne 0x18000d518
movzx r8d, byte [r14 + 0x74]
lea rdx, [rdi + 2]
add rcx, 0x18
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + r15*8 + 0x6b7620]
mov byte [rax + 0x28], 2
mov rcx, qword [rbx + r15*8 + 0x6b7620]
mov eax, dword [0x18002f040]
mov dword [rcx + 0x2c], eax
movzx eax, byte [rdi + 1]
movzx ecx, word [r13 + 0x10]
shl ax, 3
movzx edx, cx
add si, ax
movzx eax, si
sub ecx, eax
test ecx, ecx
jg 0x18000d360
jmp 0x18000d5ac
cmp word [r13 + 0x12], 0x30
jb 0x18000ccb8
lea rax, [rsi + 0x20]
test rax, rax
jne 0x18000d560
xor ebp, ebp
mov qword [0x1806b7abc], rbp
mov dword [0x1806b7ac4], ebp
jmp 0x18000d57d
mov eax, dword [rax]
mov dword [0x1806b7abc], eax
mov eax, dword [rsi + 0x24]
mov dword [0x1806b7ac0], eax
mov eax, dword [rsi + 0x28]
mov dword [0x1806b7ac4], eax
mov ebp, dword [rsi + 0x2c]
lea rcx, [0x1806b7abc]
mov dword [0x1806b7ac8], ebp
call fcn.18000c2e0
test al, al
js 0x18000d5ac
movsx rax, al
lea rbx, [0x180000000]
lea rcx, [rax + rax*4]
mov eax, dword [rsi + 4]
mov dword [rbx + rcx*8 + 0x6b7720], eax
mov rcx, r13
call fcn.18000efe0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18001f500
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret