Function at 0x419e30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x15c
mov eax, dword [0x4a99c8]
xor eax, esp
mov dword [esp + 0x158], eax
xor eax, eax
push ebx
mov ebx, dword [esp + 0x164]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x16c], eax
jbe 0x41a08d
mov edx, dword [esp + 0x168]
push ebp
push esi
push edi
nop dword [eax]
mov ecx, dword [ebx + 0x40]
mov al, byte [eax + edx]
mov byte [ebx + ecx], al
inc dword [ebx + 0x40]
cmp dword [ebx + 0x40], 0x40
jne 0x41a074
xor esi, esi
lea edx, [ebx + 1]
nop dword [eax + 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 + 0x28], ecx
inc esi
cmp esi, 0x10
jb 0x419e90
cmp esi, 0x50
jae 0x419ee9
mov edx, 0x50
lea eax, [esp + esi*4 - 0x10]
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 0x419ed0
mov eax, dword [ebx + 0x50]
xor esi, esi
mov ecx, dword [ebx + 0x60]
mov ebp, dword [ebx + 0x54]
mov edi, dword [ebx + 0x58]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebx + 0x64]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov ecx, ebp
mov edx, ebx
not ecx
rol edx, 5
and ecx, eax
mov eax, edi
and eax, ebp
xor ecx, eax
mov eax, edi
add edx, ecx
mov edi, ebp
add edx, dword [esp + esi*4 + 0x28]
mov ebp, ebx
add edx, dword [esp + 0x1c]
inc esi
add edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, edx
ror edi, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp esi, 0x14
jb 0x419f11
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x20]
cmp esi, 0x28
jae 0x419f9f
mov ecx, dword [ebx + 0x68]
mov ebx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
xor eax, edi
rol edx, 5
xor eax, ebp
add edx, eax
mov eax, edi
add edx, dword [esp + esi*4 + 0x28]
mov edi, ebp
add edx, dword [esp + 0x1c]
inc esi
add edx, ecx
ror edi, 2
mov ecx, dword [esp + 0x10]
mov ebp, ebx
mov dword [esp + 0x10], eax
mov ebx, edx
cmp esi, 0x28
jb 0x419f67
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
cmp esi, 0x3c
jae 0x419ff3
mov ecx, dword [ebx + 0x6c]
mov ebx, dword [esp + 0x18]
mov edx, ebx
mov dword [esp + 0x1c], ecx
mov ecx, edi
rol edx, 5
xor ecx, ebp
and ecx, eax
mov eax, edi
and eax, ebp
xor ecx, eax
mov eax, dword [esp + 0x10]
add edx, ecx
add edx, dword [esp + esi*4 + 0x28]
inc esi
add edx, dword [esp + 0x1c]
add edx, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, edi
mov edi, ebp
mov dword [esp + 0x10], eax
ror edi, 2
mov ebp, ebx
mov ebx, edx
cmp esi, 0x3c
jb 0x419fb1
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, edx
cmp esi, 0x50
jae 0x41a044
mov ecx, dword [ebx + 0x70]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, edx
nop dword [eax + eax]
xor eax, edi
rol ecx, 5
xor eax, ebp
add ecx, eax
mov eax, edi
add ecx, dword [esp + esi*4 + 0x28]
mov edi, ebp
add ecx, dword [esp + 0x1c]
inc esi
add ecx, ebx
ror edi, 2
mov ebx, dword [esp + 0x10]
mov ebp, edx
mov dword [esp + 0x10], eax
mov edx, ecx
cmp esi, 0x50
jb 0x41a010
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
add dword [ebx + 0x5c], eax
add dword [ebx + 0x50], ecx
add dword [ebx + 0x54], ebp
add dword [ebx + 0x58], edi
mov eax, dword [esp + 0x14]
add dword [ebx + 0x60], eax
add dword [ebx + 0x48], 0x200
mov edx, dword [esp + 0x174]
adc dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], 0
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x178]
jb 0x419e70
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x15c]
pop ebx
xor ecx, esp
call fcn.0041c143
add esp, 0x15c
ret