Function at 0x41feb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [ebp + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x41fed0
mov edi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41fef0
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x48], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
jns 0x41ff1e
mov eax, 0xffffffff
jmp 0x41ff25
lea eax, [ecx*2 + 0x36]
push eax
call fcn.00408810
add esp, 4
mov dword [esp + 8], 0x1762197c
mov dword [esp + 0xc], 0x138d1587
mov dword [esp + 0x10], 0xf9a1171
mov dword [esp + 0x14], 0xb770d2c
mov dword [esp + 0x18], 0x78a0980
mov dword [esp + 0x1c], 0x3900599
mov dword [esp + 0x20], 0x3fa7018f
mov dword [esp + 0x24], 0x3ba83daf
mov dword [esp + 0x28], 0x37593918
mov dword [esp + 0x2c], 0x33be35a9
mov dword [esp + 0x30], 0x2fb731bc
mov dword [esp + 0x34], 0x2bb12dbe
mov dword [esp + 0x38], 0x274229a7
mov dword [esp + 0x3c], 0x2524
mov byte [esp + 0x40], 0
mov esi, 0x27e80d06
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + esi - 0x27e80cfe]
mov edx, ecx
and edx, esi
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, esi
add cl, 0xe2
mov byte [esp + esi - 0x27e80cfe], cl
inc esi
cmp esi, 0x27e80d3f
jne 0x41ffb0
movzx ecx, word [ebx]
mov esi, eax
test cx, cx
je 0x420001
add ebx, 2
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41fff0
mov word [esi], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x420031
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x420020
mov word [esi], 0
movzx ecx, word [edi]
test cx, cx
mov dword [esp + 0x50], eax
je 0x420061
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x420050
mov word [esi], 0
mov esi, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x420070
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x420090
mov edx, dword [esp + 0x70]
mov edi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x4200b0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x4200d4
mov eax, 0xffffffff
jmp 0x4200dd
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.00408810
add esp, 4
mov ebx, eax
movzx eax, word [esi]
mov dword [esp + 4], ebx
test ax, ax
je 0x420111
add esi, 2
mov ebx, dword [esp + 4]
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x420100
mov word [ebx], 0x2f
mov dword [esp + 8], 0x21f927d5
mov dword [esp + 0xc], 0x3dae23a8
mov dword [esp + 0x10], 0x39883f83
mov dword [esp + 0x14], 0x35813bb5
mov dword [esp + 0x18], 0x31803785
mov dword [esp + 0x1c], 0xdc333bd
mov word [esp + 0x20], 0xf0c
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov eax, 0x9c3033c9
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x63cfcc3f]
xor ecx, eax
mov edx, ecx
and edx, 1
or ecx, 1
add ecx, edx
add cl, 0x12
mov byte [esp + eax + 0x63cfcc3f], cl
inc eax
cmp eax, 0x9c3033e9
jne 0x420170
add ebx, 2
movzx eax, word [ebp]
test ax, ax
mov esi, dword [esp + 0x70]
je 0x4201c2
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4201b0
mov word [ebx], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x4201f1
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4201e0
mov word [ebx], 0
movzx eax, word [edi]
test ax, ax
je 0x420221
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x420210
mov word [ebx], 0
mov dword [esp + 8], 0x898a8b7a
xor eax, eax
lea ecx, [eax + 0x63]
mov edx, 0x1c
sub edx, eax
and edx, 0x1a
and ecx, 0x65
or ecx, edx
xor cl, byte [esp + eax + 8]
xor cl, 0x9a
add cl, 0x91
mov byte [esp + eax + 8], cl
mov ecx, eax
xor ecx, 0x3564be41
and eax, 1
lea eax, [ecx + eax*2]
add eax, 0xca9b41c0
cmp eax, 4
jb 0x420230
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x60]
push edi
push dword [esp + 0x18]
push dword [esp + 0x80]
call fcn.004246c0
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x448f40]