Function at 0x50d8ed
Capabilities:
Encode data using xor

Disassembly:
jne 0x53fbe7
mov ebx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x20c]
mov eax, dword [eax + 0x22c]
test eax, eax
je 0x4084b9
cmp byte [eax + 0x14], 0
je 0x4084b9
mov edx, dword [ebx + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4084a0
sub eax, esi
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x210]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x210], eax
jmp 0x486900
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax + 0x20], cl
inc eax
test cl, cl
jne 0x46fd57
mov byte [esi + 0x18], 1
nop
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x18], 0
jne 0x46fd6b
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x21c], eax
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x214], edi
test edi, edi
jmp 0x53fbdc
test eax, eax
je 0x4708cf
cmp byte [eax + 0x14], 0
je 0x4708cf
cmp dword [ebx + 4], 0
je 0x4708cf
mov edx, dword [ebx + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4708b0
sub eax, edi
push eax
push 0
push edx
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x214]
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [edx], esi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x214], eax
test eax, eax
jmp 0x40846e
test eax, eax
jne 0x52db1e
jmp 0x52db08
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
je 0x486943
lea edx, [eax + 1]
imul edx, edx, 0x2613
xor dx, word [eax*2 + 0x5be428]
inc eax
mov word [ebp + eax*2 - 0x20a], dx
cmp eax, 8
jl 0x48691a
push ecx
jmp 0x4fb73b
lea ecx, [eax + 1]
jmp 0x4fb718
jmp 0x4a44a7
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4a4499
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x128], eax
mov byte [esi + 0x120], 1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x120], 0
jne 0x4a44ba
jmp 0x4aea94
mov eax, dword [ebx]
mov byte [edx], 0
cmp eax, 0x1000
jae 0x4aea56
mov dword [esi + 0x12c], eax
jmp 0x4aea69
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4aea5b
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x128], eax
mov byte [esi + 0x120], 1
lea ecx, [ecx]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x120], 0
jne 0x4aea7f
mov esi, dword [esi + 0x124]
test esi, esi
je 0x48690d
mov ecx, dword [ebp - 0x20c]
mov eax, dword [ecx + 0x22c]
jmp 0x47088c
imul ecx, ecx, 0x2fe7
xor cx, word [eax*2 + 0x5be43c]
inc eax
mov word [ebp + eax*2 - 0x20a], cx
cmp eax, 8
jl 0x486943
mov edx, dword [ebx]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x108]
jmp dword [0x4fb75a]
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x1e0]
push ebx
push esi
push edi
mov dword [ebp - 0x20c], ecx
jmp 0x52dafa
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x52db24
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fc32e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20c]
mov eax, dword [ebp - 0x210]
mov ebx, dword [eax]
mov eax, dword [ebx]
mov ecx, dword [ecx + 0x248]
mov esi, dword [ecx]
mov dword [ebp - 0x218], ebx
test eax, eax
jne 0x46fd53
jmp dword [0x52db4c]
je 0x40847a
jmp 0x53fbed
mov edi, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x20c]
mov ebx, dword [edi]
mov edx, dword [ecx + 0x248]
mov eax, dword [ebx + 4]
mov esi, dword [edx]
lea edx, [esi + 0x130]
test eax, eax
je 0x4a44d4
mov byte [edx], 0
cmp eax, 0x1000
jae 0x4a4497
mov dword [esi + 0x12c], eax
jmp 0x4a4492