Function at 0x41e340
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 [0x4425e0]
test ecx, ecx
je 0x41e486
mov eax, dword [0x4425e4]
add eax, 8
nop
nop
nop
nop
nop
nop
cmp dword [eax - 8], 0x18dc7455
je 0x41e384
add eax, 0xc
dec ecx
jne 0x41e370
jmp 0x41e486
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 [0x4425e8]
mov dword [esp + 0x26], eax
mov word [esp + 0x2d], 0x10
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0x10
lea eax, [esp + 0x1c]
lea ebx, [esp + 4]
push 0x40
push 0x3000
push eax
push 0
push ebx
push 0xffffffffffffffff
call dword [0x4425ec]
mov edi, dword [esp + 4]
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 + 0x14]
mov esi, eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push 0x8000
push eax
push ebx
push 0xffffffffffffffff
call dword [0x4425f0]
cmp esi, 0xc0000004
jne 0x41e486
mov esi, ebx
lea ebx, [esp + 0x1c]
push dword [esp + 0x14]
call fcn.0042fe70
add esp, 4
mov edi, eax
mov ecx, dword [0x4425e0]
test ecx, ecx
je 0x41e47f
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [0x4425e4]
add eax, 8
mov edx, ebx
mov ebx, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [eax - 8], 0x18dc7455
je 0x41e492
add eax, 0xc
dec ecx
jne 0x41e470
xor ebx, ebx
jmp 0x41e7e2
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 [0x4425e8]
mov dword [esp + 0x26], eax
mov word [esp + 0x2d], 0x10
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0x10
push 0x40
push 0x3000
push edx
push 0
push ebx
push 0xffffffffffffffff
call dword [0x4425ec]
mov esi, edi
mov edi, dword [esp + 4]
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 + 0x14]
push esi
push 5
call dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x18], 0
push 0x8000
lea eax, [esp + 0x1c]
push eax
push ebx
push 0xffffffffffffffff
call dword [0x4425f0]
xor ebx, ebx
test edi, edi
js 0x41e56e
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 0x41e540
lea eax, [ebx*4]
mov ecx, ebx
shl ecx, 8
add ecx, eax
jns 0x41e575
mov eax, 0xffffffff
jmp 0x41e57d
mov edi, esi
jmp 0x41e7e2
mov eax, ebx
shl eax, 9
lea eax, [eax + ebx*8]
push eax
call fcn.00408540
add esp, 4
mov ebx, eax
mov edx, dword [esi]
mov edi, eax
mov dword [esp + 8], esi
mov eax, esi
jmp 0x41e5ae
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x41e5d3
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x41e5a0
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41e5c0
jmp 0x41e5a0
cmp edi, ebx
mov dword [esp + 0x44], ebx
je 0x41e6f3
mov word [edi], 0
movzx ecx, word [ebx]
test cx, cx
je 0x41e6fe
xor edx, edx
mov eax, ebx
jmp 0x41e60d
mov ecx, edx
and ecx, 1
xor edx, 1
lea edx, [edx + ecx*2]
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41e62c
cmp eax, edi
jae 0x41e62c
cmp cx, 0x7f
jbe 0x41e5f6
movzx ecx, cx
cmp ecx, 0x7ff
ja 0x41e627
add edx, 2
jmp 0x41e601
add edx, 3
jmp 0x41e601
mov dword [esp + 0xc], edx
lea esi, [edx + 1]
push esi
call fcn.00408540
mov ecx, dword [esp + 0x10]
add esp, 4
test ecx, ecx
mov dword [esp + 0x40], eax
jle 0x41e718
add ecx, eax
mov dword [esp + 0x48], ecx
add esi, eax
mov edx, ebx
mov ebx, eax
mov dword [esp + 0x10], esi
jmp 0x41e678
mov byte [ebx], cl
mov esi, 1
add edx, 2
add ebx, esi
cmp ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
jae 0x41e71a
cmp edx, edi
jae 0x41e71a
movzx ecx, word [edx]
test cx, cx
je 0x41e71a
cmp cx, 0x7f
jbe 0x41e65e
mov eax, ebx
not eax
add eax, esi
cmp eax, 2
jb 0x41e6c1
movzx esi, cx
cmp esi, 0x7ff
ja 0x41e6c1
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [ebx], al
and cl, 0x3f
or cl, 0x80
mov byte [ebx + 1], cl
mov esi, 2
jmp 0x41e665
xor esi, esi
cmp eax, 3
jb 0x41e665
movzx esi, cx
mov eax, esi
shr eax, 0xc
or al, 0xe0
mov byte [ebx], al
mov eax, esi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [ebx + 2], cl
mov esi, 3
jmp 0x41e665
xor ebx, ebx
mov edi, dword [esp + 8]
jmp 0x41e7d6
mov dword [esp + 0xc], 0
push 1
call fcn.00408540
add esp, 4
mov ebx, eax
mov dword [esp + 0x40], eax
jmp 0x41e71a
mov ebx, eax
mov ecx, dword [ebp + 8]
mov edi, dword [esp + 8]
mov byte [ebx], 0
mov dword [esp + 0x20], 0xdf310
mov dword [esp + 0x24], 0x2f5f601
mov dword [esp + 0x28], 0xf3fe47fb
mov word [esp + 0x2c], 0x6df8
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x36], 0
mov byte [esp + 0x3a], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x1a
ja 0x41e7b8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edx, byte [esp + eax + 0x20]
lea eax, [esi + edx]
add eax, 0xf6c4a5f0
add esi, 0xf6c4a5f0
and esi, edx
add esi, esi
sub eax, esi
add al, 0x70
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x1b
jb 0x41e780
push dword [esp + 0xc]
mov esi, dword [esp + 0x44]
push esi
lea eax, [esp + 0x28]
push eax
call fcn.00409040
mov ebx, eax
push esi
call fcn.00408550
add esp, 4
push dword [esp + 0x44]
call fcn.00408550
add esp, 4
push edi
call fcn.0042fec0
add esp, 4
jmp 0x41e488