Function at 0x40ca32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x43ffe4]
mov dword [esp + 0x48], 0xbb90d59
mov dword [esp + 0x4c], 0x17bf098e
mov dword [esp + 0x50], 0x13a615a0
mov dword [esp + 0x54], 0x1f6d11b1
mov dword [esp + 0x58], 0x1b681d61
mov dword [esp + 0x5c], 0x67061968
mov dword [esp + 0x60], 0x6339650c
mov dword [esp + 0x64], 0x6fdc61c9
mov dword [esp + 0x68], 0x6bd96dc0
mov dword [esp + 0x6c], 0x77c969d3
mov dword [esp + 0x70], 0x73207514
mov dword [esp + 0x74], 0x7f1e712c
mov dword [esp + 0x78], 0x7b0a7d0d
mov dword [esp + 0x7c], 0x4736790a
mov dword [esp + 0x80], 0x43224503
mov dword [esp + 0x84], 0x4fe7411b
mov dword [esp + 0x88], 0x4b304dfe
mov dword [esp + 0x8c], 0x57114934
mov dword [esp + 0x90], 0x53ea5534
mov dword [esp + 0x94], 0x5f22512a
mov dword [esp + 0x98], 0x5b3a5d35
mov dword [esp + 0x9c], 0xa7165919
mov dword [esp + 0xa0], 0xa316a514
mov dword [esp + 0xa4], 0xaff5a10d
mov dword [esp + 0xa8], 0xab04ad01
mov dword [esp + 0xac], 0xb71fa9ff
mov dword [esp + 0xb0], 0xb3c1b508
mov dword [esp + 0xb4], 0xbfc1b1cd
mov dword [esp + 0xb8], 0xbbc8bdc7
mov dword [esp + 0xbc], 0x87fcb9c7
mov dword [esp + 0xc0], 0x83ea85e4
mov dword [esp + 0xc4], 0x8fc681d7
mov dword [esp + 0xc8], 0x8bdf8dd0
mov dword [esp + 0xcc], 0x97e289dc
mov dword [esp + 0xd0], 0x932695f4
mov dword [esp + 0xd4], 0x9f299139
mov dword [esp + 0xd8], 0x9bfa9d31
mov dword [esp + 0xdc], 0xe74b99d3
mov dword [esp + 0xe0], 0xe355e54b
mov dword [esp + 0xe4], 0xef87e153
mov dword [esp + 0xe8], 0xeba5ed8c
mov dword [esp + 0xec], 0xf748e940
mov dword [esp + 0xf0], 0xf347f547
mov dword [esp + 0xf4], 0xff8df15d
mov dword [esp + 0xf8], 0xfb8bfd8d
mov dword [esp + 0xfc], 0xc7b4f981
mov dword [esp + 0x100], 0xc3b0c5b4
mov dword [esp + 0x104], 0xcfbcc1b0
mov dword [esp + 0x108], 0xcbaacdbc
mov dword [esp + 0x10c], 0xd777c997
mov dword [esp + 0x110], 0xd373d57e
mov dword [esp + 0x114], 0xdf77d16e
mov dword [esp + 0x118], 0xdba7ddaf
mov dword [esp + 0x11c], 0x275dd9a7
mov dword [esp + 0x120], 0x235d2556
mov dword [esp + 0x124], 0x2f2e215a
mov word [esp + 0x128], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xe1
ja 0x40c9e3
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x48]
mov esi, 0x55
sub esi, ecx
add ecx, 0x759219aa
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x10]
add cl, 0x5a
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x48], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xe2
jb case.default.0x40c9fb
lea ebx, [esp + 0x48]
push 0
push 0
push 0
push 0
push ebx
call eax
mov edi, eax
xor eax, eax
test edi, edi
setne al
jmp dword [eax*4 + 0x43bbf4]
xor ebx, ebx
jmp 0x40cdf2
mov esi, dword [ebp + 8]
push 0
push 0x1bb
push 0x440018
push edi
call dword [0x43ffe8]
mov dword [esp + 8], eax
mov eax, dword [case.0x40c9fb.4]
nop
nop
nop
nop
nop
nop
nop
nop
jmp eax
xor eax, eax
cmp dword [esp + 8], 0
setne al
jmp dword [eax*4 + 0x43bc0c]
xor ebx, ebx
jmp 0x40cdeb
mov dword [esp + 0xc], edi
jmp dword [0x43bc18]
mov edi, dword [0x43ffec]
mov dword [esp + 0x48], 0xdb8dd988
mov dword [esp + 0x4c], 0xe7bae5b7
mov word [esp + 0x50], 0xe1e0
mov dword [esp + 0x52], 0
mov dword [esp + 0x56], 0
mov dword [esp + 0x5a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x15
ja 0x40cadf
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x48]
mov eax, 0x23
sub eax, ecx
add ecx, 0xda66ffdc
xor eax, ecx
and eax, edx
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xfc
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x48], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x16
jb 0x40caa0
lea eax, [esp + 0x48]
push 0x800000
push 0
push 0
push 0
push esi
push eax
push dword [esp + 0x20]
call edi
jmp case.0x40c9fb.9
push 0x800000
push 0
push 0
push 0
push esi
push ebx
push dword [esp + 0x20]
call eax
jmp dword [0x43bc20]
mov eax, dword [0x43ffec]
mov dword [esp + 0x48], 0xdb8dd988
mov dword [esp + 0x4c], 0xe7bae5b7
mov word [esp + 0x50], 0xe1e0
mov dword [esp + 0x52], 0
mov dword [esp + 0x56], 0
mov dword [esp + 0x5a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x15
ja 0x40cb00
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x48]
mov edi, 0x23
sub edi, ecx
add ecx, 0xda66ffdc
xor edi, ecx
and edi, edx
xor edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
add cl, 0xfc
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x48], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x16
jb 0x40cb60
jmp 0x40cb00
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x43bc24]
xor ebx, ebx
mov edi, dword [esp + 0xc]
jmp 0x40cde1
xor ecx, ecx
mov edx, dword [ebp + 0x20]
test edx, edx
setg cl
mov edi, dword [esp + 0xc]
jmp dword [ecx*4 + 0x43bc2c]
jmp dword [0x43bc38]
push edx
push edx
push edx
push edx
push eax
mov esi, eax
call dword [0x43fff4]
mov edx, dword [ebp + 0x20]
mov eax, esi
nop
nop
nop
nop
nop
push edx
push edx
push edx
push edx
push eax
mov esi, eax
call dword [0x43fff4]
mov edx, dword [ebp + 0x20]
mov eax, esi
jmp dword [0x43bc40]
movzx ecx, byte [0x44011c]
jmp dword [ecx*4 + 0x43bc44]
mov dword [esp + 0x10], 0x8b798d53
mov dword [esp + 0x14], 0x8771897b
mov dword [esp + 0x18], 0x837f857d
mov dword [esp + 0x1c], 0x9fbe8146
mov dword [esp + 0x20], 0x9b799d7f
mov dword [esp + 0x24], 0x976c9967
mov dword [esp + 0x28], 0x93679577
mov dword [esp + 0x2c], 0xaf4d911b
mov dword [esp + 0x30], 0xab23ad52
mov dword [esp + 0x34], 0xa763a958
mov word [esp + 0x38], 0xa5a4
mov dword [esp + 0x3a], 0
mov dword [esp + 0x3e], 0
mov byte [esp + 0x42], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x32
ja 0x40cce0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
mov esi, 0x3d
sub esi, ecx
add ecx, 0x3f7d4c2
xor esi, ecx
and esi, edx
xor esi, ecx
mov dword [esp + 0x48], esi
mov ecx, dword [esp + 0x48]
add cl, 0xb2
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x33
jb 0x40cca0
movzx ecx, word [esp + 0x10]
test cx, cx
je 0x40cd11
lea ebx, [esp + 0x48]
lea edx, [esp + 0x12]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x40cd00
mov word [ebx], 0
movzx ecx, word [0x44011e]
test cx, cx
je 0x40cd45
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx + edx], cx
movzx ecx, word [edx + 0x440120]
add edx, 2
test cx, cx
jne 0x40cd30
add ebx, edx
mov word [ebx], 0
lea ecx, [esp + 0x48]
push 0x20000000
push 0xffffffffffffffff
push ecx
push eax
mov esi, eax
call dword [0x43fff8]
mov eax, esi
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov edx, esi
neg edx
sbb ecx, ecx
push 0
mov ebx, dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push esi
mov esi, eax
push eax
call dword [0x43fffc]
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x43bc4c]
xor ebx, ebx
jmp 0x40cdda
mov dword [esp + 0x48], 0
lea eax, [esp + 0x48]
push eax
push ebx
push dword [ebp + 0x18]
push esi
call dword [0x44000c]
xor ecx, ecx
test eax, eax
setne cl
xor ebx, ebx
jmp dword [ecx*4 + 0x43bc54]
push 0
push esi
call dword [0x440000]
xor ecx, ecx
test eax, eax
setne cl
xor ebx, ebx
jmp dword [ecx*4 + 0x43bc5c]
jmp 0x40cdda
mov bl, 1
push esi
call dword [0x440010]
push dword [esp + 8]
call dword [0x440010]
push edi
call dword [0x440010]
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret