Function at 0x41ad40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d96d0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5021c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [edi], 0
test eax, eax
je 0x41ad8b
push eax
call fcn.004ad06e
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x2c]
mov dword [edi + 4], 0
cmp eax, 3
jne 0x41aea5
cmp byte [edi + 0x48], 0
mov eax, dword [ebx + 0x10]
je 0x41ae37
lea eax, [eax*2 + 4]
push eax
mov dword [ebp - 0x14], eax
call fcn.004ad065
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x24]
add esp, 0xc
cmp edi, eax
je 0x41ade7
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41adf4
push eax
jmp 0x41adec
test esi, esi
je 0x41adf4
push esi
call fcn.004ad06e
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x41b23c
mov ecx, 0xfeff
mov word [eax], cx
mov ecx, ebx
cmp dword [ebx + 0x14], 7
jbe 0x41ae10
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
mov eax, dword [edi]
push ecx
add eax, 2
push eax
call fcn.004afa60
mov eax, dword [ebx + 0x10]
add esp, 0xc
lea eax, [eax*2 + 2]
mov dword [edi + 4], eax
jmp 0x41b23c
add eax, eax
push eax
mov dword [ebp - 0x14], eax
call fcn.004ad065
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x28]
add esp, 0xc
cmp edi, eax
je 0x41ae67
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41ae74
push eax
jmp 0x41ae6c
test esi, esi
je 0x41ae74
push esi
call fcn.004ad06e
add esp, 4
mov edx, dword [edi]
test edx, edx
je 0x41b23c
cmp dword [ebx + 0x14], 7
mov ecx, ebx
jbe 0x41ae88
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
push ecx
push edx
call fcn.004afa60
mov eax, dword [ebx + 0x10]
add esp, 0xc
add eax, eax
mov dword [edi + 4], eax
jmp 0x41b23c
cmp eax, 4
jne 0x41b02b
cmp byte [edi + 0x48], 0
mov eax, dword [ebx + 0x10]
je 0x41af36
lea eax, [eax*2 + 4]
push eax
mov dword [ebp - 0x14], eax
call fcn.004ad065
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x2c]
add esp, 0xc
cmp edi, eax
je 0x41aeec
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41aef9
push eax
jmp 0x41aef1
test esi, esi
je 0x41aef9
push esi
call fcn.004ad06e
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x41af9b
mov ecx, 0xfeff
mov word [eax], cx
mov ecx, ebx
cmp dword [ebx + 0x14], 7
jbe 0x41af15
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
mov eax, dword [edi]
push ecx
add eax, 2
push eax
call fcn.004afa60
mov eax, dword [ebx + 0x10]
add esp, 0xc
lea eax, [eax*2 + 2]
jmp 0x41af98
add eax, eax
push eax
mov dword [ebp - 0x14], eax
call fcn.004ad065
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x30]
add esp, 0xc
cmp edi, eax
je 0x41af66
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41af73
push eax
jmp 0x41af6b
test esi, esi
je 0x41af73
push esi
call fcn.004ad06e
add esp, 4
mov edx, dword [edi]
test edx, edx
je 0x41af9b
cmp dword [ebx + 0x14], 7
mov ecx, ebx
jbe 0x41af83
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10]
add eax, eax
push eax
push ecx
push edx
call fcn.004afa60
mov eax, dword [ebx + 0x10]
add esp, 0xc
add eax, eax
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
xor edx, edx
mov ecx, dword [edi]
shr eax, 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], edx
test eax, eax
je 0x41affc
mov edx, dword [ecx + edx*8]
mov eax, edx
mov esi, dword [ebp + 8]
mov esi, dword [ecx + esi*8 + 4]
mov ecx, esi
shld esi, edx, 8
shrd eax, ecx, 8
shl edx, 8
xor edx, eax
shr ecx, 8
xor esi, ecx
and edx, 0xff00ff00
xor edx, eax
and esi, 0xff00ff00
mov eax, dword [ebp + 8]
xor esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax*8], edx
mov edx, eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*8 + 4], esi
inc edx
mov dword [ebp + 8], edx
cmp edx, eax
jl 0x41afb2
mov esi, dword [edi + 4]
lea edx, [eax*4]
shr esi, 1
cmp edx, esi
jae 0x41b23c
mov ax, word [ecx + edx*2]
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
inc edx
mov ecx, eax
cmp edx, esi
jl 0x41b010
jmp 0x41b23c
cmp eax, 5
jne 0x41b174
cmp byte [edi + 0x48], 0
mov ecx, ebx
mov eax, dword [ebx + 0x14]
je 0x41b0ee
cmp eax, 7
jbe 0x41b04a
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], eax
add eax, 3
push eax
mov dword [ebp - 0x18], eax
call fcn.004ad065
add esp, 4
mov esi, eax
push dword [ebp - 0x18]
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x34]
add esp, 0xc
cmp edi, eax
je 0x41b096
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41b0a3
push eax
jmp 0x41b09b
test esi, esi
je 0x41b0a3
push esi
call fcn.004ad06e
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x41b23c
mov ax, word [0x4ec08c]
mov word [ecx], ax
mov al, byte [0x4ec08e]
mov byte [ecx + 2], al
mov ecx, ebx
mov eax, dword [edi]
add eax, 3
cmp dword [ebx + 0x14], 7
jbe 0x41b0cd
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x14]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [eax + 2]
jmp 0x41b20b
cmp eax, 7
jbe 0x41b0f5
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0x14], eax
call fcn.004ad065
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x38]
add esp, 0xc
cmp edi, eax
je 0x41b13b
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41b148
push eax
jmp 0x41b140
test esi, esi
je 0x41b148
push esi
call fcn.004ad06e
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x41b23c
cmp dword [ebx + 0x14], 7
mov eax, ebx
jbe 0x41b15c
mov eax, dword [ebx]
mov esi, dword [ebp - 0x14]
push 0
push 0
push esi
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
jmp 0x41b202
cmp eax, 2
je 0x41b182
cmp eax, 1
jne 0x41b23c
mov eax, dword [ebx + 0x10]
mov ecx, ebx
inc eax
cmp dword [ebx + 0x14], 7
jbe 0x41b190
mov ecx, dword [ebx]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
mov dword [ebp - 0x14], eax
call fcn.004ad065
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
push 0
push esi
call fcn.004affe0
lea eax, [ebp - 0x3c]
add esp, 0xc
cmp edi, eax
je 0x41b1d2
mov eax, dword [edi]
mov dword [edi], esi
test eax, eax
je 0x41b1df
push eax
jmp 0x41b1d7
test esi, esi
je 0x41b1df
push esi
call fcn.004ad06e
add esp, 4
mov ecx, dword [edi]
test ecx, ecx
je 0x41b23c
mov eax, dword [ebx + 0x10]
mov edx, ebx
inc eax
cmp dword [ebx + 0x14], 7
jbe 0x41b1f3
mov edx, dword [ebx]
mov esi, dword [ebp - 0x14]
push 0
push 0
push esi
push ecx
push eax
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [eax - 1]
mov dword [edi + 4], ecx
cmp eax, esi
je 0x41b23c
mov eax, dword [edi]
mov dword [edi], 0
test eax, eax
je 0x41b227
push eax
call fcn.004ad06e
add esp, 4
mov dword [edi + 4], 0
jmp 0x41b23c
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
add ecx, 8
cmp dword [edi], 0
je 0x41b261
cmp ecx, ebx
je 0x41b26d
cmp dword [ebx + 0x14], 7
mov eax, dword [ebx + 0x10]
jbe 0x41b25d
mov ebx, dword [ebx]
push eax
push ebx
jmp 0x41b268
push 0
push 0x4eb5ac
call fcn.00403a40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4