Function at 0x342d3c8f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x100
mov eax, dword [0x342226fc]
xor eax, esp
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x108]
push ebx
mov ebx, dword [esp + 0x108]
push ebp
push esi
xor ebp, ebp
push edi
mov esi, edx
mov dword [esp + 0x30], ecx
xor ecx, ecx
xor edi, edi
cmp esi, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
je 0x342d3d3b
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x342d3ce2
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov dword [esp + 0x20], eax
call sub.MSO.dll_Ordinal_815
cmp eax, ebp
mov dword [esp + 0x24], eax
jne 0x342d3d14
mov dword [esp + 0x18], 0xfffffc0d
jmp 0x342d3f1f
lea edx, [esp + 0x1c]
push edx
push eax
push esi
call fcn.34214505
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x342d3f1f
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
sub edi, 1
mov dword [esp + 0x1c], edi
cmp ebx, ebp
je 0x342d3d9b
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x342d3d44
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov dword [esp + 0x14], eax
call sub.MSO.dll_Ordinal_815
cmp eax, ebp
mov dword [esp + 0x20], eax
jne 0x342d3d76
mov dword [esp + 0x18], 0xfffffc0d
jmp 0x342d3f1f
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
call fcn.34214505
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x342d3f1f
sub dword [esp + 0x10], 1
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
lea esi, [ecx - 1]
xor edx, edx
mov eax, edi
div esi
mov ebx, dword [esp + 0x24]
lea ebp, [edi + ecx]
add ecx, 0xffffffff
lea esi, [esp + 0x3c]
mov dword [esp + 0x34], edx
lea edx, [ebx + edi]
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
js 0x342d3df9
test ecx, ecx
mov eax, dword [esp + 0x34]
je 0x342d3dcf
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dl, byte [ecx + edx]
mov byte [esi], dl
add esi, 1
test eax, eax
jbe 0x342d3df4
cmp ebx, dword [esp + 0x28]
jae 0x342d3def
mov dl, byte [ebx]
mov byte [esi], dl
add esi, 1
add ebx, 1
sub eax, 1
jne 0x342d3ddf
sub ecx, 1
jns 0x342d3dc3
mov esi, ebp
shr esi, 1
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xc4]
push ecx
call sub.msvcr80.dll_memcpy
mov ebx, ebp
sub ebx, esi
push ebx
lea edx, [esp + esi + 0x4c]
push edx
lea eax, [esp + 0x50]
push eax
call sub.msvcr80.dll_memcpy
push esi
lea ecx, [esp + 0xd8]
push ecx
lea edx, [esp + ebx + 0x5c]
push edx
call sub.msvcr80.dll_memcpy
mov eax, 0x24924925
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
mov dl, byte [esp + 0x60]
shr eax, 2
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 1]
add esp, 0x24
add eax, 1
xor esi, esi
test ecx, ecx
mov byte [esp + 0x17], dl
jbe 0x342d3ea0
mov ecx, 8
sub ecx, eax
mov dword [esp + 0x28], ecx
jmp 0x342d3e7e
mov ecx, dword [esp + 0x28]
mov dl, byte [esp + esi + 0x3d]
mov bl, byte [esp + esi + 0x3c]
shr dl, cl
mov ecx, eax
shl bl, cl
add esi, 1
lea ecx, [ebp - 1]
or dl, bl
cmp esi, ecx
mov byte [esp + esi + 0x3b], dl
jb 0x342d3e7a
mov dl, byte [esp + 0x17]
mov bl, byte [esp + ebp + 0x3b]
mov cl, 8
sub cl, al
shr dl, cl
mov ecx, eax
shl bl, cl
xor ecx, ecx
or dl, bl
test ebp, ebp
mov byte [esp + ebp + 0x3b], dl
jbe 0x342d3ed4
xor edx, edx
mov eax, 0x7fa52ebd
div edi
mov edx, eax
mov al, dl
imul cl
xor byte [esp + ecx + 0x3c], al
add ecx, 1
cmp ecx, ebp
jb 0x342d3ec5
cmp dword [esp + 0x10], 4
mov esi, dword [esp + 0x2c]
push ebp
jbe 0x342d3f01
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.msvcr80.dll_memmove]
mov dl, byte [esp + 0x1c]
add esp, 0xc
mov byte [esi], 0xfe
mov byte [esi + 1], dl
add ebp, 2
jmp 0x342d3f19
lea ecx, [esp + 0x40]
push ecx
lea edx, [esi + 1]
push edx
call dword [sym.imp.msvcr80.dll_memmove]
add esp, 0xc
mov byte [esi], 0xff
add ebp, 1
mov eax, dword [esp + 0x30]
mov dword [eax], ebp
mov eax, dword [esp + 0x24]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x342d3f31
push eax
call sub.MSO.dll_Ordinal_652
mov eax, dword [esp + 0x10]
test eax, eax
je 0x342d3f3f
push eax
call sub.MSO.dll_Ordinal_652
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 8]
xor ecx, esp
call fcn.341f1b18
add esp, 0x100
ret 8