Function at 0x40c950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x43c3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x134], eax
lea ebx, [ebp - 0xfe]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x13c], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x130], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x128], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x118], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x114], ecx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x110], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10c], eax
xor eax, eax
mov dword [ebp - 0x108], ecx
lea edi, [ebp - 0x102]
mov dword [ebp - 0x11c], eax
lea ecx, [ebp - 0xfa]
mov esi, eax
mov eax, dword [ebp + 0xc]
sub edi, eax
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0x120], ecx
lea edx, [eax + 2]
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
mov dword [ebp + esi*4 - 0x104], ecx
add esi, 4
movzx ecx, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
mov dword [edi + edx], ecx
movzx ecx, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
mov dword [ebx + edx], ecx
movzx ecx, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x120]
mov dword [eax + edx], ecx
lea edx, [edx + 0x10]
cmp esi, 0x10
jl 0x40c9eb
lea eax, [ebp - 0xcc]
mov dword [ebp - 0x120], 0xc
mov dword [ebp - 0x124], eax
mov edi, dword [eax - 0x34]
mov ebx, edi
mov edx, dword [eax]
mov eax, edi
ror eax, 7
mov ecx, edx
ror ebx, 0x12
xor ebx, eax
ror ecx, 0x13
mov eax, edi
shr eax, 3
xor ebx, eax
mov eax, edx
ror eax, 0x11
xor ecx, eax
shr edx, 0xa
xor ecx, edx
add ebx, ecx
mov ecx, dword [ebp - 0x124]
mov esi, dword [ecx - 0x30]
mov eax, dword [ecx - 0x30]
add ebx, dword [ecx - 0x38]
add ebx, dword [ecx - 0x14]
mov edx, dword [ecx + 4]
ror eax, 7
ror esi, 0x12
xor esi, eax
mov dword [ecx + 8], ebx
mov eax, dword [ecx - 0x30]
mov ecx, edx
shr eax, 3
xor esi, eax
ror ecx, 0x13
mov eax, edx
shr edx, 0xa
ror eax, 0x11
xor ecx, eax
mov eax, dword [ebp - 0x124]
xor ecx, edx
mov edx, ebx
add esi, ecx
ror edx, 0x13
add esi, dword [eax - 0x10]
add edi, esi
lea esi, [eax + 0x10]
mov dword [eax + 0xc], edi
mov eax, ebx
ror eax, 0x11
xor edx, eax
shr ebx, 0xa
xor edx, ebx
mov dword [ebp - 0x138], esi
mov ebx, dword [ebp - 0x124]
mov ecx, dword [ebx - 0x2c]
mov eax, dword [ebx - 0x2c]
ror eax, 7
ror ecx, 0x12
xor ecx, eax
mov eax, dword [ebx - 0x2c]
shr eax, 3
xor ecx, eax
mov eax, edi
add edx, ecx
ror eax, 0x11
add edx, dword [ebx - 0xc]
add edx, dword [ebx - 0x30]
mov dword [esi], edx
mov esi, edi
mov edx, dword [ebx - 0x28]
mov ecx, edx
ror esi, 0x13
xor esi, eax
ror ecx, 0x12
mov eax, edx
shr edi, 0xa
ror eax, 7
xor esi, edi
xor ecx, eax
shr edx, 3
xor ecx, edx
add esi, ecx
add esi, dword [ebx - 8]
add esi, dword [ebx - 0x2c]
dec dword [ebp - 0x120]
mov eax, dword [ebp - 0x138]
mov dword [ebx + 0x14], esi
mov dword [ebp - 0x124], eax
jne 0x40caa1
mov ebx, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x130]
mov edi, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x114]
mov edx, ecx
ror edx, 0x19
mov eax, ecx
ror eax, 0xb
xor edx, eax
mov eax, ecx
ror eax, 6
xor edx, eax
mov eax, dword [ebp - 0x108]
xor eax, dword [ebp - 0x110]
and eax, ecx
mov ecx, ebx
xor eax, dword [ebp - 0x108]
add edx, eax
ror ecx, 0x16
mov eax, dword [ebp - 0x11c]
add edx, dword [eax + 0x431d70]
add edx, dword [ebp + eax - 0x104]
mov eax, ebx
add edx, dword [ebp - 0x10c]
ror eax, 0xd
xor ecx, eax
add dword [ebp - 0x118], edx
mov eax, ebx
ror eax, 2
xor ecx, eax
mov eax, esi
or eax, ebx
add ecx, edx
and eax, edi
mov dword [ebp - 0x10c], eax
mov eax, esi
and eax, ebx
or dword [ebp - 0x10c], eax
add dword [ebp - 0x10c], ecx
mov ecx, dword [ebp - 0x118]
mov edx, ecx
ror edx, 0x19
mov eax, ecx
ror eax, 0xb
xor edx, eax
mov eax, ecx
ror eax, 6
xor edx, eax
mov eax, dword [ebp - 0x110]
xor eax, dword [ebp - 0x114]
and eax, ecx
xor eax, dword [ebp - 0x110]
add edx, eax
mov eax, dword [ebp - 0x11c]
add edx, dword [ebp + eax - 0x100]
add edx, dword [eax + 0x431d74]
mov eax, dword [ebp - 0x10c]
mov ecx, eax
add edx, dword [ebp - 0x108]
ror eax, 0xd
add edi, edx
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x10c]
ror eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x10c]
or eax, ebx
add ecx, edx
and eax, esi
mov edx, edi
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x10c]
and eax, ebx
ror edx, 0x19
or dword [ebp - 0x108], eax
mov eax, edi
add dword [ebp - 0x108], ecx
ror eax, 0xb
xor edx, eax
mov eax, edi
ror eax, 6
xor edx, eax
mov eax, dword [ebp - 0x114]
xor eax, dword [ebp - 0x118]
and eax, edi
xor eax, dword [ebp - 0x114]
add edx, eax
mov eax, dword [ebp - 0x11c]
add edx, dword [ebp + eax - 0xfc]
add edx, dword [eax + 0x431d78]
add edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x108]
add esi, edx
mov ecx, eax
ror eax, 0xd
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x108]
ror eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x10c]
or eax, dword [ebp - 0x108]
add ecx, edx
and eax, ebx
mov edx, esi
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x10c]
and eax, dword [ebp - 0x108]
or dword [ebp - 0x110], eax
mov eax, esi
ror eax, 0xb
add dword [ebp - 0x110], ecx
ror edx, 0x19
xor edx, eax
mov eax, esi
ror eax, 6
xor edx, eax
mov eax, dword [ebp - 0x118]
xor eax, edi
and eax, esi
xor eax, dword [ebp - 0x118]
add edx, eax
mov eax, dword [ebp - 0x11c]
add edx, dword [ebp + eax - 0xf8]
add edx, dword [eax + 0x431d7c]
mov eax, dword [ebp - 0x110]
mov ecx, eax
add edx, dword [ebp - 0x114]
ror eax, 0xd
add ebx, edx
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x110]
ror eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x108]
or eax, dword [ebp - 0x110]
add ecx, edx
and eax, dword [ebp - 0x10c]
mov edx, ebx
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x108]
and eax, dword [ebp - 0x110]
or dword [ebp - 0x114], eax
mov eax, ebx
ror eax, 0xb
add dword [ebp - 0x114], ecx
ror edx, 0x19
xor edx, eax
mov eax, ebx
ror eax, 6
xor edx, eax
mov eax, edi
xor eax, esi
and eax, ebx
xor eax, edi
add edx, eax
mov eax, dword [ebp - 0x11c]
add edx, dword [ebp + eax - 0xf4]
add edx, dword [eax + 0x431d80]
add edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov ecx, eax
add dword [ebp - 0x10c], edx
ror eax, 0xd
ror ecx, 0x16
xor ecx, eax
mov eax, dword [ebp - 0x114]
ror eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x110]
or eax, dword [ebp - 0x114]
add ecx, edx
and eax, dword [ebp - 0x108]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x110]
and eax, dword [ebp - 0x114]
or dword [ebp - 0x118], eax
add dword [ebp - 0x118], ecx
mov ecx, dword [ebp - 0x10c]
mov edx, ecx
ror edx, 0x19
mov eax, ecx
ror eax, 0xb
xor edx, eax
mov eax, ecx
ror eax, 6
xor edx, eax
mov eax, esi
xor eax, ebx
and eax, ecx
xor eax, esi
add edx, eax
mov eax, dword [ebp - 0x11c]
add edx, dword [ebp + eax - 0xf0]
add edx, dword [eax + 0x431d84]
add edx, edi
mov edi, dword [ebp - 0x118]
add dword [ebp - 0x108], edx
mov ecx, edi
ror ecx, 0x16
mov eax, edi
ror eax, 0xd
xor ecx, eax
mov eax, edi
ror eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x114]
mov edi, eax
add ecx, edx
and eax, dword [ebp - 0x118]
or edi, dword [ebp - 0x118]
and edi, dword [ebp - 0x110]
or edi, eax
add edi, ecx
mov ecx, dword [ebp - 0x108]
mov edx, ecx
mov eax, ecx
ror eax, 0xb
ror edx, 0x19
xor edx, eax
mov eax, ecx
ror eax, 6
xor edx, eax
mov eax, dword [ebp - 0x10c]
xor eax, ebx
and eax, ecx
mov ecx, edi
xor eax, ebx
ror ecx, 0x16
add edx, eax
mov eax, dword [ebp - 0x11c]
add edx, dword [ebp + eax - 0xec]
add edx, dword [eax + 0x431d88]
mov eax, edi
ror eax, 0xd
add edx, esi
add dword [ebp - 0x110], edx
xor ecx, eax
mov eax, edi
ror eax, 2
xor ecx, eax
mov eax, dword [ebp - 0x118]
mov esi, eax
or esi, edi
and esi, dword [ebp - 0x114]
and eax, edi
or esi, eax
add ecx, edx
add esi, ecx
mov ecx, dword [ebp - 0x110]
mov edx, ecx
mov eax, ecx
ror eax, 0xb
ror edx, 0x19
xor edx, eax
mov eax, ecx
ror eax, 6
xor edx, eax
mov eax, dword [ebp - 0x10c]
xor eax, dword [ebp - 0x108]
and eax, ecx
mov ecx, esi
xor eax, dword [ebp - 0x10c]
add edx, eax
ror ecx, 0x16
mov eax, dword [ebp - 0x11c]
add edx, dword [ebp + eax - 0xe8]
add edx, dword [eax + 0x431d8c]
mov eax, esi
ror eax, 0xd
add edx, ebx
add dword [ebp - 0x114], edx
xor ecx, eax
mov eax, esi
mov ebx, edi
ror eax, 2
or ebx, esi
and ebx, dword [ebp - 0x118]
xor ecx, eax
mov eax, edi
add ecx, edx
and eax, esi
or ebx, eax
mov eax, dword [ebp - 0x11c]
add eax, 0x20
add ebx, ecx
mov dword [ebp - 0x11c], eax
cmp eax, 0x100
jl 0x40cbaf
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x12c]
add eax, ebx
add dword [ecx + 0x10], edi
add dword [ecx + 0xc], esi
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x118]
add dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x114]
add dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x110]
add dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x108]
add dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x10c]
add dword [ecx + 0x24], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004225c9
mov esp, ebp
pop ebp
ret