Function at 0x404f4b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, ecx
test ebp, ebp
je 0x40538d
shr ebp, 4
cmp byte [esi], 0
mov dword [esp + 0x48], ebp
je 0x404f7d
push dword [esp + 0x4c]
push ebp
push dword [esp + 0x4c]
call fcn.00405395
jmp 0x40538d
lea ecx, [esi + 8]
mov dword [esp + 0x1c], ecx
push edi
mov edi, ecx
test ebp, ebp
je 0x405376
mov eax, dword [esp + 0x50]
add eax, 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
add eax, 8
mov dword [esp + 0x18], eax
push ebx
cmp byte [esi + 1], 0
je 0x404fcd
add eax, 0xfffffff8
push eax
push edi
lea eax, [esp + 0x40]
push eax
call fcn.00404f19
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
jmp 0x404fe8
mov ebx, dword [eax - 8]
mov edi, dword [eax - 4]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov eax, dword [esi + 0x18]
xor eax, ebx
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x18], eax
xor ebx, edx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x1c]
xor eax, edi
mov edx, dword [esi + 0x24]
mov dword [esp + 0x14], eax
xor edx, ecx
mov dword [esp + 0x2c], eax
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov edi, dword [esp + 0x10]
mov ecx, dword [ecx*4 + 0x439bf0]
add edi, 0xfffffffc
mov dword [esp + 0x20], edx
xor ecx, dword [eax*4 + 0x4397f0]
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebx
xor ecx, dword [eax*4 + 0x4393f0]
mov eax, dword [esp + 0x18]
movzx eax, al
xor ecx, dword [eax*4 + 0x438ff0]
mov eax, edx
shr eax, 0x10
mov dword [edi], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4397f0]
xor ecx, dword [eax*4 + 0x4393f0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x439bf0]
mov eax, dword [esp + 0x14]
movzx eax, al
xor ecx, dword [eax*4 + 0x438ff0]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, edx
mov ecx, dword [esp + 0x14]
shr eax, 8
movzx eax, al
shr ecx, 0x18
mov edx, dword [eax*4 + 0x4393f0]
xor edx, dword [ecx*4 + 0x439bf0]
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x4397f0]
movzx eax, bl
shr ebx, 0x18
xor edx, dword [eax*4 + 0x438ff0]
mov eax, dword [esp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx*4 + 0x439bf0]
mov ebx, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x4397f0]
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4393f0]
mov eax, dword [esp + 0x20]
movzx eax, al
xor ecx, dword [eax*4 + 0x438ff0]
mov dword [ebx + 8], ecx
xor ecx, ecx
inc ecx
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 4]
dec eax
cmp eax, ecx
jle 0x40523a
lea ecx, [esi + 0x28]
mov ebp, ebx
mov dword [esp + 0x14], ecx
push ecx
push edi
lea eax, [esp + 0x30]
push eax
call fcn.00404f19
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
movzx ecx, al
movzx eax, dh
mov ebx, dword [esp + 0x30]
mov ecx, dword [ecx*4 + 0x438ff0]
xor ecx, dword [eax*4 + 0x4393f0]
movzx eax, byte [esp + 0x32]
xor ecx, dword [eax*4 + 0x4397f0]
movzx eax, byte [esp + 0x37]
xor ecx, dword [eax*4 + 0x439bf0]
movzx eax, byte [esp + 0x2b]
mov dword [edi], ecx
movzx ecx, dl
mov edx, dword [eax*4 + 0x439bf0]
movzx eax, bh
xor edx, dword [ecx*4 + 0x438ff0]
movzx ecx, byte [esp + 0x2f]
xor edx, dword [eax*4 + 0x4393f0]
movzx eax, byte [esp + 0x36]
xor edx, dword [eax*4 + 0x4397f0]
movzx eax, byte [esp + 0x2a]
mov dword [ebp], edx
mov edx, dword [eax*4 + 0x4397f0]
xor edx, dword [ecx*4 + 0x439bf0]
movzx ecx, byte [esp + 0x2e]
movzx eax, bl
mov ebx, dword [esp + 0x34]
xor edx, dword [eax*4 + 0x438ff0]
movzx eax, bh
xor edx, dword [eax*4 + 0x4393f0]
mov eax, dword [esp + 0x28]
movzx eax, ah
mov dword [ebp + 4], edx
mov edx, dword [eax*4 + 0x4393f0]
xor edx, dword [ecx*4 + 0x4397f0]
movzx eax, byte [esp + 0x33]
mov ecx, dword [esp + 0x14]
add ecx, 0x10
mov dword [esp + 0x14], ecx
xor edx, dword [eax*4 + 0x439bf0]
movzx eax, bl
xor edx, dword [eax*4 + 0x438ff0]
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 4]
inc edx
dec eax
mov dword [esp + 0x18], edx
cmp edx, eax
jl 0x405137
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 4]
shl eax, 4
add eax, 8
add eax, esi
push eax
push edi
lea eax, [esp + 0x30]
push eax
call fcn.00404f19
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
movzx eax, dl
mov al, byte [eax*4 + 0x438ff1]
mov byte [edi], al
movzx eax, ch
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx - 3], al
movzx eax, byte [esp + 0x32]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx - 2], al
movzx eax, byte [esp + 0x37]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx - 1], al
movzx eax, cl
mov ecx, dword [esp + 0x30]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx], al
movzx eax, ch
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 1], al
movzx eax, byte [esp + 0x36]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 2], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 3], al
movzx eax, cl
mov ecx, dword [esp + 0x34]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 4], al
movzx eax, ch
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 5], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 6], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 7], al
movzx eax, cl
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 8], al
movzx eax, dh
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 9], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 0xa], al
movzx eax, byte [esp + 0x33]
mov al, byte [eax*4 + 0x438ff1]
mov byte [ebx + 0xb], al
mov eax, dword [esi + 4]
shl eax, 4
add eax, 0x18
add eax, esi
push eax
push edi
push edi
call fcn.00404f19
mov eax, dword [esp + 0x1c]
add ebx, 0x10
add eax, 0x10
mov dword [esp + 0x10], ebx
sub ebp, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], ebp
jne 0x404fa6
mov ecx, dword [esp + 0x24]
pop ebx
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0xc], eax
pop edi
pop esi
pop ebp
add esp, 0x38
ret 0xc