Function at 0x419aa2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x466750]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x28], eax
lea ebx, [edx + 0xa]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
push esi
push edi
and ebx, 0x80000007
jns 0x419add
dec ebx
or ebx, 0xfffffff8
inc ebx
je 0x419ae6
push 8
pop eax
sub eax, ebx
mov ebx, eax
call fcn.004304fd
and al, 0xf8
xor ecx, ecx
inc ecx
or al, bl
mov byte [ebp - 0xc], al
mov esi, ecx
mov dword [ebp - 0x2c], ecx
test ebx, ebx
je 0x419b0e
call fcn.004304fd
mov byte [ebp + esi - 0xc], al
inc esi
dec ebx
jne 0x419afe
xor ecx, ecx
inc ecx
xor eax, eax
cmp eax, 8
jae 0x419cc4
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 8
jl 0x419b13
mov eax, dword [ebp - 0x24]
lea edi, [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x18], ecx
and dword [eax], 0
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x20], eax
cmp esi, 8
jge 0x419b53
call fcn.004304fd
mov ecx, dword [ebp - 0x18]
mov byte [ebp + esi - 0xc], al
inc esi
inc ecx
cmp esi, 8
mov dword [ebp - 0x18], ecx
jne 0x419ba9
lea eax, [ebp - 0xc]
xor edx, edx
sub edi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 8
jl 0x419b5c
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0xc]
push ebx
call fcn.00419993
mov esi, dword [ebp - 0x20]
pop ecx
push 8
mov ecx, ebx
pop edx
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
dec edx
jne 0x419b81
mov eax, dword [ebp - 0xc]
mov edi, ebx
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebp - 8]
mov ebx, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [eax], 8
sub dword [ebp - 0x20], 8
cmp ecx, 2
jle 0x419b3a
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x419c31
lea edx, [ebp - 0x14]
sub edx, ebx
mov dword [ebp - 0x18], edx
cmp esi, 8
jge 0x419bd7
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ebp + esi - 0xc], al
inc esi
inc edx
dec ecx
mov dword [ebp - 0x1c], edx
cmp esi, 8
mov dword [ebp - 0x30], ecx
jne 0x419c2d
lea eax, [ebp - 0xc]
xor edx, edx
sub edi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 8
jl 0x419be0
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0xc]
push ebx
call fcn.00419993
mov edx, dword [ebp - 0x18]
pop ecx
push 8
mov ecx, ebx
pop esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x419c05
mov eax, dword [ebp - 0xc]
mov edi, ebx
mov dword [ebp - 0x14], eax
mov ebx, ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [eax], 8
sub edx, 8
mov dword [ebp - 0x18], edx
test ecx, ecx
jne 0x419bbd
lea edx, [ebp - 0x14]
xor eax, eax
sub edx, ebx
inc eax
mov dword [ebp - 0x1c], edx
cmp esi, 8
jge 0x419c58
mov eax, esi
inc esi
cmp eax, 8
jae 0x419cc4
mov byte [ebp + eax - 0xc], 0
mov eax, dword [ebp - 0x2c]
inc eax
cmp esi, 8
mov dword [ebp - 0x2c], eax
jne 0x419cae
lea eax, [ebp - 0xc]
xor edx, edx
sub edi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc edx
cmp edx, 8
jl 0x419c61
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0xc]
push ebx
call fcn.00419993
mov edx, dword [ebp - 0x1c]
pop ecx
push 8
mov ecx, ebx
pop esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x419c86
mov eax, dword [ebp - 0xc]
mov edi, ebx
mov dword [ebp - 0x14], eax
mov ebx, ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [eax], 8
sub edx, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
cmp eax, 7
jle 0x419c3c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ee4e
mov esp, ebp
pop ebp
ret
call fcn.0042f77b
int3