Function at 0x1037270
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 0x10372c7
cmp edi, 0x400
jbe 0x10372c7
mov edi, edi
cmp byte [ebx + edi - 1], cl
jne 0x10372b8
cmp byte [edi + ebx - 2], cl
jne 0x10372b8
cmp byte [edi + ebx - 3], cl
jne 0x10372b8
cmp byte [edi + ebx - 4], cl
je 0x10372c3
dec edi
cmp edi, 0x400
ja 0x10372a0
jmp 0x10372c4
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 0x1037426
cmp eax, dword [ebp + 0x18]
jae 0x1037426
add ecx, ebx
xor eax, eax
add ecx, edx
mov edx, ecx
lea ecx, [ecx]
cmp byte [edx], 0xe8
je 0x1037301
inc eax
dec edx
cmp eax, 0x10
jb 0x10372f0
jmp 0x1037426
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 0x1037362
inc edx
cmp edx, 4
jl 0x1037311
lea edx, [ecx + 1]
mov dword [ebp + 8], 4
jmp 0x103732a
mov bl, byte [ecx]
cmp bl, byte [edx - 1]
je 0x1037334
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx]
je 0x103733d
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 1]
je 0x1037347
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 2]
je 0x103734f
inc dword [ebp + 0x20]
add edx, 4
sub dword [ebp + 8], 1
jne 0x1037328
cmp dword [ebp + 0x20], 1
jl 0x1037423
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 0x1037370
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 0x1037440
cmp eax, 0x400
jbe 0x1037440
lea edi, [eax - 0x20]
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x103747e
mov cl, byte [edi + ebx + 3]
cmp cl, byte [edi + ebx + 4]
jne 0x103747e
test al, al
je 0x103747e
cmp al, 0xff
je 0x103747e
cmp al, 0xcc
je 0x103747e
cmp edi, 0x400
jbe 0x103749e
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x103747b
dec edi
cmp edi, 0x400
ja 0x1037467
jmp 0x103749e
sub edi, 0x10
cmp edi, 0x400
jbe 0x103749e
mov al, byte [edi + ebx]
test al, al
je 0x1037495
cmp al, 0xff
je 0x1037495
cmp al, 0xcc
jne 0x103749e
dec edi
cmp edi, 0x400
ja 0x1037486
sub edi, 0x20
xor eax, eax
lea ecx, [edi + ebx]
cmp byte [ecx + eax], 0
jne 0x10374ad
inc edx
cmp byte [ecx + eax + 1], 0
jne 0x10374b5
inc edx
cmp byte [ecx + eax + 2], 0
jne 0x10374bd
inc edx
cmp byte [ecx + eax + 3], 0
jne 0x10374c5
inc edx
add eax, 4
cmp eax, 0x20
jb 0x10374a6
cmp edx, 0xa
jg 0x1037781
lea eax, [edi - 0x80]
cmp edi, eax
jbe 0x1037781
mov edx, dword [ebp - 0xc]
cmp byte [edi + ebx], 0
je 0x10374eb
inc edx
dec edi
cmp edi, eax
ja 0x10374e4
cmp edx, 0x30
jl 0x1037781
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 0x1037552
inc edi
cmp edi, 8
jl 0x1037505
lea edi, [ecx + 1]
mov dword [ebp + 0x20], 8
lea ebx, [ebx]
cmp dl, byte [edi - 1]
je 0x1037528
inc dword [ebp + 0x1c]
cmp dl, byte [edi]
je 0x103752f
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 1]
je 0x1037537
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 2]
je 0x103753f
inc dword [ebp + 0x1c]
add edi, 4
sub dword [ebp + 0x20], 1
jne 0x1037520
cmp dword [ebp + 0x1c], 2
jl 0x1037610
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 0x1037560
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esi + 0x3c]
cmp ebx, ecx
jae 0x1037781
test ebx, ebx
jbe 0x1037781
mov eax, ecx
sub eax, ebx
cmp eax, 0x1000
jb 0x1037781
cmp eax, 0x2000
jae 0x1037781
mov eax, dword [ebp + 0x14]
lea edi, [eax + ecx - 0x400]
push 0x400
push edi
call fcn.01036420
fcomp qword [0x100bf98]
fnstsw ax
test ah, 0x41
je 0x103766f
mov ecx, dword [ebp + 0x14]
cmp byte [ebx + ecx], 0xe8
jne 0x1037781
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 0x10376ca
inc edi
cmp edi, 0x100
jl 0x1037680
lea edi, [ecx + 1]
mov dword [ebp + 0x18], 0x100
cmp dl, byte [edi - 1]
je 0x10376a0
inc dword [ebp + 0x14]
cmp dl, byte [edi]
je 0x10376a7
inc dword [ebp + 0x14]
cmp dl, byte [edi + 1]
je 0x10376af
inc dword [ebp + 0x14]
cmp dl, byte [edi + 2]
je 0x10376b7
inc dword [ebp + 0x14]
add edi, 4
sub dword [ebp + 0x18], 1
jne 0x1037698
cmp dword [ebp + 0x14], 0x40
jl 0x1037781
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 0x10376d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c