Function at 0x412a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x4d044c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x164], edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], ebx
cmp dword [ebp + 8], eax
jbe 0x412d30
push esi
push edi
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 0x412d18
xor esi, esi
lea edx, [ebx + 1]
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 [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jb 0x412ab0
cmp esi, 0x50
jae 0x412b0b
mov edx, 0x50
lea eax, [ebp + esi*4 - 0x17c]
sub edx, esi
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 0x412af2
mov eax, dword [ebx + 0x54]
xor esi, esi
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x50]
mov edi, dword [ebx + 0x58]
jnp 0x412b71
mov dword [ebp - 0x150], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x14c], edx
mov edx, dword [ebx + 0x64]
mov ebx, dword [ebp - 0x150]
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x154], edx
mov edx, ecx
mov ecx, ebx
not ecx
rol edx, 5
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x148]
add edx, ecx
add edx, dword [ebp + esi*4 - 0x144]
inc esi
add edx, dword [ebp - 0x154]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], eax
mov ecx, edx
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 0x158]
ror edi, 2
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x158], ecx
cmp esi, 0x14
jb 0x412b43
mov dword [ebp - 0x150], ebx
mov ebx, dword [ebp - 0x15c]
cmp esi, 0x28
jae 0x412c11
mov eax, dword [ebx + 0x68]
mov ebx, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x148]
nop dword [eax]
xor eax, edi
rol edx, 5
xor eax, ebx
add edx, eax
mov eax, dword [ebp - 0x148]
add edx, dword [ebp + esi*4 - 0x144]
inc esi
add edx, dword [ebp - 0x154]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
ror edi, 2
mov ebx, ecx
mov ecx, edx
cmp esi, 0x28
jb 0x412bc0
mov dword [ebp - 0x150], ebx
mov ebx, dword [ebp - 0x15c]
mov dword [ebp - 0x158], ecx
cmp esi, 0x3c
jae 0x412c84
mov edx, dword [ebx + 0x6c]
mov ebx, dword [ebp - 0x150]
mov dword [ebp - 0x154], edx
mov edx, ecx
mov ecx, edi
rol edx, 5
xor ecx, ebx
and ecx, eax
mov eax, edi
and eax, ebx
xor ecx, eax
mov eax, dword [ebp - 0x148]
add edx, ecx
add edx, dword [ebp + esi*4 - 0x144]
inc esi
add edx, dword [ebp - 0x154]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], eax
mov ecx, edx
mov eax, edi
mov edi, ebx
mov ebx, dword [ebp - 0x158]
ror edi, 2
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x158], ecx
cmp esi, 0x3c
jb 0x412c27
mov dword [ebp - 0x150], ebx
mov ebx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x150]
cmp esi, 0x50
jae 0x412ce5
mov ecx, dword [ebx + 0x70]
mov ebx, dword [ebp - 0x158]
mov dword [ebp - 0x154], ecx
mov ecx, ebx
xor eax, edi
rol ecx, 5
xor eax, edx
add ecx, eax
mov eax, dword [ebp - 0x148]
add ecx, dword [ebp + esi*4 - 0x144]
inc esi
add ecx, dword [ebp - 0x154]
add ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], eax
mov eax, edi
mov edi, edx
mov dword [ebp - 0x148], eax
ror edi, 2
mov edx, ebx
mov ebx, ecx
cmp esi, 0x50
jb 0x412ca0
mov ebx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x148]
add dword [ebx + 0x5c], eax
add dword [ebx + 0x54], edx
add dword [ebx + 0x50], ecx
add dword [ebx + 0x58], edi
mov eax, dword [ebp - 0x14c]
add dword [ebx + 0x60], eax
add dword [ebx + 0x48], 0x200
mov edx, dword [ebp - 0x164]
adc dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], 0
mov eax, dword [ebp - 0x160]
inc eax
mov dword [ebp - 0x160], eax
cmp eax, dword [ebp + 8]
jb 0x412a95
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004606ac
mov esp, ebp
pop ebp
ret