Function at 0x41ec40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
mov edi, dword [ebp + 4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax], 0
lea eax, [eax + 2]
jne 0x41ec60
add eax, edi
add eax, 0xfffffffe
mov edx, edi
not edx
and edx, eax
xor eax, edi
add edx, edx
sub edx, eax
mov esi, dword [ecx + 4]
xor eax, eax
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x41ec80
sar edx, 1
add eax, esi
add eax, 0xfffffffe
mov ebx, esi
not ebx
and ebx, eax
xor eax, esi
add ebx, ebx
sub ebx, eax
sar ebx, 1
lea eax, [edx + 0x1b]
mov ecx, ebx
and ecx, eax
mov dword [esp + 0x44], ebx
xor eax, ebx
lea eax, [eax + ecx*2]
test eax, eax
mov dword [esp + 0x48], edx
jns 0x41ecbe
mov eax, 0xffffffff
jmp 0x41ecc0
add eax, eax
push eax
call fcn.004084d0
add esp, 4
mov dword [esp + 8], 0xd782c9ac
mov dword [esp + 0xc], 0xd3bdd5a7
mov dword [esp + 0x10], 0xdfaad1b1
mov dword [esp + 0x14], 0xdb97ddfc
mov dword [esp + 0x18], 0xe79ad9a0
mov dword [esp + 0x1c], 0xe390e589
mov dword [esp + 0x20], 0xef87e19f
mov dword [esp + 0x24], 0xeb98ed9f
mov dword [esp + 0x28], 0xf7a9e9c8
mov dword [esp + 0x2c], 0xf38ef599
mov dword [esp + 0x30], 0xff97f18c
mov dword [esp + 0x34], 0xfb91fd8e
mov dword [esp + 0x38], 0x762f987
mov dword [esp + 0x3c], 0x504
mov byte [esp + 0x40], 0
mov ebx, 0x6bfcb64e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + ebx - 0x6bfcb646]
xor ecx, ebx
neg ecx
lea edx, [ecx + ecx]
and edx, 0xe
xor ecx, 0x78
sub ecx, edx
add cl, 2
mov byte [esp + ebx - 0x6bfcb646], cl
inc ebx
cmp ebx, 0x6bfcb687
jne 0x41ed50
movzx ecx, word [edi]
mov ebx, eax
test cx, cx
je 0x41eda1
add edi, 2
mov ebx, eax
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41ed90
mov word [ebx], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x41edd1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41edc0
mov word [ebx], 0
movzx ecx, word [esi]
test cx, cx
mov dword [esp + 0x4c], eax
je 0x41ee01
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x41edf0
mov word [ebx], 0
mov ebx, dword [ebp]
xor eax, eax
nop
nop
nop
nop
nop
cmp word [ebx + eax], 0
lea eax, [eax + 2]
jne 0x41ee10
lea ecx, [ebx + eax]
add ecx, 0xfffffffe
mov eax, ebx
not eax
and eax, ecx
xor ecx, ebx
add eax, eax
sub eax, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx], 0
lea ecx, [ecx + 2]
jne 0x41ee40
lea edx, [edi + ecx]
add edx, 0xfffffffe
mov ecx, edi
not ecx
and ecx, edx
xor edx, edi
add ecx, ecx
sub ecx, edx
mov edx, dword [esp + 0x6c]
mov ebp, dword [edx]
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + edx], 0
lea edx, [edx + 2]
jne 0x41ee70
sar eax, 1
sar ecx, 1
lea esi, [edx + ebp]
add esi, 0xfffffffe
mov edx, ebp
not edx
and edx, esi
xor esi, ebp
add edx, edx
sub edx, esi
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x41eea6
mov eax, 0xffffffff
jmp 0x41eeaf
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.004084d0
add esp, 4
mov esi, eax
movzx eax, word [ebx]
mov dword [esp + 4], esi
test ax, ax
je 0x41eee1
add ebx, 2
mov esi, dword [esp + 4]
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41eed0
mov word [esi], 0x2f
mov dword [esp + 8], 0x8347816f
mov dword [esp + 0xc], 0x8732853c
mov dword [esp + 0x10], 0x8b24892d
mov dword [esp + 0x14], 0x8f278d3f
mov dword [esp + 0x18], 0x933c913f
mov dword [esp + 0x1c], 0x97799527
mov dword [esp + 0x20], 0x9998
mov byte [esp + 0x24], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 8]
mov ebx, 0x3cb56f9f
sub ebx, eax
or ebx, edx
lea ecx, [edx + edx]
not ecx
add ecx, edx
or ecx, eax
or ecx, 0x60
and ecx, ebx
lea edx, [ecx + ecx]
not edx
add edx, ecx
and ecx, 0x103441e1
and edx, 0x2f8b2e1e
sub edx, ecx
mov ecx, edx
xor ecx, 0xfe
or edx, 1
and ecx, edx
add ecx, edx
mov byte [esp + eax + 8], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x1d
jb 0x41ef30
add esi, 2
movzx eax, word [edi]
test ax, ax
je 0x41efb3
add edi, 2
mov ebx, dword [esp + 0x6c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x41efa0
jmp 0x41efb7
mov ebx, dword [esp + 0x6c]
mov word [esi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x41efe1
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 0x41efd0
mov word [esi], 0
movzx eax, word [ebp]
test ax, ax
je 0x41f012
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x41f000
mov word [esi], 0
mov dword [esp + 8], 0xf10e0fe6
mov dword [esp + 0xc], 0
mov eax, 0x7d
mov ecx, 0x82
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax - 0x75]
mov edx, ecx
xor edx, eax
and edx, edi
xor edx, eax
add dl, 0x8f
mov byte [esp + eax - 0x75], dl
inc eax
dec ecx
cmp eax, 0x85
jne 0x41f040
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x5c]
push edi
push dword [esp + 0x18]
mov ebp, dword [esp + 0x7c]
push ebp
call fcn.00422ca0
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x447e34]