Function at 0x40f1de
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
movsx eax, word [0x4425d0]
shl eax, 8
xor eax, 0x28064cae
cmp eax, 0x80602855
jg 0x40f21c
mov eax, 0x4085001a
and eax, dword [0x4468a4]
or eax, 0xbb68f1e4
imul eax, dword [0x447298]
mov dword [0x447298], eax
dec dword [0x44644c]
xor dword [0x446c4c], 0x72f8d52c
mov eax, dword [0x445620]
lea ecx, [eax - 1]
mov dword [0x445620], ecx
movzx ecx, word [0x44297e]
lea eax, [ecx + eax - 1]
mov word [0x44297e], ax
mov eax, dword [0x44450c]
add dword [0x443a94], eax
or dword [0x446a00], 0x14b3c346
push esi
call fcn.0040f153
add esp, 4
add eax, ebx
mov ecx, dword [0x443c78]
cmp ecx, 0xbc59a472
je 0x40f294
mov ecx, dword [0x444804]
sar ecx, 3
imul ecx, ecx, 0x444d6cf1
or ecx, dword [0x444a90]
xor dword [0x44522c], ecx
mov ecx, dword [esi + 4]
shl ecx, 5
cmp ecx, eax
jge 0x40f2c0
lea ecx, [eax + 0x1f]
sar ecx, 0x1f
shr ecx, 0x1b
lea eax, [eax + ecx + 0x1f]
sar eax, 5
push eax
push esi
call fcn.00404693
add esp, 8
test eax, eax
jne 0x40f4ba
mov eax, ebx
sar eax, 0x1f
shr eax, 0x1b
lea edi, [eax + ebx]
sar edi, 5
mov eax, ebx
and eax, 0x1f
add dword [0x4438a8], 0x751f5824
movsx ecx, word [0x442748]
not ecx
mov dword [0x444dbc], ecx
cmp ebx, 0x20
jl 0x40f3e2
mov ecx, dword [0x443f30]
add ecx, dword [0x445c4c]
cmp ecx, 0xd2e77eeb
jne 0x40f313
mov dword [0x443484], 0xcd13944a
mov ecx, dword [esi + 4]
cmp ecx, edi
jle 0x40f33b
mov edx, dword [esi + 8]
add edx, 0xfffffffc
lea ebp, [edi*4]
mov ebx, edx
sub ebx, ebp
mov ebp, dword [ebx + ecx*4]
mov dword [edx + ecx*4], ebp
dec ecx
cmp ecx, edi
jg 0x40f32b
lea ecx, [edi - 1]
jmp 0x40f33c
dec ecx
mov edx, 0x80452342
and edx, dword [0x445a58]
mov dword [0x445b58], edx
test ecx, ecx
js 0x40f362
mov edx, dword [esi + 8]
inc ecx
mov dword [edx + ecx*4 - 4], 0
dec ecx
test ecx, ecx
jg 0x40f355
mov ecx, dword [0x4475c8]
sar ecx, 0xa
add ecx, 0xa59e08f4
imul edx, dword [0x4440f4], 0x429bcabc
add edx, 0xd3e0097b
cmp ecx, edx
jge 0x40f39a
inc dword [0x4438ec]
mov cx, word [0x4429a8]
mov ecx, dword [0x443968]
jmp 0x40f3e2
mov ecx, dword [0x44636c]
mov edx, 0x8dd6f13e
sub edx, ecx
mov ecx, dword [0x445f14]
lea ebx, [ecx + 1]
mov dword [0x445f14], ebx
movsx ebx, word [0x4433fe]
xor ebx, ecx
xor ebx, 0xe7911c0c
cmp edx, ebx
jne 0x40f3d5
or dword [0x447570], 0xbf22045f
jmp 0x40f3e2
inc dword [0x443a8c]
mov cx, word [0x443314]
mov ecx, dword [0x446ba0]
lea edx, [ecx - 1]
mov dword [0x446ba0], edx
mov dword [0x445e6c], ecx
test eax, eax
je 0x40f4a7
xor word [0x442f94], 0xd0e9
cmp edi, dword [esi + 4]
mov ecx, eax
jge 0x40f482
mov eax, dword [esp + 0x14]
mov ebx, dword [eax + 8]
mov edx, 0x20
mov eax, ecx
sub edx, eax
xor ebp, ebp
mov ecx, dword [0x447258]
lea esi, [ecx - 1]
mov dword [0x447258], esi
or ecx, 0xcc929160
add dword [0x444ccc], ecx
mov esi, dword [ebx + edi*4]
mov cl, dl
shr esi, cl
add word [0x4428a0], 0x2bf8
mov cl, al
shl dword [ebx + edi*4], cl
add word [0x441650], 0x461c
or dword [ebx + edi*4], ebp
mov ecx, dword [0x443dcc]
sar ecx, 2
sub dword [0x446abc], ecx
xor dword [0x4468f8], 0xecc97a92
inc edi
mov ecx, dword [esp + 0x14]
cmp edi, dword [ecx + 4]
mov ebp, esi
jl 0x40f421
mov eax, dword [0x4460a8]
mov ecx, dword [0x4467b8]
sar ecx, 9
xor ecx, eax
or ecx, 0xab543e92
cmp ecx, 0xce5916ea
ja 0x40f4a7
inc word [0x442562]
mov eax, dword [0x444a88]
dec eax
mov dword [0x444a88], eax
xor dword [0x444a14], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret