Function at 0x410160
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2d4
push ebx
push ebp
push esi
push edi
push 0x50
pop eax
mov ebp, edx
mov dword [esp + 0x10], 0x8299924b
mov esi, ecx
mov byte [esp + 0x14], al
xor ecx, ecx
mov edx, 0xff
movzx eax, byte [esp + ecx + 0x10]
sub ax, 0x26
and ax, dx
mov word [esp + ecx*2 + 0x44], ax
inc ecx
cmp ecx, 5
jl 0x410184
mov ecx, dword [0x42b8ac]
xor eax, eax
push dword [esp + 0x2e8]
mov word [esp + 0x52], ax
imul eax, dword [0x42b8ec], 0x74f5fede
mov dword [0x42b8f0], eax
imul eax, ecx, 0xa11a
mov word [0x42b8e0], ax
lea eax, [ecx + 0x7447fe91]
mov dword [0x42b8ec], eax
lea eax, [esp + 0x48]
push eax
call fcn.00422def
mov edx, dword [0x42b8f0]
mov edi, eax
add edx, 0xbdd5a407
mov dword [esp + 0x18], edi
mov dword [0x42b8ac], edx
pop ecx
pop ecx
test edi, edi
je 0x410673
mov ax, word [0x42b8e0]
lea ecx, [edx + 0x142a09ac]
mov dword [0x42b8ec], ecx
and edx, 0xdc811962
mov ecx, 0x11f
mov dword [0x42b8ac], edx
and ax, cx
mov edx, 0x54e1cc7b
mov ecx, 0xea0
or ax, cx
xor ecx, ecx
mov word [0x42b8e0], ax
inc ecx
lea eax, [esp + 0x90]
push eax
push edi
call fcn.00415084
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41065c
mov dword [esp + 0x18], 0xa3a4a786
xor ecx, ecx
mov word [esp + 0x1c], 0xaeb7
mov byte [esp + 0x1e], 0xb6
mov al, byte [esp + ecx + 0x18]
xor al, 0xc2
movzx eax, al
mov word [esp + ecx*2 + 0x50], ax
inc ecx
cmp ecx, 7
jl 0x41026e
push dword [esp + 0x2ec]
add dword [0x42b8f0], 0x220de6a6
xor eax, eax
add dword [0x42b8ac], 0x22b432a6
mov edx, ebp
mov word [esp + 0x62], ax
mov ecx, esi
imul eax, dword [0x42b8ec], 0x67f7
mov word [0x42b8e0], ax
movzx eax, ax
add eax, 0x25e80815
mov dword [0x42b8ec], eax
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x2f0]
call fcn.0041067e
movzx eax, word [0x42b8e0]
add esp, 0xc
add eax, 0x17c7fb72
xor ecx, ecx
mov dword [0x42b8ec], eax
mov edx, 0x17299c7b
mov eax, dword [0x42b8ac]
inc ecx
and eax, 0xb5ec917b
mov dword [0x42b8f0], eax
call fcn.00415084
imul edx, dword [0x42b8f0], 0xe87b78ca
mov edi, esi
mov dword [esp + 0x40], eax
mov word [esp + 0x20], 0x1c1c
mov dword [0x42b8f0], edx
push 0x2e
pop eax
mov word [esp + 0x24], ax
mov esi, 0xff
xor eax, eax
xor ecx, ecx
mov word [esp + 0x26], ax
movzx eax, byte [esp + ecx + 0x20]
add ax, 0x12
and ax, si
mov word [esp + ecx*2 + 0x18], ax
inc ecx
cmp ecx, 2
jl 0x410339
xor eax, eax
and edx, 0x3a90efc
mov word [esp + 0x1c], ax
mov dword [0x42b8ec], edx
xor edx, 0xce30
movzx eax, dx
or eax, 0x21ef2550
mov word [0x42b8e0], dx
mov dword [0x42b8ac], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x41060c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.00405af6
pop ecx
pop ecx
test eax, eax
je 0x41060c
movzx ecx, word [0x42b8e0]
or dword [0x42b8ac], 0x2869f848
and ecx, 0x58220b38
test byte [esp + 0x90], 0x10
mov dword [0x42b8f0], ecx
lea eax, [ecx + 0x37ed]
mov word [0x42b8e0], ax
je 0x41061d
imul eax, ecx, 0x69b1
mov word [0x42b8e0], ax
mov eax, dword [0x42b8ec]
xor eax, 0x1d55185d
mov dword [0x42b8ac], eax
lea eax, [esp + 0xbc]
push eax
call fcn.0040581e
pop ecx
cmp eax, 7
jb 0x41061d
push 0x50
mov dword [esp + 0x2c], 0x161f2200
xor ecx, ecx
mov word [esp + 0x30], 0x1c19
mov byte [esp + 0x32], 0x15
pop edx
movzx eax, byte [esp + ecx + 0x28]
add ax, dx
and ax, si
mov word [esp + ecx*2 + 0x60], ax
inc ecx
cmp ecx, 7
jl 0x410437
xor eax, eax
mov dword [esp + 0x30], 0x959a9978
mov word [esp + 0x6e], ax
xor ecx, ecx
mov word [esp + 0x34], 0xa0a9
mov byte [esp + 0x36], 0xa8
movzx eax, byte [esp + ecx + 0x30]
sub ax, 0x34
and ax, si
mov word [esp + ecx*2 + 0x70], ax
inc ecx
cmp ecx, 7
jl 0x41046a
mov dx, word [0x42b8e0]
xor eax, eax
mov word [esp + 0x7e], ax
movzx ecx, dx
imul eax, ecx, 0x600fc39c
xor ecx, 0xa635f5e
push 0xe
mov dword [0x42b8ec], ecx
mov dword [0x42b8f0], eax
mov eax, 0x8e50
add dx, ax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0xc4]
mov word [0x42b8e0], dx
push eax
call fcn.004022e4
add esp, 0xc
test eax, eax
je 0x4104f2
push 0xe
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004022e4
add esp, 0xc
test eax, eax
jne 0x41061d
mov dword [esp + 0x38], 0xee05feb7
xor ecx, ecx
mov word [esp + 0x3c], 0xfeb7
mov byte [esp + 0x3e], 5
movzx eax, byte [esp + ecx + 0x38]
add ax, 0x6e
and ax, si
mov word [esp + ecx*2 + 0x80], ax
inc ecx
cmp ecx, 7
jl 0x410508
movzx ecx, word [0x42b8e0]
xor eax, eax
mov word [esp + 0x8e], ax
lea eax, [ecx + 0xa20667c]
add ecx, 0xdbbdcb8c
mov dword [0x42b8ac], eax
or ecx, 0x1946b03e
add eax, 0x4374
mov dword [0x42b8ec], ecx
mov word [0x42b8e0], ax
or ecx, 0x92840d71
lea eax, [esp + 0xbc]
mov dword [0x42b8f0], ecx
push eax
push dword [esp + 0x2ec]
lea eax, [esp + 0x88]
push eax
call fcn.00422def
mov ecx, dword [0x42b8ac]
mov esi, eax
add ecx, 0x1e0ce888
add esp, 0xc
mov dword [0x42b8f0], ecx
test esi, esi
je 0x41061d
mov cx, word [0x42b8e0]
mov edx, ebp
push dword [esp + 0x2ec]
movzx eax, cx
or eax, 0x2b89303c
mov dword [0x42b8f0], eax
add eax, 0x93afdc95
mov dword [0x42b8ac], eax
mov eax, 0xb848
xor cx, ax
lea eax, [esp + 0xc0]
push eax
mov word [0x42b8e0], cx
mov ecx, edi
push esi
call fcn.0041067e
mov ecx, dword [0x42b8ec]
add esp, 0xc
imul eax, ecx, 0xa628464e
push esi
mov dword [0x42b8f0], eax
lea eax, [ecx - 0x2d226238]
mov dword [0x42b8ac], eax
call fcn.004056f0
pop ecx
jmp 0x41061d
movzx eax, word [0x42b8e0]
or eax, 0x1389c4c4
mov dword [0x42b8ec], eax
lea eax, [esp + 0x90]
push eax
push ebx
call dword [esp + 0x48]
test eax, eax
je 0x410639
mov edx, dword [0x42b8f0]
jmp 0x410323
mov eax, dword [0x42b8ec]
xor ecx, ecx
and eax, 0x7bafc058
mov edx, 0x83fbc401
push ebx
inc ecx
mov dword [0x42b8f0], eax
call fcn.00415084
call eax
mov edi, dword [esp + 0x10]
mov eax, dword [0x42b8f0]
and eax, 0x8300
push edi
mov word [0x42b8e0], ax
call fcn.004056f0
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2d4
ret