Function at 0x41f350
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x58
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov edi, dword [ebp + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x41f370
mov esi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41f390
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x4c], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], ecx
jns 0x41f3be
mov eax, 0xffffffff
jmp 0x41f3c5
lea eax, [ecx*2 + 0x36]
push eax
call fcn.004082b0
add esp, 4
mov dword [esp + 8], 0x895e8b28
mov dword [esp + 0xc], 0x853b8739
mov dword [esp + 0x10], 0x8136833b
mov dword [esp + 0x14], 0x9d459f60
mov dword [esp + 0x18], 0x99169b14
mov dword [esp + 0x1c], 0x95249723
mov dword [esp + 0x20], 0x91259319
mov dword [esp + 0x24], 0x6ddc6f21
mov dword [esp + 0x28], 0x69c76b8c
mov dword [esp + 0x2c], 0x65ea67d3
mov dword [esp + 0x30], 0x61d563e8
mov dword [esp + 0x34], 0x7dc77fd2
mov dword [esp + 0x38], 0x79de7bf1
mov word [esp + 0x3c], 0x7778
mov dword [esp + 0x3e], 0
mov word [esp + 0x42], 0
xor edx, edx
nop
nop
mov ecx, edx
add cl, 0x63
xor cl, byte [esp + edx + 8]
add cl, 0x11
mov byte [esp + edx + 8], cl
mov ecx, edx
and ecx, 1
xor edx, 1
lea edx, [edx + ecx*2]
cmp edx, 0x3c
jb 0x41f450
movzx ecx, word [edi]
mov ebx, eax
test cx, cx
je 0x41f491
add edi, 2
mov ebx, eax
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41f480
mov word [ebx], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41f4c1
lea edx, [esp + 0xa]
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 0x41f4b0
mov word [ebx], 0
movzx ecx, word [esi]
test cx, cx
mov dword [esp], eax
je 0x41f4f1
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x41f4e0
mov word [ebx], 0
mov ebx, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x41f500
mov edi, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41f520
mov edx, dword [esp + 0x74]
mov esi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + edx + 2], 0
lea edx, [edx + 2]
jne 0x41f540
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x41f564
mov eax, 0xffffffff
jmp 0x41f56d
add ecx, edx
lea eax, [ecx*2 + 0x26]
mov dword [esp + 0x54], edi
mov dword [esp + 4], esi
push eax
call fcn.004082b0
add esp, 4
movzx ecx, word [ebx]
mov esi, eax
test cx, cx
je 0x41f5a1
add ebx, 2
mov esi, eax
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41f590
mov dword [esp + 0x44], eax
mov word [esi], 0x2f
mov dword [esp + 8], 0x31f93f0d
mov dword [esp + 0xc], 0x35c633b8
mov dword [esp + 0x10], 0xc9c837d3
mov dword [esp + 0x14], 0xcd31cb3d
mov dword [esp + 0x18], 0xc130cf3d
mov dword [esp + 0x1c], 0xc5f3c335
mov word [esp + 0x20], 0xc7c4
mov dword [esp + 0x22], 0
xor edi, edi
xor ecx, ecx
nop
nop
nop
movzx ebx, byte [esp + ecx + 8]
mov eax, edi
and eax, 0x2a
mov edx, ecx
xor edx, 0x822cc9f5
add edx, eax
xor edx, ebx
mov ebx, edx
and ebx, 0x34
mov ebp, edx
and ebp, 2
mov eax, ebp
xor eax, 2
imul eax, ebx
or ebx, 2
imul ebx, ebp
xor edx, 0x36
add edx, eax
add edx, ebx
inc dl
mov byte [esp + ecx + 8], dl
inc ecx
add edi, 2
cmp ecx, 0x1e
jne 0x41f5f0
add esi, 2
mov ecx, dword [esp + 0x54]
movzx eax, word [ecx]
test ax, ax
mov edx, dword [esp + 4]
je 0x41f661
add ecx, 2
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f650
mov word [esi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x41f691
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f680
mov word [esi], 0
movzx eax, word [edx]
test ax, ax
je 0x41f6c1
add edx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [edx]
add edx, 2
test ax, ax
jne 0x41f6b0
mov word [esi], 0
mov dword [esp + 8], 0x818687ee
mov byte [esp + 0xc], 0
mov eax, 0x63b27e21
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x63b27e19]
xor ecx, eax
mov edx, 0xf27c76a5
sub edx, ecx
or edx, 1
add edx, ecx
add edx, 0xd83895b
mov ebx, edx
and ebx, 2
mov edi, edx
or edx, 2
imul edx, ebx
xor ebx, 2
and edi, 0xfd
imul edi, ebx
xor ecx, 1
add ecx, edx
add ecx, edi
add cl, 0x5a
mov byte [esp + eax - 0x63b27e19], cl
inc eax
cmp eax, 0x63b27e26
jne 0x41f6e0
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov ebx, dword [esp + 0x10]
push ebx
mov edi, dword [esp + 0x58]
push edi
push dword [esp + 0x84]
call fcn.00423910
add esp, 0x1c
mov byte [esp + 4], al
jmp dword [0x446db0]