Function at 0x1038b60
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 0x1038bb7
cmp edi, 0x400
jbe 0x1038bb7
mov edi, edi
cmp byte [ebx + edi - 1], cl
jne 0x1038ba8
cmp byte [edi + ebx - 2], cl
jne 0x1038ba8
cmp byte [edi + ebx - 3], cl
jne 0x1038ba8
cmp byte [edi + ebx - 4], cl
je 0x1038bb3
dec edi
cmp edi, 0x400
ja 0x1038b90
jmp 0x1038bb4
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 0x1038d16
cmp eax, dword [ebp + 0x18]
jae 0x1038d16
add ecx, ebx
xor eax, eax
add ecx, edx
mov edx, ecx
lea ecx, [ecx]
cmp byte [edx], 0xe8
je 0x1038bf1
inc eax
dec edx
cmp eax, 0x10
jb 0x1038be0
jmp 0x1038d16
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 0x1038c52
inc edx
cmp edx, 4
jl 0x1038c01
lea edx, [ecx + 1]
mov dword [ebp + 8], 4
jmp 0x1038c1a
mov bl, byte [ecx]
cmp bl, byte [edx - 1]
je 0x1038c24
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx]
je 0x1038c2d
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 1]
je 0x1038c37
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 2]
je 0x1038c3f
inc dword [ebp + 0x20]
add edx, 4
sub dword [ebp + 8], 1
jne 0x1038c18
cmp dword [ebp + 0x20], 1
jl 0x1038d13
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 0x1038c60
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 0x1038d30
cmp eax, 0x400
jbe 0x1038d30
lea edi, [eax - 0x20]
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x1038d6e
mov cl, byte [edi + ebx + 3]
cmp cl, byte [edi + ebx + 4]
jne 0x1038d6e
test al, al
je 0x1038d6e
cmp al, 0xff
je 0x1038d6e
cmp al, 0xcc
je 0x1038d6e
cmp edi, 0x400
jbe 0x1038d8e
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x1038d6b
dec edi
cmp edi, 0x400
ja 0x1038d57
jmp 0x1038d8e
sub edi, 0x10
cmp edi, 0x400
jbe 0x1038d8e
mov al, byte [edi + ebx]
test al, al
je 0x1038d85
cmp al, 0xff
je 0x1038d85
cmp al, 0xcc
jne 0x1038d8e
dec edi
cmp edi, 0x400
ja 0x1038d76
sub edi, 0x20
xor eax, eax
lea ecx, [edi + ebx]
cmp byte [ecx + eax], 0
jne 0x1038d9d
inc edx
cmp byte [ecx + eax + 1], 0
jne 0x1038da5
inc edx
cmp byte [ecx + eax + 2], 0
jne 0x1038dad
inc edx
cmp byte [ecx + eax + 3], 0
jne 0x1038db5
inc edx
add eax, 4
cmp eax, 0x20
jb 0x1038d96
cmp edx, 0xa
jg 0x1039071
lea eax, [edi - 0x80]
cmp edi, eax
jbe 0x1039071
mov edx, dword [ebp - 0xc]
cmp byte [edi + ebx], 0
je 0x1038ddb
inc edx
dec edi
cmp edi, eax
ja 0x1038dd4
cmp edx, 0x30
jl 0x1039071
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 0x1038e42
inc edi
cmp edi, 8
jl 0x1038df5
lea edi, [ecx + 1]
mov dword [ebp + 0x20], 8
lea ebx, [ebx]
cmp dl, byte [edi - 1]
je 0x1038e18
inc dword [ebp + 0x1c]
cmp dl, byte [edi]
je 0x1038e1f
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 1]
je 0x1038e27
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 2]
je 0x1038e2f
inc dword [ebp + 0x1c]
add edi, 4
sub dword [ebp + 0x20], 1
jne 0x1038e10
cmp dword [ebp + 0x1c], 2
jl 0x1038f00
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 0x1038e50
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esi + 0x3c]
cmp ebx, ecx
jae 0x1039071
test ebx, ebx
jbe 0x1039071
mov eax, ecx
sub eax, ebx
cmp eax, 0x1000
jb 0x1039071
cmp eax, 0x2000
jae 0x1039071
mov eax, dword [ebp + 0x14]
lea edi, [eax + ecx - 0x400]
push 0x400
push edi
call fcn.01037d10
fcomp qword [0x100ca90]
fnstsw ax
test ah, 0x41
je 0x1038f5f
mov ecx, dword [ebp + 0x14]
cmp byte [ebx + ecx], 0xe8
jne 0x1039071
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 0x1038fba
inc edi
cmp edi, 0x100
jl 0x1038f70
lea edi, [ecx + 1]
mov dword [ebp + 0x18], pe_nt_image_headers32
cmp dl, byte [edi - 1]
je 0x1038f90
inc dword [ebp + 0x14]
cmp dl, byte [edi]
je 0x1038f97
inc dword [ebp + 0x14]
cmp dl, byte [edi + 1]
je 0x1038f9f
inc dword [ebp + 0x14]
cmp dl, byte [edi + 2]
je 0x1038fa7
inc dword [ebp + 0x14]
add edi, 4
sub dword [ebp + 0x18], 1
jne 0x1038f88
cmp dword [ebp + 0x14], 0x40
jl 0x1039071
mov dword [ebp + 0x14], pe_nt_image_headers32
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 0x1038fc1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c