Function at 0x4136d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506205
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov byte [ebp - 0x12], cl
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
mov eax, 0x2aaaaaab
mov edx, dword [ebp + 0xc]
xor edi, edi
mov ebx, dword [ebp + 8]
sub edx, ebx
imul edx
mov dword [ebp - 0x1c], edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4138b0
xor esi, esi
mov dword [ebp - 0x20], esi
test cl, cl
je 0x413851
mov edi, dword [esi + ebx + 0x10]
add esi, ebx
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x413740
mov eax, dword [esi]
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
jb 0x41374c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
push edi
push eax
push 0
call fcn.0046feb0
add esp, 0xc
test eax, eax
je 0x4137f9
mov dword [ebp - 0x25], 0xd9dace
xor eax, eax
mov byte [ebp - 0x21], 1
lea ecx, [eax - 0xc]
xor byte [ebp + eax - 0x25], cl
inc eax
cmp eax, 3
jb 0x413770
lea ecx, [ebp - 0x25]
mov byte [ebp - 0x21], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413787
mov eax, closesocket
sub ecx, edx
sub eax, edi
cmp eax, ecx
jb 0x4138fd
cmp dword [esi + 0x14], 0x10
jb 0x4137a7
mov esi, dword [esi]
push edi
push esi
push ecx
lea eax, [ebp - 0x25]
push eax
push ecx
push dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
call fcn.004720e0
or dword [ebp - 0x18], 3
lea eax, [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
cmp edi, 0x10
jb 0x4137ce
mov eax, esi
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
jb 0x4137da
mov ecx, dword [ebp + 0x14]
push dword [ebp - 0x30]
mov edx, dword [ebp + 0x24]
push eax
push 0
call fcn.0046feb0
mov ebx, dword [ebp + 8]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4137ff
mov byte [ebp - 0x11], 0
jmp 0x413803
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x18]
test al, 1
je 0x413843
and eax, 0xfffffffe
mov dword [ebp - 0x18], eax
cmp edi, 0x10
jb 0x413843
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x413836
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413902
push ecx
push esi
call fcn.004df511
mov ebx, dword [ebp + 8]
add esp, 8
cmp byte [ebp - 0x11], 0
jne 0x4138ac
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
jmp 0x413880
cmp dword [ebx + esi + 0x14], 0x10
lea eax, [ebx + esi]
mov edx, dword [eax + 0x10]
jb 0x413860
mov eax, dword [eax]
cmp dword [ebp + 0x28], 0x10
lea ecx, [ebp + 0x14]
jb 0x41386c
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x24]
push eax
push 0
call fcn.0046feb0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4138ac
mov ecx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
sub ecx, ebx
inc edi
imul ecx
add esi, 0x18
mov dword [ebp - 0x1c], edi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x20], esi
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x4138b0
mov cl, byte [ebp - 0x12]
jmp 0x413728
mov bl, 1
jmp 0x4138b2
xor bl, bl
lea ecx, [ebp + 8]
call fcn.0046c860
mov ecx, dword [ebp + 0x28]
cmp ecx, 0x10
jb 0x4138ea
mov edx, dword [ebp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4138e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413902
push ecx
push edx
call fcn.004df511
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402270
call fcn.004e47b0
int3