Function at 0x404e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a7ab
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x44e414]
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 ebx, ecx
mov dword [ebp - 0x848], ebx
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x830], 0xf
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x844]
mov dword [ebp - 0x834], 1
mov word [ebp - 0x844], 0x44
push edx
mov eax, dword [ecx]
mov dword [ebp - 4], 0
call dword [eax + 0x2c]
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x818], 0xf
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
mov word [ebp - 0x82c], 0xbb
push edx
mov eax, dword [ecx]
mov byte [ebp - 4], 1
call dword [eax + 0x2c]
push 0x401
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0043a378
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x814]
add esp, 0xc
mov eax, dword [ecx]
push edx
push 1
call dword [eax + 0x38]
mov al, byte [ebp - 0x814]
cmp al, 0x1f
je 0x40507b
cmp al, 0x79
jne 0x40507b
mov dx, word [ebp + 8]
mov eax, 0xfffd
mov ecx, dword [ebx + 0xc]
cmp dx, ax
jb 0x404fb4
mov ax, dx
mov byte [ebp - 0x40f], dl
shr ax, 8
xor dl, al
mov byte [ebp - 0x410], al
mov byte [ebp - 0x40e], dl
lea edx, [ebp - 0x410]
mov eax, dword [ecx]
push edx
push 3
call dword [eax + 0x30]
push 0xc8
call dword [0x43f130]
jmp 0x405056
movzx edi, dx
dec dl
mov byte [ebp - 0x40f], dl
lea eax, [edi - 1]
sar eax, 8
xor dl, al
mov byte [ebp - 0x410], al
mov byte [ebp - 0x40e], dl
lea edx, [ebp - 0x410]
mov eax, dword [ecx]
push edx
push 3
call dword [eax + 0x30]
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x814]
mov byte [ebp - 0x814], 0xff
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp byte [ebp - 0x814], 0x79
jne 0x40507b
xor dl, dl
xor esi, esi
test edi, edi
je 0x405038
mov ebx, dword [ebp + 0xc]
nop dword [eax]
movzx eax, word [ebx + esi*2]
mov cx, ax
mov byte [ebp + esi*2 - 0x40f], al
shr cx, 8
mov byte [ebp + esi*2 - 0x410], cl
xor cl, al
inc esi
xor dl, cl
cmp esi, edi
jl 0x405010
mov ebx, dword [ebp - 0x848]
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x410]
mov byte [ebp + esi*2 - 0x410], dl
push eax
lea eax, [esi*2 + 1]
mov edx, dword [ecx]
push eax
call dword [edx + 0x30]
mov ecx, dword [ebx + 0xc]
lea edx, [ebp - 0x814]
mov byte [ebp - 0x814], 0xff
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp byte [ebp - 0x814], 0x79
jne 0x40507b
xor bl, bl
jmp 0x40507d
mov bl, 0x14
mov edx, dword [ebp - 0x818]
cmp edx, 0x10
jb 0x4050b3
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4050a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4050fa
push edx
push ecx
call fcn.004395ca
add esp, 8
mov edx, dword [ebp - 0x830]
mov dword [ebp - 0x81c], 0
mov dword [ebp - 0x818], 0xf
mov byte [ebp - 0x82c], 0
cmp edx, 0x10
jb 0x40510a
mov ecx, dword [ebp - 0x844]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405100
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405100
call dword [0x43f418]
push edx
push ecx
call fcn.004395ca
add esp, 8
mov al, bl
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.004395e6
mov esp, ebp
pop ebp
ret 8