Function at 0x1004c085
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100f93e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
lea ebx, [eax + 0xa]
and ebx, reloc.OLEAUT32.dll_VariantInit
push esi
push edi
jns 0x1004c0bd
dec ebx
or ebx, 0xfffffff8
inc ebx
je 0x1004c0c6
push 8
pop eax
sub eax, ebx
mov ebx, eax
call fcn.10078d16
and al, 0xf8
or al, bl
xor esi, esi
mov byte [ebp - 0xc], al
inc esi
jmp 0x1004c0e2
dec ebx
call fcn.10078d16
mov byte [ebp + esi - 0xc], al
inc esi
test ebx, ebx
jne 0x1004c0d7
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
and dword [eax], ebx
lea edi, [ebp - 0x14]
mov ebx, edi
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
cmp esi, 8
jge 0x1004c116
call fcn.10078d16
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp - 0x1c]
cmp esi, 8
jne 0x1004c166
lea eax, [ebp - 0xc]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0xc]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 8
jl 0x1004c11f
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.1004bfdf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
push 8
pop esi
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x1004c144
mov eax, dword [ebp - 0x20]
add dword [eax], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x18], ecx
sub ebx, 8
cmp dword [ebp - 0x1c], 2
jle 0x1004c101
cmp dword [ebp + 0xc], 0
je 0x1004c1e6
lea ebx, [ebp - 0x14]
sub ebx, dword [ebp - 0x18]
cmp esi, 8
jge 0x1004c190
mov eax, dword [ebp + 8]
mov al, byte [eax]
inc esi
inc dword [ebp + 8]
dec dword [ebp + 0xc]
mov byte [ebp + esi - 0xd], al
cmp esi, 8
jne 0x1004c1e0
lea eax, [ebp - 0xc]
xor ecx, ecx
sub edi, eax
lea eax, [ebp + ecx - 0xc]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc ecx
cmp ecx, 8
jl 0x1004c199
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.1004bfdf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
push 8
pop esi
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x1004c1be
mov eax, dword [ebp - 0x20]
add dword [eax], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x18], ecx
sub ebx, 8
cmp dword [ebp + 0xc], 0
jne 0x1004c178
lea ebx, [ebp - 0x14]
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
cmp esi, 8
jge 0x1004c204
mov byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp - 0x1c]
cmp esi, 8
jne 0x1004c254
lea eax, [ebp - 0xc]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0xc]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 8
jl 0x1004c20d
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.1004bfdf
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
push 8
pop esi
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x1004c232
mov eax, dword [ebp - 0x20]
add dword [eax], 8
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x18], ecx
sub ebx, 8
cmp dword [ebp - 0x1c], 7
jle 0x1004c1f3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100771ba
leave
ret