Function at 0x41d690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov dword [esp + 0x10], 0x1bce19f5
mov dword [esp + 0x14], 0xe745e553
mov dword [esp + 0x18], 0xe356e141
mov dword [esp + 0x1c], 0xef5eed2d
mov dword [esp + 0x20], 0xeb26e958
mov dword [esp + 0x24], 0xf74af555
mov dword [esp + 0x28], 0xf31ff151
lea eax, [esp + 0x2c]
mov word [esp + 0x2c], 0xfdfc
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov word [esp + 0x36], 0
mov dword [esp + 0xac], 0
mov ecx, dword [esp + 0xac]
cmp ecx, 0x27
ja 0x41d746
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xac]
add cl, 0xfc
xor cl, byte [esp + edx + 0x10]
add cl, 0x1c
mov edx, dword [esp + 0xac]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
cmp ecx, 0x28
jb 0x41d710
lea esi, [esp + 0x10e]
lea edx, [esp + 0x10]
mov ecx, 7
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x12a]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [esp + 0x7c]
push edi
push 0
push 0
push 0xe
push esi
push 0
call dword [0x4474e8]
mov ebx, dword [esp + 0x7c]
test ebx, ebx
jns 0x41d792
mov eax, 0xffffffff
jmp 0x41d795
lea eax, [ebx + ebx]
push eax
call fcn.00433b50
add esp, 4
push edi
push ebx
mov ebx, eax
push eax
push 0xe
push esi
push 0
call dword [0x4474e8]
mov dword [esp + 0x10], 0xabdaadc8
mov dword [esp + 0x14], 0xd7b9a9c9
mov dword [esp + 0x18], 0xd3b3d543
mov dword [esp + 0x1c], 0xdfb3d1bb
mov dword [esp + 0x20], 0xdbdadd43
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xac], 0
mov ecx, dword [esp + 0xac]
cmp ecx, 0x2f
ja 0x41d879
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
movzx ecx, byte [esp + ecx + 0x10]
lea esi, [edx + 0xba]
and esi, ecx
mov edi, 0x45
sub edi, edx
or edi, ecx
add edi, esi
sub ecx, edi
add cl, 0xe9
mov edx, dword [esp + 0xac]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0xac]
mov ecx, dword [esp + 0xac]
cmp ecx, 0x30
jb 0x41d830
lea edi, [esp + 0xfa]
lea edx, [esp + 0x10]
mov ecx, 5
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x10e]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov eax, dword [esp + 0x7c]
mov ecx, eax
and ecx, 0xa
xor eax, 0xa
lea edx, [eax + ecx*2]
dec edx
test edx, edx
jns 0x41d8b8
mov eax, 0xffffffff
jmp 0x41d8c0
lea eax, [eax + ecx*2]
add eax, eax
add eax, 0xfffffffe
push eax
call fcn.00433b50
add esp, 4
mov esi, eax
movzx ecx, word [ebx]
test cx, cx
je 0x41d8f1
lea edx, [ebx + 2]
mov eax, esi
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 0x41d8e0
mov word [eax], 0
movzx ecx, word [esp + 0xfa]
test cx, cx
je 0x41d921
lea edx, [esp + 0xfc]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41d910
mov edi, dword [ebp + 8]
mov word [eax], 0
lea eax, [esp + 0xa8]
push eax
push esi
call fcn.00438d50
add esp, 8
not eax
shr eax, 0x1f
mov eax, dword [eax*4 + 0x441a88]
mov ecx, 0x6b4602d1
xor ecx, dword [0x441a90]
add eax, ecx
inc eax
mov dword [esp + 0xa0], ebx
jmp eax