Function at 0x41f930
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 [0x442978]
test ecx, ecx
je 0x41fa66
mov eax, dword [0x44297c]
add eax, 8
nop
nop
nop
nop
nop
nop
cmp dword [eax - 8], 0x18dc7455
je 0x41f974
add eax, 0xc
dec ecx
jne 0x41f960
jmp 0x41fa66
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 [0x442980]
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 [0x442984]
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 [0x442988]
cmp esi, 0xc0000004
jne 0x41fa66
mov esi, ebx
lea ebx, [esp + 0x1c]
push dword [esp + 0x14]
call fcn.0042f750
add esp, 4
mov edi, eax
mov ecx, dword [0x442978]
test ecx, ecx
je 0x41fa5f
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [0x44297c]
add eax, 8
mov edx, ebx
mov ebx, esi
nop
nop
nop
cmp dword [eax - 8], 0x18dc7455
je 0x41fa72
add eax, 0xc
dec ecx
jne 0x41fa50
xor ebx, ebx
jmp 0x41fd87
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]
mov dword [esp + 0x21], eax
mov eax, dword [0x442980]
mov dword [esp + 0x26], eax
mov word [esp + 0x2d], 0x10
mov dword [esp], 0
mov dword [esp + 0x1c], 0x10
push 0x40
push 0x3000
push edx
push 0
push ebx
push 0xffffffffffffffff
call dword [0x442984]
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 [0x442988]
xor ebx, ebx
test edi, edi
js 0x41fbf5
mov ecx, dword [esi]
xor eax, eax
mov edx, esi
mov edi, esi
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x41fb20
test ebx, ebx
jns 0x41fb40
mov eax, 0xffffffff
push eax
call fcn.0042f750
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov eax, edi
mov dword [esp + 0x10], ecx
mov edi, ecx
mov dword [esp + 4], eax
lea ebx, [esp + 0x20]
jmp 0x41fb6e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x41fb93
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x41fb60
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41fb80
jmp 0x41fb60
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x41fcda
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41fce5
xor edx, edx
jmp 0x41fbc6
add edx, esi
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
lea ebx, [esp + 0x20]
je 0x41fbfc
cmp eax, edi
jae 0x41fbfc
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 8]
mov esi, 1
cmp ebx, 0x80
jb 0x41fbb4
movzx ebx, byte [esp + 8]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x41fbb4
mov edi, esi
jmp 0x41fd87
mov dword [esp + 0xc], edx
lea esi, [edx + 1]
push esi
call fcn.0042f750
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
mov dword [esp + 0x44], eax
jle 0x41fcfb
add ecx, eax
mov dword [esp + 8], ecx
add esi, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], esi
jmp 0x41fc44
mov byte [eax], cl
mov esi, 1
add edx, 2
add eax, esi
cmp eax, dword [esp + 8]
jae 0x41fcfb
cmp edx, edi
jae 0x41fcfb
movzx ecx, word [edx]
test cx, cx
je 0x41fcfb
cmp cx, 0x7f
jbe 0x41fc2e
mov esi, eax
not esi
mov ebx, esi
and ebx, dword [esp + 0x48]
xor esi, dword [esp + 0x48]
lea ebx, [esi + ebx*2]
cmp ebx, 2
jb 0x41fc9d
movzx esi, cx
cmp esi, 0x7ff
ja 0x41fc9d
mov ebx, ecx
shr ebx, 6
add bl, 0xc0
mov byte [eax], bl
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
mov esi, 2
lea ebx, [esp + 0x20]
jmp 0x41fc35
xor esi, esi
cmp ebx, 3
lea ebx, [esp + 0x20]
jb 0x41fc35
movzx esi, cx
mov ebx, esi
shr ebx, 0xc
or bl, 0xe0
mov byte [eax], bl
shr esi, 6
mov ebx, esi
and bl, 0x3f
or bl, 0x80
mov byte [eax + 1], bl
lea ebx, [esp + 0x20]
and cl, 0x3f
or cl, 0x80
mov byte [eax + 2], cl
mov esi, 3
jmp 0x41fc35
xor ebx, ebx
mov edi, dword [esp + 4]
jmp 0x41fd7e
mov dword [esp + 0xc], 0
push 1
call fcn.0042f750
add esp, 4
mov dword [esp + 0x44], eax
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 4]
mov byte [eax], 0
mov dword [esp + 0x20], 0x14615b3c
mov dword [esp + 0x24], 0x12616615
mov dword [esp + 0x28], 0x636e2763
mov dword [esp + 0x2c], 0xf96c
mov byte [esp + 0x30], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x10
ja 0x41fd60
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
add al, 0x9e
xor al, byte [esp + edx + 0x20]
add al, 0xae
mov edx, dword [esp]
mov byte [esp + edx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x11
jb 0x41fd40
push dword [esp + 0xc]
mov esi, dword [esp + 0x48]
push esi
push ebx
call fcn.004093c0
mov ebx, eax
push esi
call fcn.004088a0
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004088a0
add esp, 4
push edi
call fcn.0042f7b0
add esp, 4
jmp 0x41fa68