Function at 0x41f4c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp + 0x14], 0
mov ecx, dword [0x4441e4]
test ecx, ecx
je 0x41f602
mov eax, dword [0x4441e8]
add eax, 8
nop
nop
nop
nop
nop
nop
cmp dword [eax - 8], 0x18dc7455
je 0x41f504
add eax, 0xc
dec ecx
jne 0x41f4f0
jmp 0x41f602
mov byte [esp + 0x30], 0
mov dword [esp + 0x2c], 0x900000c2
mov dword [esp + 0x28], 0xd2ff0000
mov dword [esp + 0x24], 0xba00
mov dword [esp + 0x20], 0xb8
mov eax, dword [eax]
mov dword [esp + 0x21], eax
mov eax, dword [0x4441ec]
mov dword [esp + 0x26], eax
mov word [esp + 0x2d], 0x10
mov dword [esp], 0
mov dword [esp + 0x1c], 0x10
lea eax, [esp + 0x1c]
mov ebx, esp
push 0x40
push 0x3000
push eax
push 0
push ebx
push 0xffffffffffffffff
call dword [0x4441f0]
mov edi, dword [esp]
lea eax, [esp + 0x20]
mov ecx, 4
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
call dword [esp + 0x10]
mov esi, eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push 0x8000
push eax
push ebx
push 0xffffffffffffffff
call dword [0x4441f4]
cmp esi, 0xc0000004
jne 0x41f602
lea esi, [esp + 0x1c]
push dword [esp + 0x14]
call fcn.00430d50
add esp, 4
mov edi, eax
mov ecx, dword [0x4441e4]
xor ebx, ebx
test ecx, ecx
je 0x41f96a
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [0x4441e8]
nop
nop
nop
nop
nop
nop
lea edx, [ebx + ebx*2]
cmp dword [eax + edx*4], 0x18dc7455
je 0x41f60e
mov edx, ebx
and edx, 1
xor ebx, 1
lea ebx, [ebx + edx*2]
cmp ebx, ecx
jb 0x41f5e0
xor ebx, ebx
jmp 0x41f96a
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esp + 0x30], 0
mov dword [esp + 0x2c], 0x900000c2
mov dword [esp + 0x28], 0xd2ff0000
mov dword [esp + 0x24], 0xba00
mov dword [esp + 0x20], 0xb8
mov eax, dword [eax + edx*4 + 8]
mov dword [esp + 0x21], eax
mov eax, dword [0x4441ec]
mov dword [esp + 0x26], eax
mov word [esp + 0x2d], 0x10
mov dword [esp], 0
mov dword [esp + 0x1c], 0x10
push 0x40
push 0x3000
push esi
push 0
lea ebx, [esp + 0x10]
push ebx
push 0xffffffffffffffff
call dword [0x4441f0]
mov esi, edi
mov edi, dword [esp]
lea eax, [esp + 0x20]
mov ecx, 4
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
push 0
push dword [esp + 0xc]
push esi
push 5
call dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0x18], 0
push 0x8000
lea eax, [esp + 0x1c]
push eax
push ebx
push 0xffffffffffffffff
call dword [0x4441f4]
xor ebx, ebx
test edi, edi
js 0x41f6ee
mov eax, dword [esi]
mov ecx, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
and edx, 1
xor ebx, 1
lea ebx, [ebx + edx*2]
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x41f6c0
lea eax, [ebx*4]
mov ecx, ebx
shl ecx, 8
add ecx, eax
jns 0x41f6f5
mov eax, 0xffffffff
jmp 0x41f6fd
mov edi, esi
jmp 0x41f96a
mov eax, ebx
shl eax, 9
lea eax, [eax + ebx*8]
lea ebx, [esp + 0x20]
push eax
call fcn.004088c0
add esp, 4
mov edi, eax
mov edx, dword [esi]
mov dword [esp + 4], esi
mov eax, esi
mov dword [esp + 0x10], edi
jmp 0x41f72e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x41f753
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x41f720
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f740
jmp 0x41f720
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x41f896
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41f8a1
xor esi, esi
jmp 0x41f788
add edx, esi
mov esi, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
lea ebx, [esp + 0x20]
je 0x41f7b9
cmp eax, edi
jae 0x41f7b9
mov edx, esi
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 8]
mov esi, 1
cmp ebx, 0x80
jb 0x41f774
movzx ebx, byte [esp + 8]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x41f774
lea eax, [esi + 1]
mov dword [esp + 0xc], eax
push eax
call fcn.004088c0
add esp, 4
test esi, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], eax
jle 0x41f8bb
lea ecx, [eax + esi]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc]
add ecx, eax
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, ecx
mov dword [esp + 0xc], ecx
jmp 0x41f80a
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 8]
jae 0x41f8bd
cmp edx, edi
jae 0x41f8bd
movzx ecx, word [edx]
test cx, cx
je 0x41f8bd
cmp cx, 0x7f
jbe 0x41f7f4
mov eax, esi
not eax
add eax, dword [esp + 0xc]
cmp eax, 2
jb 0x41f859
movzx ebx, cx
cmp ebx, 0x7ff
lea ebx, [esp + 0x20]
ja 0x41f859
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [esi], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
mov eax, 2
jmp 0x41f7fb
cmp eax, 3
mov eax, 0
jb 0x41f7fb
movzx eax, cx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
shr eax, 0xc
or al, 0xe0
mov byte [esi], al
mov eax, dword [esp + 0x40]
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [esi + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 2], cl
mov eax, 3
jmp 0x41f7fb
xor ebx, ebx
mov edi, dword [esp + 4]
jmp 0x41f961
mov dword [esp + 0x48], 0
push 1
call fcn.004088c0
add esp, 4
mov esi, eax
mov dword [esp + 0x44], eax
jmp 0x41f8bd
mov esi, eax
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 4]
mov byte [esi], 0
mov dword [esp + 0x20], 0xd0cdc3e0
mov dword [esp + 0x24], 0xd2c5c6d1
mov dword [esp + 0x28], 0x433ef73b
mov word [esp + 0x2c], 0xcd38
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x35], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x18
ja 0x41f943
nop
nop
nop
mov esi, dword [esp]
mov eax, dword [esp]
movzx edx, byte [esp + eax + 0x20]
lea eax, [esi + edx]
add eax, 0x89015078
add esi, 0x89015078
and esi, edx
add esi, esi
sub eax, esi
add al, 0xb8
mov edx, dword [esp]
mov byte [esp + edx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x19
jb 0x41f910
push dword [esp + 0x48]
mov esi, dword [esp + 0x48]
push esi
push ebx
call fcn.00409420
mov ebx, eax
push esi
call fcn.004088d0
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004088d0
add esp, 4
push edi
call fcn.00430db0
add esp, 4
jmp 0x41f604