Function at 0x10034775
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xfffffffe
mov esi, ecx
jne 0x100347a4
mov eax, dword [esi + 0x4b0]
xor edi, edi
cmp eax, edi
jle 0x100347af
dec eax
push eax
push edi
push dword [ebp + 0xc]
call fcn.10032740
mov edi, eax
jmp 0x100347af
cmp edi, 0xffffffff
jne 0x100347af
mov edi, dword [esi + 0x4b0]
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.10033e7d
test eax, eax
je 0x10034968
push ebx
mov ebx, dword [esi + 0x4b0]
dec ebx
cmp ebx, edi
mov dword [ebp - 4], ebx
jle 0x1003484b
lea eax, [ebx - 1]
mov dword [ebp + 8], eax
push dword [ebp + 8]
lea ecx, [esi + 0x7c]
call fcn.100095c4
push ebx
lea ecx, [esi + 0x7c]
mov dword [ebp - 8], eax
call fcn.1002d3c7
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
xor ecx, dword [edx]
push dword [ebp + 8]
and ecx, 1
xor dword [eax], ecx
lea ecx, [esi + 0x7c]
call fcn.100095c4
push ebx
lea ecx, [esi + 0x7c]
mov dword [ebp - 8], eax
call fcn.1002d3c7
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 8]
push dword [ebp + 8]
mov dword [eax + 8], ecx
lea ebx, [esi + 0x7c]
mov ecx, ebx
call fcn.100095c4
push dword [ebp - 4]
mov ecx, ebx
mov dword [ebp - 8], eax
call fcn.1002d3c7
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
dec ebx
dec dword [ebp + 8]
cmp ebx, edi
mov dword [eax + 4], ecx
mov dword [ebp - 4], ebx
jg 0x100347d7
lea ebx, [esi + 0x7c]
push edi
mov ecx, ebx
call fcn.1002d3c7
and dword [eax], 0xfffffffe
push edi
mov ecx, ebx
call fcn.1002d3c7
and dword [eax + 4], 0
push edi
mov ecx, ebx
call fcn.1002d3c7
and dword [eax + 8], 0
mov eax, dword [esi + 0x6c]
test al, 1
jne 0x100348d1
mov eax, dword [esi + 0x4b0]
cmp eax, 1
jle 0x10034944
dec eax
cmp edi, eax
jge 0x1003489c
lea eax, [edi + 1]
push eax
mov ecx, ebx
call fcn.100095c4
test byte [eax], 1
jne 0x100348bf
mov eax, dword [esi + 0x4b0]
dec eax
cmp edi, eax
jne 0x10034944
lea eax, [edi - 1]
push eax
mov ecx, ebx
call fcn.100095c4
test byte [eax], 1
je 0x10034944
push edi
push edi
mov eax, 0xff676983
push eax
push eax
mov ecx, esi
call fcn.1003207f
jmp 0x10034944
push 2
pop ecx
test cl, al
je 0x10034914
mov eax, dword [esi + 0x480]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x4a4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0x2c
push dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
call fcn.1006ece1
push dword [ebp - 0x10]
mov ecx, esi
push edi
call fcn.10033850
push edi
mov ecx, esi
call fcn.100335e0
test eax, eax
je 0x10034944
lea eax, [ebp - 0x18]
push eax
push edi
mov ecx, esi
call fcn.10032af8
mov eax, dword [esi + 0x4a0]
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x18]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi]
or byte [esi + 0x6d], 0x20
mov eax, 0x8000
lea ecx, [edi + 1]
push 0
mov dword [esi + 0x78], ecx
push eax
mov ecx, esi
mov dword [esi + 0x74], eax
call dword [edx + 0x98]
mov eax, edi
pop ebx
jmp 0x10034979
mov eax, dword [esi]
push 0
push 0xfffffffffffffffe
mov ecx, esi
call dword [eax + 0x98]
or eax, 0xffffffff
pop edi
pop esi
leave
ret 8