Function at 0x41d410
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov eax, 0x9e3779b9
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ebx, eax
mov edi, eax
mov edx, eax
mov ecx, eax
mov esi, eax
mov dword [esp + 0x20], 4
jmp 0x41d444
mov ebx, dword [esp + 0x18]
mov ebp, ecx
shl ebp, 0xb
xor esi, ebp
add edi, esi
add ecx, edx
mov ebp, edx
ror ebp, 2
xor ecx, ebp
add ebx, ecx
add edx, edi
mov ebp, edi
shl ebp, 8
xor edx, ebp
mov ebp, ebx
add edi, ebx
add eax, edx
ror ebp, 0x10
xor edi, ebp
add dword [esp + 0x14], edi
add ebx, eax
mov ebp, eax
shl ebp, 0xa
xor ebx, ebp
add dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x14]
mov ebp, ebx
ror ebp, 4
add eax, ebx
xor eax, ebp
mov ebp, dword [esp + 0x10]
add ebx, ebp
shl ebp, 8
xor ebx, ebp
mov ebp, dword [esp + 0x10]
add esi, eax
add ecx, ebx
mov dword [esp + 0x14], ebx
mov ebx, esi
add ebp, esi
ror ebx, 9
xor ebx, ebp
add edx, ebx
add esi, ecx
sub dword [esp + 0x20], 1
mov dword [esp + 0x10], ebx
jne 0x41d440
mov dword [esp + 0x1c], eax
mov eax, 0xc
mov dword [esp + 0x20], eax
lea ebx, [ebx]
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x38]
mov ebp, dword [eax + ebx + 4]
add edx, dword [eax + ebx - 4]
add ecx, dword [eax + ebx - 8]
add edi, dword [eax + ebx]
add esi, dword [eax + ebx - 0xc]
add dword [esp + 0x18], ebp
mov ebp, dword [eax + ebx + 8]
add dword [esp + 0x1c], ebp
mov ebp, dword [eax + ebx + 0xc]
mov eax, dword [eax + ebx + 0x10]
add dword [esp + 0x10], eax
add dword [esp + 0x14], ebp
mov eax, ecx
shl eax, 0xb
xor esi, eax
add edi, esi
add ecx, edx
mov eax, edx
ror eax, 2
xor ecx, eax
mov eax, dword [esp + 0x18]
add eax, ecx
add edx, edi
mov ebp, eax
mov ebx, edi
shl ebx, 8
xor edx, ebx
mov ebx, dword [esp + 0x1c]
add ebx, edx
ror ebp, 0x10
add edi, eax
add eax, ebx
xor edi, ebp
add dword [esp + 0x14], edi
mov ebp, ebx
shl ebp, 0xa
xor eax, ebp
add dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
add ebx, eax
mov ebp, eax
ror ebp, 4
xor ebx, ebp
add esi, ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x10]
add eax, ebx
mov ebp, ebx
shl ebp, 8
xor eax, ebp
add ecx, eax
add ebx, esi
mov dword [esp + 0x14], eax
mov eax, esi
ror eax, 9
xor eax, ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ebx + 0x3c]
add edx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
add esi, ecx
mov dword [eax + ebp - 0xc], esi
mov ebp, dword [ebx + 0x3c]
mov dword [eax + ebp - 8], ecx
mov ebp, dword [ebx + 0x3c]
mov dword [eax + ebp - 4], edx
mov ebp, dword [ebx + 0x3c]
mov dword [eax + ebp], edi
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x18]
mov dword [eax + ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x1c]
mov dword [eax + ebx + 8], ebp
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x14]
mov dword [eax + ebx + 0xc], ebp
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x10]
mov dword [eax + ebx + 0x10], ebp
add eax, 0x20
cmp eax, 0x40c
mov dword [esp + 0x20], eax
jl 0x41d4d0
mov eax, 0xc
mov dword [esp + 0x24], eax
jmp 0x41d600
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x3c]
add ecx, dword [ebx + eax - 8]
mov ebp, dword [ebx + eax - 0xc]
add edx, dword [ebx + eax - 4]
add ebp, esi
mov dword [esp + 0x20], ebx
mov esi, ecx
shl esi, 0xb
xor esi, ebp
mov ebp, dword [ebx + eax]
mov ebx, dword [ebx + eax + 4]
add ebp, esi
add edi, ebp
add ecx, edx
mov ebp, edx
ror ebp, 2
xor ecx, ebp
add ebx, ecx
add dword [esp + 0x18], ebx
add edx, edi
mov ebx, edi
shl ebx, 8
xor edx, ebx
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + eax + 8]
add ebx, edx
add dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x18]
mov ebp, ebx
add ebx, edi
ror ebp, 0x10
xor ebp, ebx
mov ebx, dword [esp + 0x20]
mov ebx, dword [ebx + eax + 0xc]
mov edi, ebp
mov ebp, dword [esp + 0x18]
add ebx, edi
add dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
add ebp, ebx
shl ebx, 0xa
xor ebx, ebp
mov ebp, dword [esp + 0x20]
mov eax, dword [eax + ebp + 0x10]
mov ebp, dword [esp + 0x1c]
add eax, ebx
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
add ebp, eax
mov dword [esp + 0x18], ebx
mov ebx, eax
ror ebx, 4
xor ebx, ebp
add esi, ebx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x10]
add eax, ebx
mov ebp, ebx
shl ebp, 8
xor eax, ebp
add ecx, eax
mov dword [esp + 0x14], eax
mov eax, esi
add ebx, esi
ror eax, 9
xor eax, ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [ebx + 0x3c]
add edx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
add esi, ecx
mov dword [eax + ebp - 0xc], esi
mov ebp, dword [ebx + 0x3c]
mov dword [eax + ebp - 8], ecx
mov ebp, dword [ebx + 0x3c]
mov dword [eax + ebp - 4], edx
mov ebp, dword [ebx + 0x3c]
mov dword [eax + ebp], edi
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x18]
mov dword [eax + ebx + 4], ebp
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x1c]
mov dword [eax + ebx + 8], ebp
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x14]
mov dword [eax + ebx + 0xc], ebp
mov ebx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x10]
mov dword [eax + ebx + 0x10], ebp
add eax, 0x20
cmp eax, 0x40c
mov dword [esp + 0x24], eax
jl 0x41d600
mov eax, dword [esp + 0x2c]
call fcn.0041d350
pop edi
pop esi
pop ebp
mov dword [eax + 0x34], 0x100
pop ebx
add esp, 0x18
ret 4