Function at 0x4c10b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
movaps xmm0, xmmword [0x5d68a0]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x84], eax
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 6
mov dword [ebp - 0x40], 0x474e5089
mov dword [ebp - 0x3c], 0xa1a0a0d
jne 0x4c1112
mov eax, ebx
imul eax, ecx
mov dword [ebp + 0xc], eax
mov esi, ebx
imul esi, ecx
mov ecx, edi
mov dword [ebp - 0x20], esi
lea eax, [esi + 1]
imul ecx, eax
push ecx
mov dword [ebp - 0x80], ecx
call fcn.0059fc52
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4c1153
push esi
call fcn.0059fc52
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x4c1166
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00594e3b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 0x38], ecx
test edi, edi
jle 0x4c15b5
mov eax, dword [ebp - 0x5c]
mov edx, 0x6244b0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
sub edi, eax
sub eax, esi
mov dword [ebp + 8], edi
mov dword [ebp - 0x6c], eax
test ecx, ecx
mov dword [ebp - 0x34], SysReAllocString
mov eax, 0x62449c
cmove eax, edx
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
nop
xor eax, eax
test ecx, ecx
cmovne eax, edx
mov dword [ebp - 0x60], eax
cmp eax, 5
jge 0x4c1573
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x30], 0
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
test ecx, ecx
jle 0x4c12c1
mov ebx, dword [ebp - 0x6c]
mov eax, esi
mov edx, dword [ebp - 0x1c]
mov esi, edi
add ebx, edi
mov edi, ecx
nop
cmp edx, 6
ja case.default.0x4c11f5
jmp dword [edx*4 + 0x4c1704]
inc esi
inc eax
sub edi, 1
jne 0x4c11f0
jmp 0x4c12b5
mov cl, byte [eax + ebx]
lea esi, [esi + 1]
mov byte [eax], cl
lea eax, [eax + 1]
sub edi, 1
jne case.0x4c11f5.0
jmp 0x4c12b2
mov cl, byte [eax + ebx]
lea esi, [esi + 1]
mov byte [eax], cl
lea eax, [eax + 1]
sub edi, 1
jne case.0x4c11f5.1
jmp 0x4c12b2
mov cl, byte [eax + ebx]
lea esi, [esi + 1]
sub cl, byte [esi - 1]
lea eax, [eax + 1]
mov byte [eax - 1], cl
sub edi, 1
jne case.0x4c11f5.2
jmp 0x4c12b2
mov dl, byte [esi]
lea esi, [esi + 1]
mov cl, byte [eax + ebx]
lea eax, [eax + 1]
shr dl, 1
sub cl, dl
mov byte [eax - 1], cl
sub edi, 1
jne case.0x4c11f5.3
jmp 0x4c12b2
movzx ecx, byte [eax + ebx]
lea esi, [esi + 1]
xor dl, dl
lea eax, [eax + 1]
cmp dl, byte [esi - 1]
sbb dl, dl
and dl, byte [esi - 1]
sub cl, dl
mov byte [eax - 1], cl
sub edi, 1
jne case.0x4c11f5.4
jmp 0x4c12b2
mov cl, byte [eax + ebx]
lea esi, [esi + 1]
mov byte [eax], cl
lea eax, [eax + 1]
sub edi, 1
jne case.0x4c11f5.5
jmp 0x4c12b2
mov cl, byte [eax + ebx]
lea esi, [esi + 1]
mov byte [eax], cl
lea eax, [eax + 1]
sub edi, 1
jne case.0x4c11f5.6
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp ecx, ebx
jge 0x4c1451
mov ebx, dword [ebp + 0xc]
lea edx, [ecx + esi]
mov esi, ecx
mov dword [ebp - 0x48], edx
sub esi, dword [ebp + 0xc]
add ebx, edi
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x20]
sub esi, ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], esi
cmp eax, 6
ja case.default.0x4c12ec
jmp dword [eax*4 + 0x4c1720]
inc edi
inc edx
inc ebx
mov dword [ebp - 0x44], edi
sub esi, 1
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
jne 0x4c12e7
jmp 0x4c144e
mov al, byte [ebx + ecx]
lea edi, [edi + 1]
mov byte [edx], al
lea ebx, [ebx + 1]
lea edx, [edx + 1]
sub esi, 1
jne case.0x4c12ec.0
jmp 0x4c144e
mov al, byte [ebx + ecx]
lea edi, [edi + 1]
sub al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [edx], al
lea edx, [edx + 1]
sub esi, 1
jne case.0x4c12ec.1
jmp 0x4c144e
mov al, byte [ebx + ecx]
lea edi, [edi + 1]
mov ecx, dword [ebp - 0x1c]
lea ebx, [ebx + 1]
lea edx, [edx + 1]
sub al, byte [ecx + ebx - 1]
mov ecx, dword [ebp - 0x28]
mov byte [edx - 1], al
sub esi, 1
jne case.0x4c12ec.2
jmp 0x4c144e
mov eax, dword [ebp - 0x1c]
lea edi, [edi + 1]
lea ebx, [ebx + 1]
lea edx, [edx + 1]
movzx ecx, byte [eax + ebx - 1]
movzx eax, byte [ebx - 1]
add ecx, eax
mov eax, dword [ebp - 0x28]
shr ecx, 1
mov al, byte [ebx + eax - 1]
sub al, cl
mov byte [edx - 1], al
sub esi, 1
jne case.0x4c12ec.3
jmp 0x4c144e
mov al, byte [edi]
mov dl, byte [ebx]
movzx edi, al
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x1c]
movzx esi, dl
mov dword [ebp - 0x74], edx
mov al, byte [eax + ebx]
movzx ecx, al
mov byte [ebp - 0x2a], al
mov eax, ecx
sub eax, edi
add esi, eax
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x70], eax
mov eax, esi
sub eax, ecx
sub esi, edi
cdq
mov ecx, eax
mov eax, esi
xor ecx, edx
sub ecx, edx
cdq
mov esi, eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x70]
xor esi, edx
sub esi, edx
cmp eax, ecx
jg 0x4c13e7
cmp eax, esi
jg 0x4c13e7
mov ecx, dword [ebp - 0x74]
jmp 0x4c13f5
cmp dword [ebp - 0x78], esi
movzx ecx, byte [ebp - 0x29]
movzx eax, byte [ebp - 0x2a]
cmovle ecx, eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x44]
inc edi
mov dword [ebp - 0x44], edi
mov al, byte [ebx + eax]
inc ebx
sub al, cl
mov ecx, dword [ebp - 0x48]
mov byte [ecx], al
inc ecx
sub dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], ecx
jne case.0x4c12ec.4
jmp 0x4c144e
mov eax, dword [ebp - 0x28]
lea edi, [edi + 1]
mov cl, byte [ebx]
lea ebx, [ebx + 1]
shr cl, 1
lea edx, [edx + 1]
mov al, byte [ebx + eax - 1]
sub al, cl
mov byte [edx - 1], al
sub esi, 1
jne case.0x4c12ec.5
jmp 0x4c144e
mov cl, byte [ebx + ecx]
lea edi, [edi + 1]
sub cl, byte [ebx]
lea ebx, [ebx + 1]
mov byte [edx], cl
lea edx, [edx + 1]
mov ecx, dword [ebp - 0x28]
sub esi, 1
jne case.0x4c12ec.6
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jne 0x4c156a
test ebx, ebx
jle 0x4c14e3
cmp ebx, 8
jb 0x4c14e3
cmp dword [0x62b1c0], 2
jl 0x4c14e3
mov eax, ebx
and eax, reloc.WS2_32.dll_getsockopt
jns 0x4c1480
dec eax
or eax, 0xfffffff8
inc eax
mov edx, ebx
xorps xmm1, xmm1
sub edx, eax
xorps xmm2, xmm2
mov eax, dword [ebp - 0x24]
nop dword [eax]
movd xmm0, dword [eax + ecx]
pmovsxbd xmm0, xmm0
pabsd xmm0, xmm0
paddd xmm1, xmm0
movd xmm0, dword [eax + ecx + 4]
pmovsxbd xmm0, xmm0
add ecx, 8
pabsd xmm0, xmm0
paddd xmm2, xmm0
cmp ecx, edx
jl 0x4c1490
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd edx, xmm1
mov dword [ebp - 0x30], edx
jmp 0x4c14e5
mov edx, ecx
xor esi, esi
xor edi, edi
cmp ecx, ebx
jge 0x4c153d
mov eax, ebx
sub eax, ecx
cmp eax, 2
jl 0x4c151e
dec ebx
mov eax, dword [ebp - 0x24]
movsx eax, byte [eax + ecx]
cdq
xor eax, edx
sub eax, edx
add esi, eax
mov eax, dword [ebp - 0x24]
movsx eax, byte [eax + ecx + 1]
add ecx, 2
cdq
xor eax, edx
sub eax, edx
add edi, eax
cmp ecx, ebx
jl 0x4c14f7
mov ebx, dword [ebp - 0x20]
cmp ecx, ebx
jge 0x4c1535
mov eax, dword [ebp - 0x24]
movsx eax, byte [ecx + eax]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x30]
add edx, eax
jmp 0x4c1538
mov edx, dword [ebp - 0x30]
lea eax, [esi + edi]
add edx, eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x7c]
inc eax
cmp edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
cmovge ecx, dword [ebp - 0x50]
cmovge edx, dword [ebp - 0x34]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x34], edx
cmp eax, 5
jl 0x4c11c3
mov ecx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x50]
inc ecx
mov dword [ebp - 0x54], ecx
cmp ecx, 2
jl 0x4c11b0
mov eax, dword [ebp - 0x58]
push ebx
push esi
mov byte [eax], dl
inc eax
push eax
call fcn.0058cce0
mov ecx, dword [ebp - 0x38]
lea eax, [ebx + 1]
add edi, dword [ebp + 0xc]
inc ecx
add dword [ebp - 0x58], eax
add esp, 0xc
mov edx, 0x6244b0
mov dword [ebp - 0x38], ecx
mov dword [ebp + 8], edi
cmp ecx, dword [ebp - 0x64]
jl 0x4c1191
mov ebx, dword [ebp - 0x28]
push esi
call fcn.00594e3b
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x38]
push 8
push eax
push dword [ebp - 0x80]
push edi
call fcn.004c1740
mov esi, eax
push edi
mov dword [ebp - 0x34], esi
call fcn.00594e3b
add esp, 0x18
test esi, esi
je 0x4c1153
mov esi, dword [ebp - 0x38]
add esi, 0x39
push esi
call fcn.0059fc52
mov edi, eax
add esp, 4
test edi, edi
je 0x4c1153
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x40]
push 0xd
mov dword [eax], esi
mov dword [edi], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x88]
mov eax, ecx
sar eax, 0x18
mov dword [edi + 8], 0xd000000
mov dword [edi + 0xc], 0x52444849
mov byte [edi + 0x10], al
mov eax, ecx
sar eax, 0x10
mov byte [edi + 0x11], al
mov eax, ecx
sar eax, 8
mov byte [edi + 0x12], al
mov byte [edi + 0x13], cl
mov ecx, dword [ebp - 0x64]
mov eax, ecx
sar eax, 0x18
mov byte [edi + 0x14], al
mov eax, ecx
sar eax, 0x10
mov byte [edi + 0x15], al
mov eax, ecx
sar eax, 8
mov byte [edi + 0x16], al
mov al, byte [ebp + ebx*4 - 0x18]
mov byte [edi + 0x17], cl
mov byte [edi + 0x18], 8
mov byte [edi + 0x19], al
lea eax, [edi + 0x1d]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov word [edi + 0x1a], 0
push eax
mov byte [edi + 0x1c], 0
call fcn.004c0ae0
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x38]
mov eax, ebx
sar eax, 0x18
push ebx
push dword [ebp - 0x34]
mov byte [esi], al
mov eax, ebx
sar eax, 0x10
mov byte [esi + 1], al
mov eax, ebx
sar eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov dword [esi + 4], 0x54414449
add esi, 8
push esi
call fcn.0058cce0
push dword [ebp - 0x34]
add esi, ebx
mov dword [ebp - 0x1c], esi
call fcn.00594e3b
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.004c0ae0
mov eax, dword [ebp - 0x1c]
push 0
mov dword [eax], 0
mov dword [eax + 4], 0x444e4549
add eax, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004c0ae0
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00539e65
mov esp, ebp
pop ebp
ret