Function at 0x403a80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x415020]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x34]
lea eax, [ecx + 0xf]
cdq
push ebx
mov ebx, dword [esp + 0x30]
and edx, 0xf
add eax, edx
push ebp
mov ebp, dword [esp + 0x40]
sar eax, 4
push esi
mov esi, dword [esp + 0x48]
shl eax, 4
cmp dword [section..data], 0
push edi
mov dword [esp + 0x10], eax
je 0x403c33
cmp dword [ebx + 0xf0], 0
lea edi, [ebx + 0xf4]
mov dword [esp + 0x14], 0
jne 0x403b26
push ecx
call fcn.00405daa
mov ecx, dword [esp + 0x48]
push ecx
push ebp
push eax
mov dword [esp + 0x24], eax
call fcn.00405e80
mov edx, dword [edi]
mov ebp, dword [esp + 0x24]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0xc], edx
add esp, 0x10
add esi, 0x10
add dword [esp + 0x10], 0x10
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xf0], 1
cmp ecx, 0x10
jl 0x403bc1
mov eax, ebp
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, ecx
shr eax, 4
mov dword [esp + 0x20], eax
neg eax
shl eax, 4
add ecx, eax
mov dword [esp + 0x44], ecx
jmp 0x403b50
mov eax, dword [esp + 0x40]
push edi
push edi
push eax
push ebx
call fcn.00401750
add esp, 0x10
lea ecx, [ebp + 2]
mov eax, edi
mov dword [esp + 0x1c], 4
lea ecx, [ecx]
mov edx, dword [esp + 0x18]
movzx edx, byte [edx + eax]
xor dl, byte [eax]
add eax, 4
mov byte [esi], dl
movzx edx, byte [eax - 3]
xor dl, byte [ecx - 1]
add ecx, 4
mov byte [esi + 1], dl
movzx edx, byte [eax - 2]
xor dl, byte [ecx - 4]
add esi, 4
mov byte [esi - 2], dl
movzx edx, byte [eax - 1]
xor dl, byte [ecx - 3]
sub dword [esp + 0x1c], 1
mov byte [esi - 1], dl
jne 0x403b70
add dword [esp + 0x18], 0x10
add ebp, 0x10
sub dword [esp + 0x20], 1
jne 0x403b50
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x403c19
mov eax, dword [esp + 0x40]
push edi
push edi
push eax
push ebx
call fcn.00401750
add esp, 0x10
lea ecx, [ebp + 2]
mov eax, edi
sub ebp, edi
mov edi, 4
movzx edx, byte [eax + ebp]
xor dl, byte [eax]
add eax, 4
mov byte [esi], dl
movzx edx, byte [eax - 3]
xor dl, byte [ecx - 1]
add ecx, 4
mov byte [esi + 1], dl
movzx edx, byte [eax - 2]
xor dl, byte [ecx - 4]
add esi, 4
mov byte [esi - 2], dl
movzx edx, byte [eax - 1]
xor dl, byte [ecx - 3]
sub edi, 1
mov byte [esi - 1], dl
jne 0x403be1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x403ccc
push ecx
call fcn.00405ccd
add esp, 4
jmp 0x403cc8
cmp ecx, 0x10
jl 0x403c92
mov edi, ecx
shr edi, 4
mov eax, edi
neg eax
shl eax, 4
add ecx, eax
mov dword [esp + 0x44], ecx
lea ebx, [ebx]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x24]
push ecx
push ebp
push edx
push ebx
call fcn.00401750
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
add esp, 0x10
add ebp, 0x10
add esi, 0x10
sub edi, 1
jne 0x403c50
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x403ccc
push ecx
xor eax, eax
lea ecx, [esp + 0x28]
push ebp
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00405e80
mov eax, dword [esp + 0x4c]
push esi
lea edx, [esp + 0x34]
push edx
push eax
push ebx
call fcn.00401750
add esp, 0x1c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405c9c
add esp, 0x28
ret