Function at 0x526930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.005dfa60
mov eax, dword [0x6a704c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push ecx
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x30], ecx
movups xmmword [ebp - 0x28], xmm0
call esi
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 7
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
cmp dword [ebp + 0x14], 0
je 0x5269bb
test ebx, ebx
jle 0x526a9d
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
sub eax, edi
sub edx, edi
mov esi, eax
sub ecx, edi
nop dword [eax]
mov al, byte [edx + edi]
lea edi, [edi + 1]
xor al, byte [edi - 1]
mov byte [esi + edi - 1], al
mov byte [ecx + edi - 1], al
sub ebx, 1
jne 0x5269a0
jmp 0x526a9d
xor eax, eax
test ebx, ebx
jle 0x526a9d
mov esi, dword [ebp - 0x30]
cmp ebx, 0x10
jb 0x526a65
lea ecx, [ebp + ebx - 0x19]
mov dword [ebp - 0x34], ecx
lea edx, [esi - 1]
add edx, ebx
lea ecx, [ebp - 0x18]
cmp ecx, edx
mov dword [ebp - 0x38], edx
lea ecx, [ebp + ebx - 0x19]
ja 0x5269ef
cmp ecx, esi
jae 0x526a65
mov edx, dword [ebp - 0x2c]
lea esi, [ebp - 0x18]
lea ecx, [edx - 1]
add ecx, ebx
cmp esi, ecx
mov esi, dword [ebp - 0x30]
ja 0x526a06
cmp dword [ebp - 0x34], edx
jae 0x526a68
cmp edx, dword [ebp - 0x38]
ja 0x526a0f
cmp ecx, esi
jae 0x526a68
lea ecx, [edi - 1]
add ecx, ebx
cmp edx, ecx
ja 0x526a21
lea ecx, [edx - 1]
add ecx, ebx
cmp ecx, edi
jae 0x526a68
mov ecx, ebx
and ecx, reloc.WS2_32.dll_ntohs
jns 0x526a30
dec ecx
or ecx, 0xfffffff0
inc ecx
mov dword [ebp - 0x2c], ebx
sub dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
nop dword [eax]
movups xmm1, xmmword [edi + eax]
movups xmm0, xmmword [esi + eax]
movups xmmword [ebp + eax - 0x18], xmm1
pxor xmm0, xmm1
movups xmmword [edx + eax], xmm0
add eax, 0x10
cmp eax, ecx
jl 0x526a40
mov dword [ebp - 0x38], eax
cmp eax, ebx
jge 0x526aa0
jmp 0x526a68
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
sub edi, ecx
mov ecx, esi
lea esi, [ebp - 0x18]
sub ecx, esi
sub edx, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], edx
nop dword [eax]
lea esi, [ebp - 0x18]
add esi, eax
inc eax
mov dl, byte [edi + esi]
mov cl, byte [ecx + esi]
xor cl, dl
mov byte [esi], dl
mov edx, dword [ebp - 0x2c]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x38]
cmp eax, ebx
jl 0x526a80
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov edi, eax
and edi, reloc.WS2_32.dll_getsockopt
jns 0x526ab2
dec edi
or edi, 0xfffffff8
inc edi
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
test edi, edi
jne 0x526ad9
movups xmm0, xmmword [ebp + ecx - 0x28]
pop edi
movups xmmword [esi], xmm0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005df097
mov esp, ebp
pop ebp
ret
lea eax, [esi + 2]
mov dword [ebp - 0x34], 4
mov ebx, 8
mov dword [ebp - 0x2c], eax
sub ebx, edi
lea esi, [ebp - 0x27]
mov dword [ebp - 0x30], ebx
add esi, ecx
mov ah, byte [esi]
lea esi, [esi + 4]
movzx edx, byte [esi - 5]
mov ecx, edi
shl dl, cl
mov al, ah
mov cl, bl
mov bl, byte [esi - 3]
shr al, cl
mov ecx, dword [ebp - 0x2c]
or dl, al
mov al, bl
mov byte [ecx - 2], dl
movzx ecx, byte [ebp - 0x30]
mov dl, byte [esi - 2]
shr al, cl
mov ecx, edi
shl ah, cl
mov ecx, dword [ebp - 0x2c]
or al, ah
mov byte [ecx - 1], al
mov ecx, edi
shl bl, cl
mov al, dl
movzx ecx, byte [ebp - 0x30]
shr al, cl
or bl, al
mov eax, dword [ebp - 0x2c]
mov byte [eax], bl
mov al, byte [esi - 1]
mov ebx, dword [ebp - 0x30]
mov cl, bl
shr al, cl
mov ecx, edi
shl dl, cl
mov ecx, dword [ebp - 0x2c]
or al, dl
mov byte [ecx + 1], al
add ecx, 4
sub dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], ecx
jne 0x526af5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005df097
mov esp, ebp
pop ebp
ret