Function at 0x1007aae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100b5004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x64
lea eax, [ebp - 0x74]
mov edi, ecx
push 0
xor bl, bl
mov dword [ebp - 0x84], edi
push eax
mov esi, edx
mov dword [ebp - 0x7c], ebx
call fcn.1007d2d0
mov edx, dword [ebp + 8]
mov eax, 0xfeff
and word [edi + 0x3de], ax
add esp, 0xc
cmp edx, 0x23
jb 0x1007abea
movzx ecx, byte [esi + 0x22]
lea eax, [esi + 2]
mov dword [ebp - 0x70], eax
lea eax, [esi + 0x23]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
lea eax, [ecx + 0x23]
mov dword [ebp - 0x3c], esi
lea ecx, [edx - 1]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], eax
cmp eax, ecx
ja 0x1007abea
movzx ecx, byte [eax + esi]
inc eax
add eax, esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x78]
inc eax
add eax, ecx
lea ecx, [edx - 2]
mov dword [ebp - 0x78], eax
cmp eax, ecx
ja 0x1007abea
movzx ecx, byte [eax + esi]
movzx eax, byte [eax + esi + 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x78]
add eax, 2
mov dword [ebp - 0x5c], ecx
add eax, esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x78]
add eax, 2
add eax, ecx
lea ecx, [edx - 1]
cmp eax, ecx
ja 0x1007abea
movzx ecx, byte [eax + esi]
lea edi, [esi + 1]
add edi, eax
mov dword [ebp - 0x54], ecx
inc eax
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x84]
add ecx, eax
lea eax, [edx - 2]
cmp ecx, eax
jae 0x1007ac00
movzx eax, byte [ecx + esi + 1]
lea ebx, [esi + 2]
mov dword [ebp - 0x78], eax
add ebx, ecx
movzx eax, byte [ecx + esi]
add ecx, 2
shl eax, 8
or dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
add ecx, eax
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], eax
cmp ecx, edx
jbe 0x1007ac06
mov eax, 0xfffffeb8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
cmp ecx, edx
jne 0x1007abea
mov dword [ebp - 0x38], ecx
movzx ecx, word [edi + 0x20e]
mov eax, ecx
shr eax, 8
cmp cl, 3
jne 0x1007ac22
cmp al, 4
jae 0x1007ac33
cmp cl, 0xfe
jne 0x1007acdb
cmp al, 0xfc
ja 0x1007acdb
push dword [ebp - 0x48]
lea eax, [ebp - 0x80]
mov word [ebp - 0x7c], cx
push dword [ebp - 0x78]
mov edx, 0x2b
lea ecx, [ebp - 0x8c]
push eax
call fcn.1007a5f0
add esp, 0xc
test eax, eax
jne 0x1007abef
cmp dword [ebp - 0x80], eax
jne 0x1007ac64
xor bl, bl
mov dword [ebp - 0x7c], ebx
jmp 0x1007acdb
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x7c]
push 0
push 0
push eax
push 1
push dword [ebp - 0x8c]
mov ecx, edi
call fcn.100587f0
add esp, 0x14
test eax, eax
jne 0x1007abef
mov ax, word [ebp - 0x7c]
cmp al, 3
jne 0x1007ac99
cmp ah, 4
jae 0x1007aca7
xor ebx, ebx
mov dword [ebp - 0x7c], ebx
cmp al, 0xfe
jne 0x1007acaf
cmp ah, 0xfc
ja 0x1007acaf
mov ebx, 1
mov dword [ebp - 0x7c], ebx
test bl, bl
je 0x1007acdb
push dword [ebp - 0x48]
lea eax, [ebp - 0x88]
mov edx, 0x2c
push dword [ebp - 0x78]
lea ecx, [ebp - 0x44]
push eax
call fcn.1007a5f0
add esp, 0xc
test eax, eax
jne 0x1007abef
mov esi, dword [ebp - 0x74]
cmp byte [esi], 0xfe
je 0x1007acf6
mov eax, 0xfffffeba
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 1]
cmp al, 0xfd
je 0x1007ad01
cmp al, 0xff
jne 0x1007ace0
mov eax, dword [ebp - 0x64]
test bl, bl
je 0x1007ad2f
test eax, eax
jne 0x1007ad19
cmp dword [ebp - 0x54], 1
jne 0x1007ad19
mov ecx, dword [ebp - 0x50]
cmp byte [ecx], al
je 0x1007ad37
mov eax, 0xfffffe57
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x1007adc2
mov edx, dword [ebp - 0x44]
test edx, edx
jne 0x1007ad63
test bl, bl
je 0x1007aef0
lea edx, [ebp - 0x74]
mov ecx, edi
call fcn.1007a6a0
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x1007adc2
cmp edx, 3
jae 0x1007ad82
mov eax, 0xffffff7c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x40]
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
lea eax, [edx - 2]
cmp eax, ecx
jne 0x1007ad6c
lea eax, [edx - 2]
mov ecx, edi
push eax
lea edx, [esi + 2]
call fcn.1003e630
add esp, 4
test eax, eax
jns 0x1007adba
cmp eax, 0xfffffe07
jne 0x1007abef
test eax, eax
setg al
jmp 0x1007ae8c
cmp eax, 0x20
jne 0x1007aef0
test byte [ebp - 0x14], 1
jne 0x1007adee
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
lea edx, [ebp - 0x74]
call fcn.1007a390
add esp, 4
test eax, eax
jne 0x1007abef
or byte [ebp - 0x14], 1
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x33]
sub ecx, eax
mov dword [ebp - 0x78], 8
mov dword [ebp - 0x80], ecx
lea edx, [ebp - 0x36]
mov ebx, dword [ebp - 0x80]
lea ecx, [ebp - 0x34]
sub ecx, eax
lea esi, [eax + 2]
mov dword [ebp - 0x90], ecx
xor edi, edi
lea ecx, [ebp - 0x35]
sub ecx, eax
sub edx, eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x88], edx
nop dword [eax]
movzx edx, byte [edx + esi]
lea esi, [esi + 4]
movzx ecx, byte [ecx + esi - 4]
movzx eax, byte [esi - 6]
xor edx, eax
movzx eax, byte [esi - 5]
xor ecx, eax
movzx eax, byte [esi - 3]
or edx, ecx
movzx ecx, byte [ebx + esi - 4]
xor ecx, eax
mov eax, dword [ebp - 0x90]
or edx, ecx
movzx ecx, byte [eax + esi - 4]
movzx eax, byte [esi - 4]
xor ecx, eax
or edx, ecx
mov ecx, dword [ebp - 0x94]
or edi, edx
sub dword [ebp - 0x78], 1
mov edx, dword [ebp - 0x88]
jne 0x1007ae30
mov ebx, dword [ebp - 0x7c]
test edi, edi
mov edi, dword [ebp - 0x84]
sete al
xor esi, esi
test al, al
jne 0x1007aeae
test bl, bl
je 0x1007aef0
mov esi, 0xfffffe57
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
mov eax, 0x100
mov ecx, edi
or word [edi + 0x3de], ax
test bl, bl
je 0x1007aed8
call fcn.1002b0d0
mov esi, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
call fcn.1002af30
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x14], 1
jne 0x1007af11
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
lea edx, [ebp - 0x74]
call fcn.1007a390
mov esi, eax
add esp, 4
test esi, esi
jne 0x1007af21
or byte [ebp - 0x14], 1
push ecx
lea edx, [ebp - 0x34]
mov ecx, edi
call fcn.1003a230
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc9e
mov esp, ebp
pop ebp
ret