Function at 0x4043c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x154
push ebx
push esi
xor esi, esi
add edx, 2
push edi
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 - 0x154], ecx
inc esi
cmp esi, 0x10
jb 0x4043d4
lea eax, [ebp - 0x11c]
mov ebx, 0x30
nop
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax - 0x38]
mov edi, edx
mov ecx, edx
ror edi, 0x13
ror ecx, 0x11
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
ror edx, 0x12
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x404410
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x18]
mov ebx, edx
mov dword [ebp - 0x3c], edx
mov edx, dword [edi + 0x1c]
mov esi, edx
mov dword [ebp - 0x44], edx
mov edx, dword [edi + 0x20]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], edx
mov edx, dword [edi + 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x18], edx
xor edx, edx
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0xc]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], edx
nop
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov eax, ebx
ror eax, 0xb
mov dword [ebp - 0x48], esi
mov esi, ebx
ror esi, 0x19
xor esi, eax
mov dword [ebp - 0x34], ecx
mov eax, ebx
mov dword [ebp - 0x14], edi
ror eax, 6
mov ecx, ebx
xor esi, eax
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp - 0x10]
not ecx
and ecx, dword [ebp - 4]
and eax, ebx
xor ecx, eax
mov eax, edi
add esi, ecx
ror eax, 0xd
add esi, dword [edx + 0x4083a8]
add esi, dword [ebp + edx - 0x154]
mov edx, edi
add esi, dword [ebp - 0x18]
ror edx, 0x16
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
and eax, dword [ebp - 8]
xor ecx, dword [ebp - 8]
and ecx, edi
xor ecx, eax
mov eax, dword [ebp - 4]
add edx, ecx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edi
add ebx, esi
lea edi, [edx + esi]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
add edx, 4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], edx
cmp edx, 0x100
jb 0x4044a0
mov eax, dword [ebp - 0x24]
add eax, edi
mov edi, dword [ebp + 8]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x38]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x3c]
add eax, ebx
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x44]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x4c]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x54]
mov dword [edi + 0x24], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret