Function at 0x403c0c
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea ecx, [eax - 0x5b1]
push esi
mov esi, dword [esp + 0x28]
add ebp, 0xffffc476
push edi
lea edi, [eax - 0x5e3]
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x34]
add esi, 0xffffc514
mov ebx, eax
mov dword [esp + 0x14], edi
add eax, 0xffffc0dd
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
add edx, 0xffffc044
lea eax, [ebp + 0x3e04]
mov dword [esp + 0x24], edx
mov ebp, dword [esp + 0x28]
xor ebx, 0x6be
mov dword [esp + 0x2c], ebx
cmp esi, eax
jg 0x403cc5
lea eax, [edi + 0x3df]
push eax
lea eax, [esi + 0x3f23]
push eax
lea eax, [edi + 0x5c0]
push eax
mov eax, dword [esp + 0x1c]
add eax, 0x3716
push eax
lea eax, [ecx + 0x294]
push eax
mov eax, dword [esp + 0x34]
xor eax, 0x3f68
push 0x513bf0
push eax
call fcn.00411ce5
add esp, 0x1c
mov dword [esp + 0x24], eax
mov edx, eax
mov dword [ebp + 0xb4], 0x511c58
mov ecx, dword [esp + 0x20]
add ecx, 0x3e04
cmp esi, ecx
jge 0x403cdb
xor esi, 0x3fdf
jmp 0x403d4d
mov eax, ebx
or eax, 0x3efa
cmp dword [0x513cb8], eax
jbe 0x403d4d
mov eax, dword [0x513c90]
mov edx, dword [0x462934]
sub eax, dword [esp + 0x24]
mov esi, dword [0x513cfc]
mov edi, dword [ebp + 0xfc]
mov ecx, dword [edx + 0x118]
xor ecx, dword [esp + 0x2c]
and esi, dword [esp + 0x10]
sub edi, dword [ebp + 0x74]
sub esi, 0x3d9a
mov ebx, dword [ebp + 0xc]
add edi, dword [ebp + 0xdc]
sub ebx, 0x3aba
imul eax, eax, 0x36fc
push eax
push ecx
push edx
push esi
push edi
push ebx
call fcn.00413344
mov esi, dword [esp + 0x30]
mov edx, eax
mov edi, dword [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x30]
mov eax, edi
xor eax, 0xf00
add ecx, 0xfffffa4f
cmp ecx, eax
jle 0x403e86
lea eax, [esi - 0x642]
cmp ecx, eax
jle 0x403e86
xor edi, edi
mov eax, dword [ebp + 0x34]
xor eax, 1
add dword [ebp + 0x10c], eax
mov eax, dword [ebp + 0xb4]
push 0x1d
mov ecx, dword [edi + eax]
add edi, 4
mov eax, dword [ebp + 0xe0]
sub dword [ebp + 0xa0], eax
mov ebx, dword [ebp + 0x80]
mov eax, dword [ebp + 0x84]
imul ebx, ecx
mov ecx, dword [ebp + 0xb8]
mov edx, ebx
shr edx, 8
mov byte [ecx + eax], dl
inc dword [ebp + 0x84]
pop eax
sub eax, dword [0x513d04]
add dword [0x513c68], eax
mov eax, dword [0x462934]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
sub eax, 0x18c93f
add dword [ebp + 0x78], eax
mov eax, dword [ebp + 0x1c]
sub eax, 0x11
imul eax, dword [ebp + 0x114]
mov dword [ebp + 0x114], eax
mov eax, dword [0x513c58]
add eax, ecx
sub ecx, dword [ebp + 0xc]
xor eax, 0xfff09a93
xor ecx, 0xfff0490e
or dword [ebp + 0x48], eax
mov eax, dword [0x462934]
add dword [eax + 0x108], ecx
mov eax, dword [ebp + 0x34]
xor eax, dword [ebp + 0x108]
xor eax, 1
mov dword [ebp + 0x108], eax
mov eax, dword [0x462934]
mov ecx, dword [eax + 0xb8]
mov eax, dword [ebp + 0x84]
mov byte [ecx + eax], bl
inc dword [ebp + 0x84]
mov eax, dword [0x513cfc]
inc eax
imul eax, dword [0x513cec]
mov dword [0x513cec], eax
cmp edi, 0x1ea8
jl 0x403d76
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x5e3]
push eax
push dword [esp + 0x34]
xor edi, 0x346
push ebp
push dword [esp + 0x40]
push edi
call fcn.004132bb
mov edx, dword [esp + 0x38]
add esp, 0x14
pop edi
pop esi
xor edx, 0x62e
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret