Function at 0x41a020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], 0x18e31827
mov dword [esp + 0x1c], 0x18e418f9
mov dword [esp + 0x20], 0x180d18e2
mov eax, 0x4a48
mov ecx, 0xab1cb5b7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, word [esp + eax*2 - 0x9478]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
lea esi, [edx + edx]
not esi
add esi, edx
add esi, 0x58e5adbf
mov edi, esi
and edi, 1
and esi, 0xfffe
and edx, 1
or edx, esi
xor edx, 1
lea edx, [edx + edi*2]
mov word [esp + eax*2 - 0x9478], dx
inc eax
dec ecx
cmp eax, 0x4a4e
jne 0x41a060
mov dword [esp + 0x30], 0xf8cdf8d0
mov dword [esp + 0x34], 0xf8cbf8ce
mov dword [esp + 0x38], 0xf712f706
mov dword [esp + 0x3c], 0xf8d3f711
mov dword [esp + 0x40], 0xf922f92f
mov dword [esp + 0x44], 0xf92ff923
mov dword [esp + 0x48], 0xf92af92c
mov dword [esp + 0x4c], 0xf933f935
mov dword [esp + 0x50], 0xf6c9f6f2
xor eax, eax
nop
nop
lea ecx, [eax + 0x70f8]
xor cx, word [esp + eax*2 + 0x30]
add ecx, 0x7840
mov word [esp + eax*2 + 0x30], cx
inc eax
cmp eax, 0x12
jne 0x41a0f0
movzx ecx, word [esp + 0x30]
lea eax, [esp + 0x15c]
test cx, cx
je 0x41a143
lea edx, [esp + 0x32]
mov esi, dword [ebp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41a130
jmp 0x41a146
mov esi, dword [ebp + 0x10]
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x41a171
lea edx, [esi + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41a160
mov word [eax], 0
movzx ecx, word [esp + 0x18]
test cx, cx
je 0x41a1a1
lea edx, [esp + 0x1a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41a190
mov word [eax], 0
mov edi, dword [ebx]
mov dword [esp + 0x30], 0x5cd0520
mov word [esp + 0x34], 0x7e2c
mov eax, 0xf1fa
mov ecx, 0xe05
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*2 - 0x1e3c4]
mov esi, edx
not esi
or esi, ecx
or edx, eax
and edx, esi
add edx, 0x7030
mov word [esp + eax*2 - 0x1e3c4], dx
inc eax
dec ecx
cmp eax, 0xf1fd
jne 0x41a1d0
movzx eax, byte [esp + 0x30]
test al, al
je 0x41a21b
lea ecx, [esp + 0x31]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], al
inc edi
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x41a210
mov dword [esp + 0x10], edi
mov byte [edi], 0
lea eax, [esp + 0x140]
lea ecx, [esp + 0x150]
lea edx, [esp + 0x2c]
lea esi, [esp + 0x15c]
push eax
push ecx
push edx
push esi
call fcn.0040ad10
add esp, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x442580]
mov ecx, 0xf7d41967
xor ecx, dword [0x442588]
add eax, ecx
inc eax
jmp eax
pop esp
add byte [edi], bl
hlt
mov byte [edi], 2
add dword [esi], eax
call 0x58c931b3
add byte [eax], ch
adc byte [ecx], ch
mov dh, 0x8b
add byte [esi], al
inc esi
add byte [ebx + 0x2b], al
pop ds
push ss
pop eax
add byte [esi + 0x5c2d0f88], ch
add byte [esi], al
mov byte [ebx + 0x29], bl
add byte [edi + 0x5c001400], cl
add byte [ebx - 0x74ffec00], cl
add byte [eax], cl
add byte [edi + 0x5c000800], cl
add byte [ecx], ch
add byte [edi + 0x1f9325ab], bh
add byte [eax], ah
add byte [edi], dh
add byte [esi], al
or byte [eax], al
pop dword [eax]
cmp al, byte [eax]
mov eax, dword [eax]
mov dword [eax + ebx*2], 0x8f008b00
add byte [esp], cl
xor eax, dword [ebx + 0x37]
add dh, dh
add dword [ebx + 0x1a], ecx
pop dword [eax]
push ss
shr byte [ecx], 1
add byte [eax], bl
xchg ecx, eax
adc eax, 0x29f52044
add byte [edx - 0x55], dl
jp 0x5f5415
mov eax, dword [0x25a31444]
aam 0xc4
adc ebp, dword [ecx]
add byte [eax], bl
push ss
cmp byte [esi + esi + 0x6c91008f], dl
adc al, 0xd5
inc edx
jge 0x5f53f7
inc ebx
or byte [eax], al
pop eax
add al, dh
cdq
xchg ebp, eax
out 0x1d, al
outsd dx, dword [esi]
inc ebx
arpl word [eax], cx
add byte [eax + eax + 0x58], bl
add dl, ah
cld
or byte [eax], al
dec ebp
mov eax, 0x29090e15
sahf
and bl, byte [ebp + 0x5c]
inc edx
xchg edi, eax
outsb dx, byte [esi]
inc esi
mov bl, byte [edi - 3]
loop 0x5f5425
add byte [eax], bl
je 0x5f5402
rcr cl, cl
adc al, 0
fst dword [eax + eax]
adc al, 0x3c
test byte [edi + 0x7f], al
pop ecx
xor al, 0x3e
pop esp
add byte [eax], bl
pop esp
add byte [ecx + 0x68], ch
adc ebp, dword [ebx - 0x2e]
inc ebp
xchg edx, eax
mov ebx, 0xb0fd5029
pop esp
add byte [eax], bl
popfd
mov cl, 0x10
cmp dword [esp + esi*2], edi
adc byte [ecx], bh
cmp al, 0x74
or ch, byte [ecx]
loope 0x5f542c
invalid
clc
ret