Function at 0x404ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d0cb
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push ebp
mov ebp, dword [esp + 0xf4]
push edi
test ebp, ebp
jne 0x404b00
xor al, al
jmp 0x404ce4
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
test ebx, ebx
jg 0x404b19
xor al, al
jmp 0x404ce4
cmp ebx, 0x32
jle 0x404b25
xor al, al
jmp 0x404ce4
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00404d00
add esp, 4
mov byte [esp + 0x38], bl
mov esi, 1
lea eax, [esi - 1]
cdq
idiv ebx
inc esi
cmp esi, 0x32
mov cl, byte [edx + ebp]
mov byte [esp + esi + 0x37], cl
jl 0x404b3c
lea edx, [esp + 0x38]
push edx
call fcn.00405070
add esp, 4
xor ebp, ebp
xor ecx, ecx
xor eax, eax
xor edx, edx
mov dl, byte [esp + eax + 0x38]
imul edx, eax
add ecx, edx
inc eax
cmp eax, 0x32
jl 0x404b62
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov eax, ecx
mov esi, 6
cdq
idiv esi
mov bl, byte [esp + ecx + 0x38]
mov al, byte [esp + edx + 0x30]
add al, cl
xor bl, al
mov byte [esp + ecx + 0x38], bl
inc ecx
cmp ecx, 0x32
jl 0x404b79
lea ecx, [esp + 0x38]
push ecx
call fcn.00405130
mov dl, byte [esp + 0x17]
add esp, 4
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0xf4], ebp
xor ebx, ebx
jmp 0x404bc7
xor ebp, ebp
xor eax, eax
lea ecx, [esp + 0x24]
mov al, byte [esp + ebx + 0x38]
push eax
push str._02x
push ecx
call fcn.00407355
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
or edx, 0xffffffff
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x404c02
call fcn.00411316
cmp esi, ebp
jbe 0x404c48
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.00404270
test al, al
je 0x404c48
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
lea esi, [esp + 0x24]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
inc ebx
cmp ebx, 0x32
jl 0x404bc5
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x404c5f
mov eax, 0x41e4fc
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x6c]
push ecx
push eax
push str._s:_d
push edx
call fcn.00407355
lea edi, [esp + 0x7c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x100]
push 1
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00404270
test al, al
je 0x404cbd
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x6c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x18]
pop esi
test eax, eax
je 0x404ce2
mov cl, byte [eax - 1]
dec eax
test cl, cl
je 0x404cd9
cmp cl, 0xff
je 0x404cd9
dec cl
mov byte [eax], cl
jmp 0x404ce2
push eax
call fcn.004152f7
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xe8]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe8
ret