Function at 0x41cd40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
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 0x41cd60
mov esi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41cd80
mov ebx, edx
sar ebx, 1
sar ecx, 1
lea eax, [ebx + ecx]
add eax, 0x1b
test eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], ecx
jns 0x41cdac
mov eax, 0xffffffff
jmp 0x41cdb6
lea eax, [ebx + ecx]
lea eax, [eax*2 + 0x36]
push eax
call fcn.0040ced0
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 8], 0xb946bb68
mov dword [esp + 0xc], 0xbd5bbf29
mov dword [esp + 0x10], 0xb12eb35b
mov dword [esp + 0x14], 0xb54db790
mov dword [esp + 0x18], 0xa93eab3c
mov dword [esp + 0x1c], 0xad3caf33
mov dword [esp + 0x20], 0xa13da339
mov dword [esp + 0x24], 0xa534a731
mov dword [esp + 0x28], 0x59af5b84
mov dword [esp + 0x2c], 0x5dca5fc3
mov dword [esp + 0x30], 0x51cd53c8
mov dword [esp + 0x34], 0x55cf57c2
mov dword [esp + 0x38], 0x49a64bc1
mov word [esp + 0x3c], 0x4f48
mov dword [esp + 0x3e], 0
mov byte [esp + 0x42], 0
mov eax, 0xf9591df
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0xf9591d7]
xor ecx, eax
mov edx, ecx
and edx, 0x24
xor ecx, 0xa4
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0xf9591d7], cl
inc eax
cmp eax, 0xf95921a
jne 0x41ce50
movzx ecx, word [edi]
mov eax, dword [esp + 0x44]
test cx, cx
je 0x41cea1
add edi, 2
mov eax, dword [esp + 0x44]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41ce90
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41ced1
lea edx, [esp + 0xa]
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 0x41cec0
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
mov dword [esp + 0x48], ebx
je 0x41cf01
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x41cef0
mov word [eax], 0
mov ebx, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x41cf10
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x41cf30
mov edx, dword [esp + 0x70]
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 0x41cf50
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x41cf74
mov eax, 0xffffffff
jmp 0x41cf7d
add ecx, edx
lea eax, [ecx*2 + 0x26]
mov dword [esp], esi
push eax
call fcn.0040ced0
add esp, 4
mov esi, eax
movzx eax, word [ebx]
mov dword [esp + 4], esi
test ax, ax
je 0x41cfb1
add ebx, 2
mov esi, dword [esp + 4]
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41cfa0
mov word [esi], 0x2f
mov dword [esp + 8], 0xd901db35
mov dword [esp + 0xc], 0xdd6adf50
mov dword [esp + 0x10], 0xd160d367
mov dword [esp + 0x14], 0xd569d765
mov dword [esp + 0x18], 0xa918ab65
mov dword [esp + 0x1c], 0xad5faf1d
mov word [esp + 0x20], 0xa3ac
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
lea eax, [esp + 8]
mov ecx, 0xd0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax]
lea edx, [ecx - 0x93cd900]
or edx, ebx
and ebx, ecx
not edx
or edx, ebx
lea ebx, [edx - 0x2e3038ec]
mov edi, ebx
xor edi, 0xfe
or ebx, 1
and ebx, edi
or edx, 1
add edx, ebx
add dl, 0x14
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0xb0
jne 0x41d010
add esi, 2
movzx eax, word [ebp]
test ax, ax
je 0x41d074
add ebp, 2
mov edx, dword [esp]
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x41d060
jmp 0x41d077
mov edx, dword [esp]
mov word [esi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x41d0a1
lea ecx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d090
mov word [esi], 0
movzx eax, word [edx]
test ax, ax
je 0x41d0d1
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 0x41d0c0
mov word [esi], 0
mov dword [esp + 8], 0xe9eaebca
mov word [esp + 0xc], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + ecx + 8]
mov edx, ecx
xor edx, 0x1181b7a7
add edx, eax
xor edx, edi
mov edi, edx
and edi, 1
mov ebx, 0x43
sub ebx, edx
and edx, 0x1181b7fe
add edx, 0xbc
xor edx, 0xfe
and ebx, 0xfe
or ebx, edx
not ebx
add ebx, edi
mov byte [esp + ecx + 8], bl
inc ecx
add eax, 2
cmp ecx, 6
jne 0x41d0f0
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x54]
push edi
push dword [esp + 0x18]
push dword [esp + 0x80]
call fcn.00420950
add esp, 0x1c
mov byte [esp], al
jmp dword [0x447bdc]