Function at 0x140335040
Capabilities:
Enumerate pe sections

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x398
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x50], rdx
mov rdi, rcx
mov rax, qword [rsp + 0x400]
mov qword [rsp + 0x58], rax
xor r12d, r12d
mov eax, dword [rsp + 0x408]
and eax, 1
mov dword [rsp + 0x34], eax
je 0x1403350b9
mov r12d, reloc.WS2_32.dll_sendto
cmp r9d, 0xec
jle 0x1403350b9
mov dword [rsp + 0x30], 0xec
call fcn.1402d0f50
movsxd rbp, eax
mov rcx, rdi
call fcn.1402d1fa0
mov r14d, eax
movd xmm6, eax
pshufd xmm6, xmm6, 0
mov rsi, rbp
mov eax, 8
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14036c728
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rcx, rdi
call fcn.1402d0e20
mov r9, rax
movq xmm4, rax
punpcklqdq xmm4, xmm4
xor edx, edx
lea r15d, [rdx + 4]
mov eax, dword [reloc.WS2_32.dll_accept]
test ebp, ebp
jle 0x140335234
cmp ebp, 8
jb 0x140335234
cmp eax, 2
jl 0x140335234
movdqa xmm7, xmmword [0x14045df00]
mov eax, ebp
and eax, 0x80000007
jge 0x14033514d
dec eax
or eax, 0xfffffff8
inc eax
mov r10d, ebp
sub r10d, eax
movdqa xmm5, xmmword [0x140433e10]
mov r8d, r15d
lea rcx, [rbx + 0x20]
nop dword [rax]
nop word [rax + rax]
movq xmm3, xmm7
movq xmm1, xmm5
movq xmm0, xmm6
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm3
pmulld xmm2, xmm0
pmulld xmm2, xmm1
pmovsxdq xmm0, xmm2
paddq xmm0, xmm4
movdqu xmmword [rcx - 0x20], xmm0
movq xmm2, xmm5
movq xmm1, xmm6
lea eax, [r8 - 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmulld xmm0, xmm2
pmovsxdq xmm0, xmm0
paddq xmm0, xmm4
movdqu xmmword [rcx - 0x10], xmm0
movd xmm0, r8d
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmulld xmm0, xmm2
pmovsxdq xmm0, xmm0
paddq xmm0, xmm4
movdqu xmmword [rcx], xmm0
lea eax, [r8 + 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmulld xmm0, xmm2
pmovsxdq xmm0, xmm0
paddq xmm0, xmm4
movdqu xmmword [rcx + 0x10], xmm0
add edx, 8
add r8d, 8
lea rcx, [rcx + 0x40]
cmp edx, r10d
jl 0x140335170
movsxd rcx, edx
cmp rcx, rsi
jge 0x140335265
imul edx, r14d
lea edx, [rdx + rdx*2]
lea r8d, [r14 + r14*2]
nop word [rax + rax]
movsxd rax, edx
add rax, r9
mov qword [rbx + rcx*8], rax
add edx, r8d
inc rcx
cmp rcx, rsi
jl 0x140335250
mov r13d, r14d
imul r13d, ebp
movsxd rbx, r13d
mov rcx, rbx
call fcn.14036c728
mov rdi, rax
movq xmm7, rax
punpcklqdq xmm7, xmm7
mov eax, 8
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14036c728
mov r8, rax
mov qword [rsp + 0x48], rax
xor ecx, ecx
test ebp, ebp
jle 0x140335398
cmp ebp, 8
jb 0x140335398
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140335398
movdqa xmm4, xmmword [0x14045df00]
mov edx, ebp
and edx, 0x80000007
jge 0x1403352df
dec edx
or edx, 0xfffffff8
inc edx
mov r9d, ebp
sub r9d, edx
lea rdx, [rax + 0x20]
nop dword [rax]
movq xmm3, xmm4
movq xmm0, xmm6
movd xmm1, ecx
pshufd xmm1, xmm1, 0
paddd xmm1, xmm3
pmulld xmm1, xmm0
pmovsxdq xmm0, xmm1
paddq xmm0, xmm7
movdqu xmmword [rdx - 0x20], xmm0
movq xmm1, xmm6
lea eax, [r15 - 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmovsxdq xmm0, xmm0
paddq xmm0, xmm7
movdqu xmmword [rdx - 0x10], xmm0
movd xmm2, r15d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm3
pmulld xmm2, xmm1
pmovsxdq xmm0, xmm2
paddq xmm0, xmm7
movdqu xmmword [rdx], xmm0
lea eax, [r15 + 2]
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmm3
pmulld xmm0, xmm1
pmovsxdq xmm0, xmm0
paddq xmm0, xmm7
movdqu xmmword [rdx + 0x10], xmm0
add ecx, 8
add r15d, 8
lea rdx, [rdx + 0x40]
cmp ecx, r9d
jl 0x1403352f0
movsxd rdx, ecx
cmp rdx, rsi
jge 0x1403353c5
imul ecx, r14d
nop dword [rax]
nop dword [rax + rax]
movsxd rax, ecx
add rax, rdi
mov qword [r8 + rdx*8], rax
add ecx, r14d
inc rdx
cmp rdx, rsi
jl 0x1403353b0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9, r8
mov r8, qword [rsp + 0x40]
mov edx, ebp
mov ecx, r14d
call fcn.140334cd0
mov rcx, qword [rsp + 0x40]
call fcn.14036c454
mov rcx, qword [rsp + 0x48]
call fcn.14036c454
mov r15d, dword [rsp + 0x408]
test r15b, 4
je 0x140335478
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1402d2390
test al, al
jne 0x14033542d
mov r9b, 1
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1402d0140
mov rcx, rsi
call fcn.1402d0e20
xor r10d, r10d
test r13d, r13d
jle 0x140335478
lea r9, [rax + 2]
movzx r8d, byte [r10 + rdi]
lea edx, [r8 + r8*2]
movzx ecx, byte [rsp + rdx + 0x60]
mov byte [r9 - 2], cl
movzx ecx, byte [rsp + rdx + 0x61]
mov byte [r9 - 1], cl
lea rax, [rsp + 0x62]
add rax, r8
movzx ecx, byte [rax + r8*2]
mov byte [r9], cl
inc r10
lea r9, [r9 + 3]
cmp r10, rbx
jl 0x140335441
mov r10, qword [rsp + 0x58]
test r10, r10
je 0x140335572
test r15b, 2
je 0x140335572
mov ebp, dword [rsp + 0x34]
test ebp, ebp
je 0x14033556d
xor edx, edx
test r13d, r13d
jle 0x140335546
cmp r13d, 0x40
jb 0x140335546
movsx eax, r12b
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
mov eax, r13d
and eax, 0x8000003f
jge 0x1403354d7
dec eax
or eax, 0xffffffc0
inc eax
sub r13d, eax
movsxd r9, r13d
lea rax, [rdi + 0x20]
mov r8, 0xffffffffffffffe0
sub r8, rdi
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm2
paddb xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
add edx, 0x40
lea rax, [rax + 0x40]
lea rcx, [r8 + rax]
cmp rcx, r9
jl 0x1403354f0
movsxd rcx, edx
cmp rcx, rbx
jge 0x14033556d
lea rax, [rcx + rdi]
sub rbx, rcx
nop word [rax + rax]
add byte [rax], r12b
lea rax, [rax + 1]
sub rbx, 1
jne 0x140335560
mov qword [r10], rdi
jmp 0x14033557e
mov rcx, rdi
call fcn.14036c454
mov ebp, dword [rsp + 0x34]
mov r13, qword [rsp + 0x38]
test r13, r13
je 0x14033595f
mov ecx, 0x100
call fcn.14036c728
mov r15, rax
mov ecx, 0x100
call fcn.14036c728
mov rsi, rax
mov ecx, 0x100
call fcn.14036c728
mov r14, rax
test ebp, ebp
je 0x1403357c0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov ecx, 0x50
call fcn.14036c728
mov rdi, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 0x14]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetSystemPaletteEntries]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
movzx ecx, byte [rdi]
mov byte [r15], cl
movzx ecx, byte [rdi + 1]
mov byte [rsi], cl
movzx ecx, byte [rdi + 2]
mov byte [r14], cl
movzx eax, byte [rdi + 4]
mov byte [r15 + 1], al
movzx eax, byte [rdi + 5]
mov byte [rsi + 1], al
movzx eax, byte [rdi + 6]
mov byte [r14 + 1], al
movzx eax, byte [rdi + 8]
mov byte [r15 + 2], al
movzx eax, byte [rdi + 9]
mov byte [rsi + 2], al
movzx eax, byte [rdi + 0xa]
mov byte [r14 + 2], al
movzx eax, byte [rdi + 0xc]
mov byte [r15 + 3], al
movzx eax, byte [rdi + 0xd]
mov byte [rsi + 3], al
movzx eax, byte [rdi + 0xe]
mov byte [r14 + 3], al
movzx eax, byte [rdi + 0x10]
mov byte [r15 + 4], al
movzx eax, byte [rdi + 0x11]
mov byte [rsi + 4], al
movzx eax, byte [rdi + 0x12]
mov byte [r14 + 4], al
movzx eax, byte [rdi + 0x14]
mov byte [r15 + 5], al
movzx eax, byte [rdi + 0x15]
mov byte [rsi + 5], al
movzx eax, byte [rdi + 0x16]
mov byte [r14 + 5], al
movzx eax, byte [rdi + 0x18]
mov byte [r15 + 6], al
movzx eax, byte [rdi + 0x19]
mov byte [rsi + 6], al
movzx eax, byte [rdi + 0x1a]
mov byte [r14 + 6], al
movzx eax, byte [rdi + 0x1c]
mov byte [r15 + 7], al
movzx eax, byte [rdi + 0x1d]
mov byte [rsi + 7], al
movzx eax, byte [rdi + 0x1e]
mov byte [r14 + 7], al
movzx eax, byte [rdi + 0x20]
mov byte [r15 + 8], al
movzx eax, byte [rdi + 0x21]
mov byte [rsi + 8], al
movzx eax, byte [rdi + 0x22]
mov byte [r14 + 8], al
movzx eax, byte [rdi + 0x24]
mov byte [r15 + 9], al
movzx eax, byte [rdi + 0x25]
mov byte [rsi + 9], al
movzx eax, byte [rdi + 0x26]
mov byte [r14 + 9], al
movzx eax, byte [rdi + 0x28]
mov byte [r15 + 0xa], al
movzx eax, byte [rdi + 0x29]
mov byte [rsi + 0xa], al
movzx eax, byte [rdi + 0x2a]
mov byte [r14 + 0xa], al
movzx eax, byte [rdi + 0x2c]
mov byte [r15 + 0xb], al
movzx eax, byte [rdi + 0x2d]
mov byte [rsi + 0xb], al
movzx eax, byte [rdi + 0x2e]
mov byte [r14 + 0xb], al
movzx eax, byte [rdi + 0x30]
mov byte [r15 + 0xc], al
movzx eax, byte [rdi + 0x31]
mov byte [rsi + 0xc], al
movzx eax, byte [rdi + 0x32]
mov byte [r14 + 0xc], al
movzx eax, byte [rdi + 0x34]
mov byte [r15 + 0xd], al
movzx eax, byte [rdi + 0x35]
mov byte [rsi + 0xd], al
movzx eax, byte [rdi + 0x36]
mov byte [r14 + 0xd], al
movzx eax, byte [rdi + 0x38]
mov byte [r15 + 0xe], al
movzx eax, byte [rdi + 0x39]
mov byte [rsi + 0xe], al
movzx eax, byte [rdi + 0x3a]
mov byte [r14 + 0xe], al
movzx eax, byte [rdi + 0x3c]
mov byte [r15 + 0xf], al
movzx eax, byte [rdi + 0x3d]
mov byte [rsi + 0xf], al
movzx eax, byte [rdi + 0x3e]
mov byte [r14 + 0xf], al
movzx eax, byte [rdi + 0x40]
mov byte [r15 + 0x10], al
movzx eax, byte [rdi + 0x41]
mov byte [rsi + 0x10], al
movzx eax, byte [rdi + 0x42]
mov byte [r14 + 0x10], al
movzx eax, byte [rdi + 0x44]
mov byte [r15 + 0x11], al
movzx eax, byte [rdi + 0x45]
mov byte [rsi + 0x11], al
movzx eax, byte [rdi + 0x46]
mov byte [r14 + 0x11], al
movzx eax, byte [rdi + 0x48]
mov byte [r15 + 0x12], al
movzx eax, byte [rdi + 0x49]
mov byte [rsi + 0x12], al
movzx eax, byte [rdi + 0x4a]
mov byte [r14 + 0x12], al
movzx eax, byte [rdi + 0x4c]
mov byte [r15 + 0x13], al
movzx eax, byte [rdi + 0x4d]
mov byte [rsi + 0x13], al
movzx eax, byte [rdi + 0x4e]
mov byte [r14 + 0x13], al
mov rcx, rdi
call fcn.14036c454
movsxd r10, dword [rsp + 0x30]
mov r9, r10
test r10d, r10d
jle 0x140335806
mov r8d, r12d
lea rdx, [rsp + 0x62]
nop word [rax + rax]
movsxd rcx, r8d
movzx eax, byte [rdx - 2]
mov byte [rcx + r15], al
movzx eax, byte [rdx - 1]
mov byte [rcx + rsi], al
movzx eax, byte [rdx]
mov byte [rcx + r14], al
inc r8d
lea rdx, [rdx + 3]
sub r9, 1
jne 0x1403357e0
lea r8d, [r10 + r12]
mov edi, r8d
mov eax, 0x100
sub eax, r8d
cmp r8d, 0x100
jge 0x1403358c2
cmp eax, 0x10
jb 0x1403358c2
movsxd rcx, r8d
lea r12, [rcx + r14]
lea rdx, [r14 + 0xff]
lea rbp, [rcx + rsi]
lea r10, [rsi + 0xff]
cmp r12, r10
ja 0x14033584e
cmp rdx, rbp
jae 0x1403358c2
add rcx, r15
lea r9, [r15 + 0xff]
cmp r12, r9
ja 0x140335862
cmp rdx, rcx
jae 0x1403358c2
cmp rbp, r9
ja 0x14033586c
cmp r10, rcx
jae 0x1403358c2
and eax, 0x8000000f
jge 0x14033587a
dec eax
or eax, 0xfffffff0
inc eax
mov edx, 0x100
sub edx, eax
add edi, 0x10
cmp edi, edx
jl 0x140335881
sub edx, r8d
lea eax, [rdx + 0xf]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
movsxd rbx, eax
shl rbx, 4
mov r8, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
movsxd r9, edi
cmp r9, 0x100
jge 0x140335906
lea rax, [r9 + rsi]
mov rdx, r15
sub rdx, rsi
mov r8, r14
sub r8, rsi
mov ecx, 0x100
sub rcx, r9
nop word [rax + rax]
mov byte [rdx + rax], 0
mov byte [rax], 0
mov byte [r8 + rax], 0
lea rax, [rax + 1]
sub rcx, 1
jne 0x1403358f0
mov ecx, reloc.WS2_32.dll_recv
call fcn.14036c0f8
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 8], 0
lea rax, vtable.wxPalette.0
mov qword [rbx], rax
mov qword [rsp + 0x20], r14
mov r9, rsi
mov r8, r15
mov edx, 0x100
mov rcx, rbx
call fcn.14025d200
nop
mov qword [r13], rbx
mov rcx, r15
call fcn.14036c454
mov rcx, rsi
call fcn.14036c454
mov rcx, r14
call fcn.14036c454
mov al, 1
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.14036c0d0
movaps xmm6, xmmword [rsp + 0x380]
movaps xmm7, xmmword [rsp + 0x370]
add rsp, 0x398
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret