Function at 0x461240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
lea eax, [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x60]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x160]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xe0]
push edi
cmp dword [esi + 0x14], 0x20
mov dword [ebp - 0xc], eax
jne 0x4615f5
mov ebx, dword [ebp + 0x20]
cmp ebx, 8
jl 0x4615f5
mov eax, ebx
and eax, reloc.WSOCK32.dll_getsockopt
jns 0x46129d
dec eax
or eax, 0xfffffff8
inc eax
jne 0x4615f5
push 0x20
push dword [esi + 4]
lea eax, [ebp - 0x34]
push eax
call fcn.004d0d60
push 0x20
push dword [esi + 8]
lea eax, [ebp - 0x60]
push eax
call fcn.004d0d60
mov esi, dword [ebp - 0x34]
add esp, 0x18
sub esi, dword [ebp - 0x60]
mov ecx, esi
mov eax, esi
and ecx, 0xff0000
shr eax, 0x10
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x30]
add ecx, dword [ebp - 0x60]
sub esi, dword [ebp - 0x5c]
mov dword [ebp - 0x34], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x5c]
sub esi, dword [ebp - 0x58]
mov dword [ebp - 0x30], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x28]
add ecx, dword [ebp - 0x58]
sub esi, dword [ebp - 0x54]
mov dword [ebp - 0x2c], ecx
mov eax, esi
mov ecx, esi
shr eax, 0x10
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x24]
add ecx, dword [ebp - 0x54]
sub esi, dword [ebp - 0x50]
mov dword [ebp - 0x28], ecx
mov eax, esi
mov ecx, esi
and ecx, 0xff0000
shr eax, 0x10
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x20]
add ecx, dword [ebp - 0x50]
sub esi, dword [ebp - 0x4c]
mov dword [ebp - 0x24], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x4c]
sub esi, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
mov eax, esi
shr eax, 0x10
mov ecx, esi
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
mov esi, dword [ebp - 0x18]
add ecx, dword [ebp - 0x48]
sub esi, dword [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov eax, esi
mov ecx, esi
shr eax, 0x10
and ecx, 0xff0000
or ecx, eax
mov eax, esi
shr ecx, 8
shl eax, 8
and eax, 0xff0000
shl esi, 0x18
or ecx, eax
or ecx, esi
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x18], ecx
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 4]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0xc]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x1c]
mov dword [edi], eax
mov esi, dword [ebp + 0x10]
lea eax, [ebx - 8]
mov dword [ebp + 0x14], eax
test esi, esi
jle 0x4615e9
cmp esi, 8
jge 0x461538
push edx
push eax
rdtsc
mov dword [ebp + 0x20], eax
pop eax
pop edx
mov eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x14]
xor eax, ecx
mov ecx, dword [ebp + 0x24]
sub ecx, 1
je 0x461530
sub ecx, 1
je 0x46151c
sub ecx, 1
jne 0x461538
xor edx, edx
nop
lea ecx, [eax*8]
xor eax, ecx
mov ecx, eax
shr ecx, 5
xor eax, ecx
mov byte [ebp + edx - 0x14], al
inc edx
cmp edx, 8
jb 0x461500
jmp 0x461538
xor ecx, ecx
nop
mov al, 8
sub al, cl
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 8
jb 0x461520
jmp 0x461538
xorps xmm0, xmm0
movq qword [ebp - 0x14], xmm0
mov edx, dword [ebp + 0x1c]
xor ecx, ecx
mov ebx, dword [ebp + 8]
cmp ecx, esi
jge 0x461554
mov al, byte [edx]
inc edx
xor al, byte [ebx]
inc ebx
mov byte [ebp + ecx - 0x14], al
inc ecx
cmp ecx, 8
jl 0x461540
sub esi, ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x10], esi
pushal
mov esi, dword [ebp - 0x40]
mov edx, dword [esi]
mov eax, dword [esi + 4]
bswap edx
bswap eax
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
push ebp
mov ecx, 0x20
mov ebp, eax
add eax, dword [esi]
sub eax, dword [esi + 0x80]
add esi, 4
movzx ebx, al
xor edx, dword [edi + ebx*4]
mov bl, ah
xor edx, dword [edi + ebx*4 + 0x400]
shr eax, 0x10
mov bl, ah
xor edx, dword [edi + ebx*4 + 0xc00]
mov bl, al
xor edx, dword [edi + ebx*4 + 0x800]
mov eax, edx
mov edx, ebp
loop 0x461578
pop ebp
bswap eax
bswap edx
mov esi, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], edx
popal
add dword [ebp - 8], 8
mov eax, dword [ebp + 0x14]
cmp eax, 8
jl 0x4615ce
sub eax, 8
jmp 0x4615db
test eax, eax
jne 0x4615de
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
or eax, 0xffffffff
mov dword [ebp + 0x14], eax
mov esi, dword [ebp + 0x10]
test esi, esi
jg 0x4614d5
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret