Function at 0x4199e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x158
mov eax, dword [0x4a99c8]
xor eax, esp
mov dword [esp + 0x154], eax
mov edx, dword [esp + 0x160]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x16c]
xor esi, esi
mov dword [esp + 0x18], edi
inc edx
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
add ecx, eax
mov dword [esp + esi*4 + 0x24], ecx
inc esi
cmp esi, 0x10
jb 0x419a10
cmp esi, 0x50
jae 0x419a69
mov edx, 0x50
lea eax, [esp + esi*4 - 0x14]
sub edx, esi
nop dword [eax]
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x419a50
mov ecx, dword [edi + 0x60]
mov eax, dword [edi + 0x50]
mov ebp, eax
mov ebx, dword [edi + 0x54]
mov esi, dword [edi + 0x58]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x5c]
xor edi, edi
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x64]
mov dword [esp + 0x1c], ecx
mov ecx, ebx
mov edx, ebp
not ecx
rol edx, 5
and ecx, eax
mov eax, esi
and eax, ebx
xor ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
add edx, dword [esp + edi*4 + 0x24]
inc edi
add edx, dword [esp + 0x1c]
add edx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, esi
mov esi, ebx
mov dword [esp + 0x10], eax
ror esi, 2
mov ebx, ebp
mov ebp, edx
cmp edi, 0x14
jb 0x419a93
mov ecx, dword [esp + 0x18]
cmp edi, 0x28
jae 0x419b1b
mov eax, dword [ecx + 0x68]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
xor eax, esi
rol edx, 5
xor eax, ebx
add edx, eax
mov eax, esi
add edx, dword [esp + edi*4 + 0x24]
mov esi, ebx
add edx, dword [esp + 0x1c]
inc edi
add edx, ecx
ror esi, 2
mov ecx, dword [esp + 0x10]
mov ebx, ebp
mov dword [esp + 0x10], eax
mov ebp, edx
cmp edi, 0x28
jb 0x419ae7
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
cmp edi, 0x3c
jae 0x419b6a
mov ecx, dword [ecx + 0x6c]
mov edx, ebp
mov dword [esp + 0x1c], ecx
nop dword [eax]
mov ecx, esi
rol edx, 5
xor ecx, ebx
and ecx, eax
mov eax, esi
and eax, ebx
xor ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
add edx, dword [esp + edi*4 + 0x24]
inc edi
add edx, dword [esp + 0x1c]
add edx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, esi
mov esi, ebx
mov dword [esp + 0x10], eax
ror esi, 2
mov ebx, ebp
mov ebp, edx
cmp edi, 0x3c
jb 0x419b30
mov ecx, ebp
cmp edi, 0x50
jae 0x419bb0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x70]
mov ecx, ebp
nop word [eax + eax]
xor eax, esi
rol ecx, 5
xor eax, ebx
add ecx, eax
mov eax, dword [esp + 0x10]
add ecx, dword [esp + edi*4 + 0x24]
inc edi
add ecx, edx
add ecx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, esi
mov esi, ebx
mov dword [esp + 0x10], eax
ror esi, 2
mov ebx, ebp
mov ebp, ecx
cmp edi, 0x50
jb 0x419b80
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x18]
pop edi
add dword [ecx + 0x58], esi
add dword [ecx + 0x54], ebx
mov dword [ecx + 0x50], eax
mov eax, dword [esp + 0xc]
add dword [ecx + 0x5c], eax
mov eax, dword [esp + 0x10]
add dword [ecx + 0x60], eax
mov ecx, dword [esp + 0x160]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c143
add esp, 0x158
ret