Function at 0x1035c70
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor ecx, ecx
cmp byte [ebx + eax - 1], 0x7d
push edi
lea edi, [eax - 0x20]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
jne 0x1035cc7
cmp edi, 0x400
jbe 0x1035cc7
mov edi, edi
cmp byte [ebx + edi - 1], cl
jne 0x1035cb8
cmp byte [edi + ebx - 2], cl
jne 0x1035cb8
cmp byte [edi + ebx - 3], cl
jne 0x1035cb8
cmp byte [edi + ebx - 4], cl
je 0x1035cc3
dec edi
cmp edi, 0x400
ja 0x1035ca0
jmp 0x1035cc4
dec edi
mov dword [ebp - 8], edi
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
cmp eax, 0x10
jbe 0x1035e26
cmp eax, dword [ebp + 0x18]
jae 0x1035e26
add ecx, ebx
xor eax, eax
add ecx, edx
mov edx, ecx
lea ecx, [ecx]
cmp byte [edx], 0xe8
je 0x1035d01
inc eax
dec edx
cmp eax, 0x10
jb 0x1035cf0
jmp 0x1035e26
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
mov bl, byte [ecx - 0x10]
add ecx, 0xfffffff0
xor edx, edx
mov dword [ebp + 0x20], edx
cmp bl, byte [edx + ecx]
jne 0x1035d62
inc edx
cmp edx, 4
jl 0x1035d11
lea edx, [ecx + 1]
mov dword [ebp + 8], 4
jmp 0x1035d2a
mov bl, byte [ecx]
cmp bl, byte [edx - 1]
je 0x1035d34
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx]
je 0x1035d3d
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 1]
je 0x1035d47
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 2]
je 0x1035d4f
inc dword [ebp + 0x20]
add edx, 4
sub dword [ebp + 8], 1
jne 0x1035d28
cmp dword [ebp + 0x20], 1
jl 0x1035e23
mov dword [ebp + 0x1c], 4
lea esp, [esp]
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x10], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x10], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0x1c], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1035d70
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add eax, ecx
cmp eax, dword [ebp + 0x18]
jae 0x1035e40
cmp eax, 0x400
jbe 0x1035e40
lea edi, [eax - 0x20]
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x1035e7e
mov cl, byte [edi + ebx + 3]
cmp cl, byte [edi + ebx + 4]
jne 0x1035e7e
test al, al
je 0x1035e7e
cmp al, 0xff
je 0x1035e7e
cmp al, 0xcc
je 0x1035e7e
cmp edi, 0x400
jbe 0x1035e9e
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x1035e7b
dec edi
cmp edi, 0x400
ja 0x1035e67
jmp 0x1035e9e
sub edi, 0x10
cmp edi, 0x400
jbe 0x1035e9e
mov al, byte [edi + ebx]
test al, al
je 0x1035e95
cmp al, 0xff
je 0x1035e95
cmp al, 0xcc
jne 0x1035e9e
dec edi
cmp edi, 0x400
ja 0x1035e86
sub edi, 0x20
xor eax, eax
lea ecx, [edi + ebx]
cmp byte [ecx + eax], 0
jne 0x1035ead
inc edx
cmp byte [ecx + eax + 1], 0
jne 0x1035eb5
inc edx
cmp byte [ecx + eax + 2], 0
jne 0x1035ebd
inc edx
cmp byte [ecx + eax + 3], 0
jne 0x1035ec5
inc edx
add eax, 4
cmp eax, 0x20
jb 0x1035ea6
cmp edx, 0xa
jg 0x1036181
lea eax, [edi - 0x80]
cmp edi, eax
jbe 0x1036181
mov edx, dword [ebp - 0xc]
cmp byte [edi + ebx], 0
je 0x1035eeb
inc edx
dec edi
cmp edi, eax
ja 0x1035ee4
cmp edx, 0x30
jl 0x1036181
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
mov dl, byte [ecx]
xor edi, edi
mov dword [ebp + 0x1c], edi
cmp dl, byte [edi + ecx]
jne 0x1035f52
inc edi
cmp edi, 8
jl 0x1035f05
lea edi, [ecx + 1]
mov dword [ebp + 0x20], 8
lea ebx, [ebx]
cmp dl, byte [edi - 1]
je 0x1035f28
inc dword [ebp + 0x1c]
cmp dl, byte [edi]
je 0x1035f2f
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 1]
je 0x1035f37
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 2]
je 0x1035f3f
inc dword [ebp + 0x1c]
add edi, 4
sub dword [ebp + 0x20], 1
jne 0x1035f20
cmp dword [ebp + 0x1c], 2
jl 0x1036010
mov dword [ebp + 0x1c], 8
lea esp, [esp]
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x10], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x10], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0x1c], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1035f60
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esi + 0x3c]
cmp ebx, ecx
jae 0x1036181
test ebx, ebx
jbe 0x1036181
mov eax, ecx
sub eax, ebx
cmp eax, 0x1000
jb 0x1036181
cmp eax, 0x2000
jae 0x1036181
mov eax, dword [ebp + 0x14]
lea edi, [eax + ecx - 0x400]
push 0x400
push edi
call fcn.01034e20
fcomp qword [0x100c0b0]
fnstsw ax
test ah, 0x41
je 0x103606f
mov ecx, dword [ebp + 0x14]
cmp byte [ebx + ecx], 0xe8
jne 0x1036181
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
mov ecx, edi
mov dl, byte [ecx]
xor edi, edi
mov dword [ebp + 0x14], edi
lea ecx, [ecx]
cmp dl, byte [edi + ecx]
jne 0x10360ca
inc edi
cmp edi, 0x100
jl 0x1036080
lea edi, [ecx + 1]
mov dword [ebp + 0x18], 0x100
cmp dl, byte [edi - 1]
je 0x10360a0
inc dword [ebp + 0x14]
cmp dl, byte [edi]
je 0x10360a7
inc dword [ebp + 0x14]
cmp dl, byte [edi + 1]
je 0x10360af
inc dword [ebp + 0x14]
cmp dl, byte [edi + 2]
je 0x10360b7
inc dword [ebp + 0x14]
add edi, 4
sub dword [ebp + 0x18], 1
jne 0x1036098
cmp dword [ebp + 0x14], 0x40
jl 0x1036181
mov dword [ebp + 0x14], 0x100
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x10], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x10], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x10], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x10]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 4
sub dword [ebp + 0x14], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x10360d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c