Function at 0x4048b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d7c6
mov eax, dword fs:[0]
push eax
mov eax, 0x104c
call fcn.0042cd20
mov eax, dword [0x43b698]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1054], eax
mov eax, dword [edx + 0x28]
call eax
xor edi, edi
cmp ebx, edi
je 0x404b8f
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x1014]
mov word [ebp - 0x1014], 0xce31
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
push eax
push 2
call edx
push 0x400
lea eax, [ebp - 0x813]
push edi
push eax
mov byte [ebp - 0x814], 0
call fcn.0042ccee
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push 1
call edx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
mov al, byte [ebp - 0x814]
cmp al, 0x1f
je 0x404b8f
cmp al, 0x79
jne 0x404b8f
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], edi
mov byte [ebp - 0x1030], 0
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 0x10
mov byte [ebp - 0xc13], dl
mov edx, eax
mov ecx, eax
mov byte [ebp - 0xc11], al
shr edx, 8
xor al, dl
xor al, byte [ebp - 0xc13]
shr ecx, 0x18
xor al, cl
mov byte [ebp - 0xc14], cl
mov ecx, dword [esi + 0xc]
mov byte [ebp - 0xc12], dl
mov byte [ebp - 0xc10], al
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
lea edx, [ebp - 0xc14]
push edx
push 5
mov dword [ebp - 4], edi
call eax
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x38]
lea eax, [ebp - 0x814]
push eax
push 1
call edx
cmp byte [ebp - 0x814], 0x79
jne 0x404b84
mov dword [ebp - 0x1038], 0xf
mov dword [ebp - 0x103c], edi
mov byte [ebp - 0x104c], 0
mov eax, ebx
and eax, 0x80000003
mov byte [ebp - 4], 1
jns 0x404a1f
dec eax
or eax, 0xfffffffc
inc eax
jne 0x404a9a
lea eax, [ebx - 1]
movzx edi, al
lea edx, [edi + 1]
xor ecx, ecx
mov byte [ebp - 0x104d], al
mov byte [ebp - 0x410], al
mov dword [ebp - 0x1058], edi
test edx, edx
jle 0x404a5c
mov edi, dword [ebp - 0x1054]
xor al, byte [edi + ecx]
inc ecx
cmp ecx, edx
jl 0x404a42
mov edi, dword [ebp - 0x1058]
mov byte [ebp - 0x104d], al
mov ecx, dword [ebp - 0x1054]
push ebx
push ecx
lea edx, [ebp - 0x40f]
push edx
call fcn.0042ccf4
mov al, byte [ebp - 0x104d]
mov ecx, dword [esi + 0xc]
mov byte [ebp + edi - 0x40e], al
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
add edi, 3
push edi
call edx
jmp 0x404b4e
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
add al, al
add al, al
lea ecx, [eax + 3]
xor eax, eax
mov byte [ebp - 0x104e], cl
mov byte [ebp - 0x104d], cl
mov byte [ebp - 0x410], cl
cmp ebx, edi
jle 0x404ad8
mov edx, dword [ebp - 0x1054]
xor cl, byte [edx + eax]
inc eax
cmp eax, ebx
jl 0x404ac4
mov byte [ebp - 0x104d], cl
mov eax, dword [ebp - 0x1054]
push ebx
push eax
lea ecx, [ebp - 0x40f]
push ecx
call fcn.0042ccf4
movzx edi, byte [ebp - 0x104e]
add esp, 0xc
cmp ebx, edi
jg 0x404b11
mov eax, edi
sub eax, ebx
inc eax
nop
dec eax
mov dl, byte [ebp - 0x104d]
not dl
mov byte [ebp - 0x104d], dl
jne 0x404b00
mov eax, edi
sub eax, ebx
inc eax
push eax
lea ecx, [ebp + ebx - 0x40f]
push 0xff
push ecx
call fcn.0042ccee
mov dl, byte [ebp - 0x104d]
mov ecx, dword [esi + 0xc]
mov byte [ebp + edi - 0x40e], dl
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
add esp, 0xc
lea edx, [ebp - 0x410]
push edx
add edi, 3
push edi
call eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [0x4310e0]
mov esi, dword [esi + 0xc]
lea eax, [ebp - 0x814]
mov byte [ebp - 0x814], 0xff
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
push eax
push 1
mov ecx, esi
call edx
cmp byte [ebp - 0x814], 0x79
sete al
dec al
and al, 0x14
jmp 0x404b91
lea ecx, [ebp - 0x1030]
call fcn.00402590
mov al, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ccde
mov esp, ebp
pop ebp
ret 0x10