Function at 0x10383a0
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 0x10383f7
cmp edi, 0x400
jbe 0x10383f7
mov edi, edi
cmp byte [ebx + edi - 1], cl
jne 0x10383e8
cmp byte [edi + ebx - 2], cl
jne 0x10383e8
cmp byte [edi + ebx - 3], cl
jne 0x10383e8
cmp byte [edi + ebx - 4], cl
je 0x10383f3
dec edi
cmp edi, 0x400
ja 0x10383d0
jmp 0x10383f4
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 0x1038556
cmp eax, dword [ebp + 0x18]
jae 0x1038556
add ecx, ebx
xor eax, eax
add ecx, edx
mov edx, ecx
lea ecx, [ecx]
cmp byte [edx], 0xe8
je 0x1038431
inc eax
dec edx
cmp eax, 0x10
jb 0x1038420
jmp 0x1038556
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 0x1038492
inc edx
cmp edx, 4
jl 0x1038441
lea edx, [ecx + 1]
mov dword [ebp + 8], 4
jmp 0x103845a
mov bl, byte [ecx]
cmp bl, byte [edx - 1]
je 0x1038464
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx]
je 0x103846d
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 1]
je 0x1038477
inc dword [ebp + 0x20]
mov bl, byte [ecx]
cmp bl, byte [edx + 2]
je 0x103847f
inc dword [ebp + 0x20]
add edx, 4
sub dword [ebp + 8], 1
jne 0x1038458
cmp dword [ebp + 0x20], 1
jl 0x1038553
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 0x10384a0
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 0x1038570
cmp eax, 0x400
jbe 0x1038570
lea edi, [eax - 0x20]
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x10385ae
mov cl, byte [edi + ebx + 3]
cmp cl, byte [edi + ebx + 4]
jne 0x10385ae
test al, al
je 0x10385ae
cmp al, 0xff
je 0x10385ae
cmp al, 0xcc
je 0x10385ae
cmp edi, 0x400
jbe 0x10385ce
mov al, byte [edi + ebx]
cmp al, byte [edi + ebx + 1]
jne 0x10385ab
dec edi
cmp edi, 0x400
ja 0x1038597
jmp 0x10385ce
sub edi, 0x10
cmp edi, 0x400
jbe 0x10385ce
mov al, byte [edi + ebx]
test al, al
je 0x10385c5
cmp al, 0xff
je 0x10385c5
cmp al, 0xcc
jne 0x10385ce
dec edi
cmp edi, 0x400
ja 0x10385b6
sub edi, 0x20
xor eax, eax
lea ecx, [edi + ebx]
cmp byte [ecx + eax], 0
jne 0x10385dd
inc edx
cmp byte [ecx + eax + 1], 0
jne 0x10385e5
inc edx
cmp byte [ecx + eax + 2], 0
jne 0x10385ed
inc edx
cmp byte [ecx + eax + 3], 0
jne 0x10385f5
inc edx
add eax, 4
cmp eax, 0x20
jb 0x10385d6
cmp edx, 0xa
jg 0x10388b1
lea eax, [edi - 0x80]
cmp edi, eax
jbe 0x10388b1
mov edx, dword [ebp - 0xc]
cmp byte [edi + ebx], 0
je 0x103861b
inc edx
dec edi
cmp edi, eax
ja 0x1038614
cmp edx, 0x30
jl 0x10388b1
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 0x1038682
inc edi
cmp edi, 8
jl 0x1038635
lea edi, [ecx + 1]
mov dword [ebp + 0x20], 8
lea ebx, [ebx]
cmp dl, byte [edi - 1]
je 0x1038658
inc dword [ebp + 0x1c]
cmp dl, byte [edi]
je 0x103865f
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 1]
je 0x1038667
inc dword [ebp + 0x1c]
cmp dl, byte [edi + 2]
je 0x103866f
inc dword [ebp + 0x1c]
add edi, 4
sub dword [ebp + 0x20], 1
jne 0x1038650
cmp dword [ebp + 0x1c], 2
jl 0x1038740
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 0x1038690
mov ecx, dword [ebp + 0x18]
mov ebx, dword [esi + 0x3c]
cmp ebx, ecx
jae 0x10388b1
test ebx, ebx
jbe 0x10388b1
mov eax, ecx
sub eax, ebx
cmp eax, 0x1000
jb 0x10388b1
cmp eax, 0x2000
jae 0x10388b1
mov eax, dword [ebp + 0x14]
lea edi, [eax + ecx - 0x400]
push 0x400
push edi
call fcn.01037550
fcomp qword [0x100c938]
fnstsw ax
test ah, 0x41
je 0x103879f
mov ecx, dword [ebp + 0x14]
cmp byte [ebx + ecx], 0xe8
jne 0x10388b1
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 0x10387fa
inc edi
cmp edi, 0x100
jl 0x10387b0
lea edi, [ecx + 1]
mov dword [ebp + 0x18], pe_nt_image_headers32
cmp dl, byte [edi - 1]
je 0x10387d0
inc dword [ebp + 0x14]
cmp dl, byte [edi]
je 0x10387d7
inc dword [ebp + 0x14]
cmp dl, byte [edi + 1]
je 0x10387df
inc dword [ebp + 0x14]
cmp dl, byte [edi + 2]
je 0x10387e7
inc dword [ebp + 0x14]
add edi, 4
sub dword [ebp + 0x18], 1
jne 0x10387c8
cmp dword [ebp + 0x14], 0x40
jl 0x10388b1
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 0x1038801
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c