Function at 0x402910
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
xor ecx, ecx
push ebx
push ebp
mov dword [eax + 0x80c], ecx
mov dword [eax + 0x808], ecx
mov dword [eax + 0x804], ecx
push esi
mov eax, 0x9e3779b9
push edi
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov edi, eax
mov esi, eax
mov ecx, eax
mov edx, eax
mov dword [esp + 0x1c], 4
mov ebx, eax
add eax, ecx
shl ebx, 0xb
xor edx, ebx
mov ebx, ecx
shr ebx, 2
add esi, edx
xor eax, ebx
mov ebx, esi
add ecx, esi
shl ebx, 8
xor ecx, ebx
mov ebx, dword [esp + 0x10]
add ebx, ecx
add edi, eax
mov dword [esp + 0x10], ebx
mov ebx, edi
add esi, edi
shr ebx, 0x10
xor esi, ebx
mov ebx, dword [esp + 0x14]
add ebx, esi
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
add edi, ebx
shl ebx, 0xa
xor edi, ebx
mov ebx, dword [esp + 0x14]
add ebp, edi
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x10]
add ebp, ebx
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
add edx, ebx
mov ebx, dword [esp + 0x18]
add ebp, ebx
shl ebx, 8
xor ebx, ebp
mov dword [esp + 0x14], ebx
add eax, ebx
mov ebx, dword [esp + 0x18]
lea ebp, [ebx + edx]
mov ebx, edx
shr ebx, 9
xor ebp, ebx
mov ebx, dword [esp + 0x1c]
add ecx, ebp
add edx, eax
dec ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
jne 0x40294e
mov ebx, dword [esp + 0x30]
test ebx, ebx
mov ebx, dword [esp + 0x2c]
je 0x402c54
add ebx, 0x404
lea ebp, [ebx + 0xc]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x2c]
add ebp, 4
mov dword [esp + 0x20], ebp
add ebp, 8
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x20]
sub ebx, ebp
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x30]
mov ebp, dword [ebx - 4]
add eax, ebp
mov ebp, dword [ebx]
add ecx, ebp
mov ebp, dword [ebx - 8]
add ebp, edx
mov edx, eax
shl edx, 0xb
xor edx, ebp
mov ebp, dword [ebx + 4]
add ebp, edx
add eax, ecx
add esi, ebp
mov ebp, ecx
shr ebp, 2
xor eax, ebp
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
add ebp, eax
add edi, ebp
mov ebp, esi
add ecx, esi
add esi, edi
shl ebp, 8
xor ecx, ebp
mov ebp, dword [esp + 0x10]
add ebx, ecx
add ebp, ebx
mov ebx, edi
shr ebx, 0x10
xor esi, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [ebx + 0x10]
add ebx, esi
add ebp, ebx
mov ebx, dword [esp + 0x10]
add edi, ebx
mov dword [esp + 0x14], ebp
shl ebx, 0xa
mov ebp, dword [esp + 0x18]
xor edi, ebx
mov ebx, dword [esp + 0x30]
mov ebx, dword [ebx + 0x14]
add ebx, edi
add ebp, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x10]
add ebp, ebx
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
add edx, ebx
mov ebx, dword [esp + 0x18]
add ebp, ebx
shl ebx, 8
xor ebx, ebp
mov ebp, edx
mov dword [esp + 0x14], ebx
add eax, ebx
mov ebx, dword [esp + 0x18]
add ebx, edx
shr ebp, 9
xor ebx, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x18], ebx
add ecx, ebx
mov ebx, dword [esp + 0x1c]
add edx, eax
mov dword [ebx - 0xc], edx
mov dword [ebx - 8], eax
mov ebx, dword [esp + 0x30]
mov dword [ebx + ebp], ecx
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov dword [ebp], esi
mov dword [ebp + 4], edi
mov dword [ebp + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esp + 0x30]
add ebp, 0x20
add ebx, 0x20
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x20]
dec ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebp
jne 0x402a2d
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], 0x20
add ebx, 0x40c
mov dword [esp + 0x30], ebx
mov ebp, dword [ebx - 4]
add eax, ebp
mov ebp, dword [ebx]
add ecx, ebp
mov ebp, dword [ebx - 8]
add ebp, edx
mov edx, eax
shl edx, 0xb
xor edx, ebp
mov ebp, dword [ebx + 4]
add ebp, edx
add eax, ecx
add esi, ebp
mov ebp, ecx
shr ebp, 2
xor eax, ebp
mov ebp, dword [ebx + 8]
mov ebx, dword [ebx + 0xc]
add ebp, eax
add edi, ebp
mov ebp, esi
add ecx, esi
add esi, edi
shl ebp, 8
xor ecx, ebp
mov ebp, dword [esp + 0x10]
add ebx, ecx
add ebp, ebx
mov ebx, edi
shr ebx, 0x10
xor esi, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [ebx + 0x10]
add ebx, esi
add ebp, ebx
mov ebx, dword [esp + 0x10]
add edi, ebx
mov dword [esp + 0x14], ebp
shl ebx, 0xa
mov ebp, dword [esp + 0x18]
xor edi, ebx
mov ebx, dword [esp + 0x30]
mov ebx, dword [ebx + 0x14]
add ebx, edi
add ebp, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x10]
add ebp, ebx
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
add edx, ebx
mov ebx, dword [esp + 0x18]
add ebp, ebx
shl ebx, 8
xor ebx, ebp
mov ebp, edx
mov dword [esp + 0x14], ebx
add eax, ebx
mov ebx, dword [esp + 0x18]
add ebx, edx
shr ebp, 9
xor ebx, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
add ecx, ebx
mov ebx, dword [esp + 0x30]
add edx, eax
mov dword [ebx + 0xc], ebp
mov ebp, dword [esp + 0x14]
mov dword [ebx + 0x10], ebp
mov ebp, dword [esp + 0x18]
mov dword [ebx - 8], edx
mov dword [ebx - 4], eax
mov dword [ebx], ecx
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov dword [ebx + 0x14], ebp
mov ebp, dword [esp + 0x20]
add ebx, 0x20
dec ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebp
jne 0x402b55
jmp 0x402d2d
add ebx, 0x40c
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x30], ebx
mov ebx, eax
add eax, ecx
shl ebx, 0xb
xor edx, ebx
mov ebx, ecx
shr ebx, 2
add esi, edx
xor eax, ebx
mov ebx, esi
add ecx, esi
shl ebx, 8
xor ecx, ebx
mov ebx, dword [esp + 0x10]
add ebx, ecx
add edi, eax
mov dword [esp + 0x10], ebx
mov ebx, edi
add esi, edi
shr ebx, 0x10
xor esi, ebx
mov ebx, dword [esp + 0x14]
add ebx, esi
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x10]
add edi, ebx
shl ebx, 0xa
xor edi, ebx
mov ebx, dword [esp + 0x14]
add ebp, edi
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x10]
add ebp, ebx
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
add edx, ebx
mov ebx, dword [esp + 0x18]
add ebp, ebx
shl ebx, 8
xor ebx, ebp
mov ebp, edx
mov dword [esp + 0x14], ebx
add eax, ebx
mov ebx, dword [esp + 0x18]
add ebx, edx
add edx, eax
shr ebp, 9
xor ebx, ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
add ecx, ebx
mov ebx, dword [esp + 0x30]
mov dword [ebx + 0xc], ebp
mov ebp, dword [esp + 0x14]
mov dword [ebx + 0x10], ebp
mov ebp, dword [esp + 0x18]
mov dword [ebx - 8], edx
mov dword [ebx - 4], eax
mov dword [ebx], ecx
mov dword [ebx + 4], esi
mov dword [ebx + 8], edi
mov dword [ebx + 0x14], ebp
add ebx, 0x20
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x20]
dec ebx
mov dword [esp + 0x20], ebx
jne 0x402c66
mov esi, dword [esp + 0x2c]
push esi
call fcn.00402630
add esp, 4
mov dword [esi], 0x100
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret