Function at 0x407f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x43c01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x154], ebx
push edi
add edx, 2
nop word [eax + eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
movzx eax, byte [edx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jb 0x407f30
mov eax, dword [ebx + 8]
lea edx, [ebp - 0x13c]
mov edi, dword [ebx + 0x10]
mov ecx, 0x40
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x148], eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x154]
mov esi, dword [eax + 0x18]
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
rol eax, 1
mov dword [edx + 0x34], eax
sub ecx, 1
jne 0x407f91
mov ecx, dword [ebp - 0x148]
xor eax, eax
mov edx, ecx
mov ecx, ebx
xor ecx, edi
rol edx, 5
and ecx, dword [ebp - 0x14c]
rol dword [ebp - 0x14c], 0x1e
xor ecx, ebx
add ecx, 0x5a827999
add edx, ecx
mov ecx, edi
xor ecx, dword [ebp - 0x14c]
and ecx, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x144]
xor ecx, edi
rol dword [ebp - 0x148], 0x1e
add esi, edx
add ecx, 0x5a827999
mov edx, esi
rol edx, 5
add edx, ecx
mov ecx, dword [ebp - 0x14c]
xor ecx, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x140]
and ecx, esi
xor ecx, dword [ebp - 0x14c]
add ebx, edx
add ecx, 0x5a827999
rol esi, 0x1e
mov edx, ebx
rol edx, 5
add edx, ecx
mov ecx, esi
xor ecx, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x13c]
and ecx, ebx
xor ecx, dword [ebp - 0x148]
add edi, edx
mov edx, edi
rol ebx, 0x1e
rol edx, 5
add edx, ecx
mov ecx, dword [ebp - 0x14c]
add edx, dword [ebp + eax*4 - 0x138]
add ecx, 0x5a827999
add ecx, edx
mov edx, ecx
mov dword [ebp - 0x14c], ecx
mov ecx, esi
rol edx, 5
xor ecx, ebx
and ecx, edi
rol edi, 0x1e
xor ecx, esi
add edx, ecx
mov ecx, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x134]
add ecx, 0x5a827999
add ecx, edx
add eax, 5
mov dword [ebp - 0x148], ecx
cmp eax, 0x14
jb 0x407fb2
mov dword [ebp - 0x150], esi
cmp eax, 0x28
jae 0x408197
mov edx, ecx
mov ecx, ebx
xor ecx, edi
rol edx, 5
xor ecx, dword [ebp - 0x14c]
rol dword [ebp - 0x14c], 0x1e
add ecx, 0x6ed9eba1
add edx, ecx
mov ecx, edi
add edx, dword [ebp + eax*4 - 0x144]
xor ecx, dword [ebp - 0x14c]
add esi, edx
xor ecx, dword [ebp - 0x148]
mov edx, esi
rol dword [ebp - 0x148], 0x1e
add ecx, 0x6ed9eba1
rol edx, 5
add edx, ecx
mov ecx, esi
add edx, dword [ebp + eax*4 - 0x140]
xor ecx, dword [ebp - 0x14c]
add ebx, edx
xor ecx, dword [ebp - 0x148]
mov edx, ebx
add ecx, 0x6ed9eba1
rol edx, 5
add edx, ecx
rol esi, 0x1e
add edx, dword [ebp + eax*4 - 0x13c]
mov ecx, esi
add edi, edx
xor ecx, ebx
xor ecx, dword [ebp - 0x148]
mov edx, edi
rol edx, 5
add edx, ecx
rol ebx, 0x1e
add edx, dword [ebp + eax*4 - 0x138]
mov ecx, dword [ebp - 0x14c]
add ecx, 0x6ed9eba1
add ecx, edx
mov edx, ecx
mov dword [ebp - 0x14c], ecx
mov ecx, esi
rol edx, 5
xor ecx, ebx
xor ecx, edi
rol edi, 0x1e
add edx, ecx
mov ecx, dword [ebp - 0x148]
add edx, dword [ebp + eax*4 - 0x134]
add ecx, 0x6ed9eba1
add ecx, edx
add eax, 5
mov dword [ebp - 0x148], ecx
cmp eax, 0x28
jb 0x4080b2
mov dword [ebp - 0x150], esi
cmp eax, 0x3c
jae 0x4082cd
mov esi, ecx
mov edx, edi
or edx, dword [ebp - 0x14c]
mov ecx, edi
and ecx, dword [ebp - 0x14c]
and edx, ebx
or edx, ecx
rol esi, 5
add edx, dword [ebp + eax*4 - 0x144]
add edx, dword [ebp - 0x150]
lea ecx, [esi - 0x70e44324]
add ecx, edx
mov edx, dword [ebp - 0x14c]
rol edx, 0x1e
mov esi, ecx
mov dword [ebp - 0x14c], edx
or edx, dword [ebp - 0x148]
and edx, edi
mov dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x14c]
and ecx, dword [ebp - 0x148]
or edx, ecx
rol dword [ebp - 0x148], 0x1e
add edx, dword [ebp + eax*4 - 0x140]
mov ecx, dword [ebp - 0x150]
add edx, ebx
rol esi, 5
lea ebx, [esi - 0x70e44324]
add ebx, edx
mov edx, ecx
or edx, dword [ebp - 0x148]
mov esi, ebx
and edx, dword [ebp - 0x14c]
and ecx, dword [ebp - 0x148]
or edx, ecx
rol esi, 5
add edx, dword [ebp + eax*4 - 0x13c]
mov ecx, dword [ebp - 0x150]
add edx, edi
rol ecx, 0x1e
lea edi, [esi - 0x70e44324]
mov dword [ebp - 0x150], ecx
add edi, edx
mov edx, ecx
or edx, ebx
and ecx, ebx
and edx, dword [ebp - 0x148]
mov esi, edi
or edx, ecx
rol esi, 5
add edx, dword [ebp + eax*4 - 0x138]
add edx, dword [ebp - 0x14c]
rol ebx, 0x1e
lea ecx, [esi - 0x70e44324]
add ecx, edx
mov edx, ebx
mov esi, ecx
mov dword [ebp - 0x14c], ecx
or edx, edi
rol esi, 5
and edx, dword [ebp - 0x150]
mov ecx, ebx
and ecx, edi
rol edi, 0x1e
or edx, ecx
add edx, dword [ebp + eax*4 - 0x134]
lea ecx, [esi - 0x70e44324]
add edx, dword [ebp - 0x148]
add eax, 5
add ecx, edx
mov dword [ebp - 0x148], ecx
cmp eax, 0x3c
jb 0x4081a0
mov esi, dword [ebp - 0x150]
cmp eax, 0x50
jae 0x4083b1
mov edx, ecx
mov ecx, ebx
xor ecx, edi
rol edx, 5
xor ecx, dword [ebp - 0x14c]
add ecx, dword [ebp + eax*4 - 0x144]
rol dword [ebp - 0x14c], 0x1e
add ecx, esi
lea esi, [edx - 0x359d3e2a]
add esi, ecx
mov ecx, edi
xor ecx, dword [ebp - 0x14c]
mov edx, esi
xor ecx, dword [ebp - 0x148]
add ecx, dword [ebp + eax*4 - 0x140]
rol dword [ebp - 0x148], 0x1e
add ecx, ebx
rol edx, 5
lea ebx, [edx - 0x359d3e2a]
add ebx, ecx
mov ecx, esi
xor ecx, dword [ebp - 0x14c]
mov edx, ebx
xor ecx, dword [ebp - 0x148]
add ecx, dword [ebp + eax*4 - 0x13c]
add ecx, edi
rol edx, 5
rol esi, 0x1e
lea edi, [edx - 0x359d3e2a]
add edi, ecx
mov ecx, esi
xor ecx, ebx
mov edx, edi
xor ecx, dword [ebp - 0x148]
add ecx, dword [ebp + eax*4 - 0x138]
add ecx, dword [ebp - 0x14c]
rol edx, 5
add edx, 0xca62c1d6
rol ebx, 0x1e
add ecx, edx
mov edx, ecx
mov dword [ebp - 0x14c], ecx
mov ecx, esi
rol edx, 5
xor ecx, ebx
xor ecx, edi
rol edi, 0x1e
add ecx, 0xca62c1d6
add ecx, dword [ebp + eax*4 - 0x134]
add eax, 5
add ecx, dword [ebp - 0x148]
add ecx, edx
mov dword [ebp - 0x148], ecx
cmp eax, 0x50
jb 0x4082d6
mov eax, dword [ebp - 0x158]
add eax, ecx
mov ecx, dword [ebp - 0x154]
add dword [ecx + 0x10], edi
add dword [ecx + 0x14], ebx
add dword [ecx + 0x18], esi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14c]
add dword [ecx + 0xc], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417f8c
mov esp, ebp
pop ebp
ret