Function at 0x1039930
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 0xffffffff
cmp ecx, 0x400
jae 0x103998b
lea eax, [esi + 8]
push eax
add ecx, ecx
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax]
shr edx, 1
push edx
mov edx, dword [ebp + 0x20]
push edx
push ecx
call fcn.01031840
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x20]
cmp eax, 4
jne 0x10399a8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], 1
jmp 0x1039d87
cmp eax, 5
je 0x103a5dc
cmp eax, 1
jne 0x103a45d
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push ecx
push edi
push ebx
push edx
push eax
push esi
call fcn.01039080
push esi
push edi
push ebx
call fcn.01037f80
test eax, eax
jne 0x103a0fe
lea ecx, [ebx + 0x100]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [edi - 0x20]
mov dword [ebp - 8], edi
cmp ecx, edx
jae 0x1039d7b
cmp byte [ecx + ebx + 5], 0xc3
jne 0x1039bac
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
mov cl, byte [ebx]
xor edx, edx
xor edi, edi
lea esp, [esp]
cmp cl, byte [edi + ebx]
jne 0x1039a61
inc edi
cmp edi, 2
jl 0x1039a20
cmp cl, byte [ebx + 1]
je 0x1039a35
mov edx, 1
cmp cl, byte [ebx + 2]
je 0x1039a3b
inc edx
cmp cl, byte [ebx + 3]
je 0x1039a41
inc edx
cmp cl, byte [ebx + 4]
je 0x1039a47
inc edx
cmp cl, byte [ebx + 5]
je 0x1039a4d
inc edx
cmp cl, byte [ebx + 6]
je 0x1039a53
inc edx
cmp cl, byte [ebx + 7]
je 0x1039a59
inc edx
test edx, edx
jl 0x1039ba6
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov ebx, edx
shld edx, ecx, 8
shr ebx, 0x18
movzx edi, bl
mov ebx, dword [ebp + 0x20]
movzx ebx, byte [ebx]
xor edi, ebx
xor edx, dword [eax + edi*8 + 4]
mov ebx, dword [ebp + 0x20]
shl ecx, 8
xor ecx, dword [eax + edi*8]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov edi, edx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 1]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], edi
mov dword [esi + 8], ecx
mov edx, edi
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], edi
mov edx, edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], edi
mov edx, edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor edi, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov dword [ebp - 0x24], edi
mov edx, edi
movzx edi, byte [ebx + 6]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
xor edi, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], ecx
mov dword [ebp - 0x24], edi
movzx edi, byte [ebx + 7]
shr edx, 0x18
movzx edx, dl
xor edx, edi
mov edi, dword [ebp - 0x24]
shld edi, ecx, 8
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor edi, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0xc]
cmp ecx, edi
jae 0x1039bcc
mov al, byte [ecx + ebx]
cmp al, 0x60
je 0x1039bc7
cmp al, 0x66
je 0x1039bc7
cmp al, 0x9c
je 0x1039bc7
cmp al, 0x90
je 0x1039bc7
cmp al, 0x65
jne 0x1039bcc
inc ecx
cmp ecx, edi
jb 0x1039bb0
add ecx, ebx
cmp byte [ecx], 0xe8
jne 0x1039d7b
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp + 0x24], edx
mov dl, byte [ecx]
mov byte [ebp + 0xb], dl
lea esp, [esp]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + ecx]
jne 0x1039c3a
inc edi
cmp edi, 2
mov dword [ebp + 0x24], edi
jl 0x1039bf0
mov edi, 1
cmp dl, byte [ecx + 1]
jne 0x1039c0e
mov edi, dword [ebp - 0x24]
cmp dl, byte [ecx + 2]
je 0x1039c14
inc edi
cmp dl, byte [ecx + 3]
je 0x1039c1a
inc edi
cmp dl, byte [ecx + 4]
je 0x1039c20
inc edi
cmp dl, byte [ecx + 5]
je 0x1039c26
inc edi
cmp dl, byte [ecx + 6]
je 0x1039c2c
inc edi
cmp dl, byte [ecx + 7]
je 0x1039c32
inc edi
test edi, edi
jl 0x1039d7b
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
movzx ebx, byte [ebp + 0xb]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 + 2]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 [ebp - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 [ebp - 0x24], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x24], edx
movzx ebx, byte [ecx + 6]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 [esi + 8], edi
movzx ecx, byte [ecx + 7]
shr edx, 0x18
shld ebx, edi, 8
movzx edx, dl
xor edx, ecx
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
cmp dword [ebp + 0x14], edx
ja 0x103a0fe
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
sub edx, ebx
lea eax, [ecx - 0x80]
add ecx, edx
cmp ecx, eax
jbe 0x1039db3
mov edx, dword [ebp - 8]
jmp 0x1039da0
sub ecx, 0x200
sub edx, 0x200
cmp ecx, eax
ja 0x1039da0
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x58]
cmp dword [eax + 4], 0
mov dword [ebp + 8], 0
jbe 0x1039ea0
add eax, 8
mov dword [ebp + 0x24], eax
lea ecx, [ecx]
mov eax, dword [ebp - 8]
cmp eax, 0x100000
jbe 0x1039ddf
mov eax, 0x100000
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx + 0x14]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0102af10
mov edi, eax
sub edi, ebx
cmp edi, 0x14
jbe 0x1039e89
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffc00
cmp edi, ecx
jae 0x1039e89
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x1039e3c
lea ecx, [eax + eax*8]
mov eax, dword [esi + 0x58]
mov edx, dword [eax + ecx*4 + 0xe2c]
lea eax, [eax + ecx*4]
push edx
add eax, 0xe18
push eax
push 0x54
lea eax, [edi + ebx - 0x20]
push eax
call fcn.0102af10
test eax, eax
je 0x1039e89
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x18]
cmp ecx, 7
je 0x103a116
cmp ecx, 6
je 0x103a14b
mov eax, dword [eax + 0x20]
test eax, eax
je 0x1039e64
add eax, edi
cmp eax, dword [ebp + 0xc]
jae 0x1039e64
mov edi, eax
cmp ecx, 2
je 0x103a16d
mov eax, dword [ebp - 4]
cmp edi, eax
jbe 0x1039e80
test eax, eax
jne 0x1039e89
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
jmp 0x1039e86
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x58]
add dword [ebp + 0x24], 0x24
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ecx + 4]
jb 0x1039dd0
cmp dword [ebp - 0x14], 0
jne 0x103a0ea
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 0x10]
dec edi
mov dword [ebp - 8], edi
cmp ecx, eax
jbe 0x1039ec2
sub eax, ecx
add edi, eax
mov dword [ebp - 8], edi
cmp edi, 0x400
jbe 0x1039f00
lea ebx, [ebx]
mov al, byte [ebx + edi - 1]
test al, al
je 0x1039ef4
cmp al, 0x50
je 0x1039ef4
cmp al, 0x41
je 0x1039ef4
cmp al, 0x44
je 0x1039ef4
cmp al, 0x49
je 0x1039ef4
cmp al, 0x4e
je 0x1039ef4
cmp al, 0x47
je 0x1039ef4
cmp al, 0x58
jne 0x1039efd
dec edi
cmp edi, 0x400
ja 0x1039ed0
mov dword [ebp - 8], edi
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x1c]
shr edx, 1
add edx, dword [ebp + 0x28]
cmp ecx, edx
ja 0x1039f26
mov edx, edi
imul edx, edx, 0xb
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
cmp ecx, edx
jbe 0x103a08c
lea eax, [ecx + ebx]
xor edx, edx
mov dword [ebp + 8], eax
add eax, 0xfffffffe
lea ecx, [edx + 8]
cmp byte [eax + 2], 0
jne 0x1039f3b
inc edx
cmp byte [eax + 1], 0
jne 0x1039f42
inc edx
cmp byte [eax], 0
jne 0x1039f48
inc edx
cmp byte [eax - 1], 0
jne 0x1039f4f
inc edx
sub eax, 4
sub ecx, 1
jne 0x1039f34
cmp edx, 0x10
jl 0x103a08c
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp + 0x24], edx
mov dl, byte [ecx]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + ecx]
jne 0x1039fcf
inc edi
cmp edi, 4
mov dword [ebp + 0x24], edi
jl 0x1039f72
lea edi, [ecx + 1]
mov dword [ebp + 0x24], edi
mov dword [ebp - 0x1c], 4
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi - 1]
je 0x1039f9b
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi]
je 0x1039fa5
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 1]
je 0x1039fb0
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 2]
je 0x1039fbb
inc dword [ebp + 8]
add dword [ebp + 0x24], 4
sub dword [ebp - 0x1c], 1
jne 0x1039f90
cmp dword [ebp + 8], 1
jl 0x103a089
mov dword [ebp + 8], 4
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 + 8], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x1039fd6
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp - 8]
lea eax, [edi*8]
sub eax, edi
shr eax, 3
lea ecx, [edi - 0x200]
cmp ecx, eax
jbe 0x103a0a4
mov eax, ecx
mov edx, dword [ebp + 0x1c]
cmp edx, eax
jbe 0x103a0ea
mov ecx, 0xe
mov eax, 0x100caf8
lea edi, [edx + ebx + 0xe]
lea esp, [esp]
mov edx, dword [edi]
cmp edx, dword [eax]
jne 0x103a0e2
sub ecx, 4
add eax, 4
add edi, 4
cmp ecx, 4
jae 0x103a0c0
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x103a0e2
mov dl, byte [eax + 1]
cmp dl, byte [edi + 1]
je 0x103a0ea
xor dword [esi + 8], 2
xor dword [esi + 0xc], 0
cmp dword [ebp - 0x20], 0xffffffff
jne 0x103a1d3
cmp dword [ebp - 0x14], 0
jne 0x103af7c
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.01038a70
pop edi
pop esi
mov eax, 0x9641
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [esi + 0x44]
mov edx, dword [ebp + 0xc]
sub edx, ecx
mov eax, 0xcccccccd
mul edx
shr edx, 3
lea eax, [esi + 8]
push eax
add ecx, edx
push edx
add ecx, ebx
push ecx
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
push edx
call fcn.01031840
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x5c]
lea eax, [esi + 8]
push eax
mov eax, dword [edx]
push ecx
push ebx
push eax
call fcn.01031cb0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
push 0x28
push 0x100cacc
sub ecx, edi
push ecx
lea edx, [edi + ebx]
push edx
call fcn.01037ce0
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x103a1d0
cmp eax, 0x14
jbe 0x103a1d0
cmp eax, 0x800
jbe 0x103a19c
lea edi, [eax - 0x400]
mov eax, 3
cmp edi, 0x400
jbe 0x103a1c2
lea esp, [esp]
mov cl, byte [edi + ebx]
cmp cl, byte [edi + ebx - 1]
jne 0x103a1c2
dec edi
cmp edi, 0x400
ja 0x103a1b0
sub edi, 0x10
sub eax, 1
jne 0x103a1a1
sub edi, 0x200
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
lea edx, [ecx - 0x200]
mov dword [ebp + 0x24], eax
cmp eax, edx
jbe 0x103a1ee
mov eax, ecx
shr eax, 2
mov dword [ebp + 0x24], eax
add ebx, eax
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ebx]
lea ecx, [esi + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0x18], ebx
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ebx]
jne 0x103a265
inc edi
cmp edi, 0x20
mov dword [ebp + 8], edi
jl 0x103a208
lea edi, [ebx + 1]
mov dword [ebp + 8], edi
mov dword [ebp - 0x20], 0x20
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x103a231
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103a23b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x103a246
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x103a251
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp - 0x20], 1
jne 0x103a226
cmp dword [ebp + 0x1c], 8
jl 0x103a32a
mov dword [ebp + 0x1c], 0x20
lea esp, [esp]
movzx ebx, byte [ebx]
mov edx, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 0x18]
mov dword [ecx], edi
movzx ebx, byte [ebx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ecx], edi
movzx ebx, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 [ecx + 4], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ecx], edi
movzx ebx, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 0x18]
add ebx, 4
sub dword [ebp + 0x1c], 1
mov dword [ecx], edi
mov dword [ebp + 0x18], ebx
jne 0x103a270
mov eax, dword [esi + 0x5c]
mov edx, dword [ebp - 0xc]
mov edi, dword [eax]
mov bl, byte [edx + 0xc0]
add edx, 0xc0
xor eax, eax
mov dword [ebp + 8], edx
mov dword [ebp + 0x1c], eax
cmp bl, byte [eax + edx]
jne 0x103a392
inc eax
cmp eax, 8
jl 0x103a346
lea eax, [edx + 1]
mov dword [ebp + 0x18], 8
jmp 0x103a360
cmp bl, byte [eax - 1]
je 0x103a368
inc dword [ebp + 0x1c]
cmp bl, byte [eax]
je 0x103a36f
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 1]
je 0x103a377
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 2]
je 0x103a37f
inc dword [ebp + 0x1c]
add eax, 4
sub dword [ebp + 0x18], 1
jne 0x103a360
cmp dword [ebp + 0x1c], 2
jl 0x103b06e
mov dword [ebp + 0x1c], 8
lea esp, [esp]
mov edx, dword [ecx + 4]
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ecx], eax
movzx ebx, byte [ebx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov edx, ebx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 8]
add dword [ebp + 8], 4
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
sub dword [ebp + 0x1c], 1
mov dword [ecx], eax
mov dword [ecx + 4], ebx
jne 0x103a3a0
jmp 0x103b1d8
cmp eax, 2
jne 0x103af7c
mov eax, dword [esi + 0x28]
cmp eax, 0x100
jae 0x103a5c9
test eax, eax
jbe 0x103a5c9
add ecx, 0xffffffe0
cmp eax, ecx
jae 0x103a5c9
lea ecx, [eax + ebx]
mov al, byte [ecx]
cmp al, 0xe0
jb 0x103a5c9
cmp al, 0xf0
jae 0x103a5c9
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
xor edx, edx
mov dword [ebp + 8], edx
mov dword [ebp + 0x24], edx
mov dl, byte [ecx]
jmp 0x103a4b0
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + ecx]
jne 0x103a50f
inc edi
cmp edi, 4
mov dword [ebp + 0x24], edi
jl 0x103a4b0
lea edi, [ecx + 1]
mov dword [ebp + 0x24], edi
mov dword [ebp - 0x20], 4
mov edi, edi
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi - 1]
je 0x103a4db
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi]
je 0x103a4e5
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 1]
je 0x103a4f0
inc dword [ebp + 8]
mov edi, dword [ebp + 0x24]
cmp dl, byte [edi + 2]
je 0x103a4fb
inc dword [ebp + 8]
add dword [ebp + 0x24], 4
sub dword [ebp - 0x20], 1
jne 0x103a4d0
cmp dword [ebp + 8], 1
jl 0x103a5c9
mov dword [ebp + 8], 4
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 + 8], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x103a516
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.01037f80
test eax, eax
jne 0x103a0fe
mov edi, dword [ebp + 0xc]
mov eax, edi
cmp edi, 0x100000
jbe 0x103a5ee
mov eax, 0x100000
push 3
push 0x100ca98
push eax
push ebx
call fcn.0102af10
mov ecx, dword [ebp + 0x1c]
sub eax, ebx
cmp eax, 0x14
jbe 0x103a617
lea edx, [edi - 0x400]
cmp eax, edx
jae 0x103a617
add eax, 0x100
jmp 0x103a625
test ecx, ecx
je 0x103a622
mov eax, ecx
mov dword [ebp + 0x24], ecx
jmp 0x103a628
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x24], eax
lea ecx, [edi - 0x200]
cmp eax, ecx
jbe 0x103a63a
mov eax, edi
shr eax, 2
mov dword [ebp + 0x24], eax
mov ecx, edi
sub edi, eax
mov dword [ebp + 8], eax
lea eax, [ecx - 0xa]
cmp eax, 0x100000
jbe 0x103a650
mov eax, 0x100000
push 9
push 0x100cac0
push eax
push ebx
call fcn.0102af10
test eax, eax
je 0x103a66b
mov edi, dword [ebp + 0xc]
sub eax, ebx
sub edi, eax
jmp 0x103a66e
mov eax, dword [ebp + 8]
mov dword [ebp + 8], 0
mov ecx, dword [ebp + 0xc]
add ecx, 0xffffffe0
lea edx, [eax + ebx]
cmp eax, ecx
ja 0x103aa67
mov eax, edi
cmp edi, 0x100000
jbe 0x103a695
mov eax, 0x100000
push 3
push 0x100ca98
push eax
push edx
call fcn.0102af10
sub eax, ebx
mov dword [ebp - 8], eax
cmp eax, 0x14
jbe 0x103aa67
cmp eax, dword [ebp + 0xc]
jae 0x103aa67
push 5
push 0x100cab8
lea edi, [eax + ebx]
push 0x20
push edi
call fcn.0102af10
test eax, eax
jne 0x103a6e3
push 5
push 0x100cab0
push 0x20
push edi
call fcn.0102af10
test eax, eax
je 0x103a6fe
sub eax, dword [ebp - 8]
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 8]
push ecx
sub eax, ebx
push eax
mov eax, dword [edx]
push edi
push eax
call fcn.01031840
jmp 0x103aa3a
mov ecx, dword [esi + 0x5c]
mov eax, dword [ecx]
mov dl, byte [edi]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea ebx, [ebx]
cmp dl, byte [ecx + edi]
jne 0x103a754
inc ecx
cmp ecx, 2
jl 0x103a710
mov ecx, 1
cmp dl, byte [edi + 1]
jne 0x103a728
mov ecx, dword [ebp - 0x24]
cmp dl, byte [edi + 2]
je 0x103a72e
inc ecx
cmp dl, byte [edi + 3]
je 0x103a734
inc ecx
cmp dl, byte [edi + 4]
je 0x103a73a
inc ecx
cmp dl, byte [edi + 5]
je 0x103a740
inc ecx
cmp dl, byte [edi + 6]
je 0x103a746
inc ecx
cmp dl, byte [edi + 7]
je 0x103a74c
inc ecx
test ecx, ecx
jl 0x103a894
movzx ebx, byte [edi]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x14], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 1]
mov dword [ebp - 0x14], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 2]
mov dword [ebp - 0x14], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov dword [esi + 0xc], ebx
mov edx, ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, ebx
mov dword [ebp - 0x14], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ecx
movzx ebx, byte [edi + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0x14], edx
movzx ebx, byte [edi + 6]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shld ebx, ecx, 8
xor ebx, dword [eax + edx*8 + 4]
shl ecx, 8
xor ecx, dword [eax + edx*8]
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ecx
movzx edi, byte [edi + 7]
shr edx, 0x18
shld ebx, ecx, 8
movzx edx, dl
xor edx, edi
shl ecx, 8
xor ecx, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x5c]
lea ecx, [eax + ebx + 0x10]
mov eax, dword [edx]
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dl, byte [ecx]
lea ebx, [ebx]
mov edi, dword [ebp - 0x20]
cmp dl, byte [edi + ecx]
jne 0x103a8fa
inc edi
cmp edi, 2
mov dword [ebp - 0x20], edi
jl 0x103a8b0
mov edi, 1
cmp dl, byte [ecx + 1]
jne 0x103a8ce
mov edi, dword [ebp - 0x24]
cmp dl, byte [ecx + 2]
je 0x103a8d4
inc edi
cmp dl, byte [ecx + 3]
je 0x103a8da
inc edi
cmp dl, byte [ecx + 4]
je 0x103a8e0
inc edi
cmp dl, byte [ecx + 5]
je 0x103a8e6
inc edi
cmp dl, byte [ecx + 6]
je 0x103a8ec
inc edi
cmp dl, byte [ecx + 7]
je 0x103a8f2
inc edi
test edi, edi
jl 0x103aa3a
movzx ebx, byte [ecx]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [ebp - 0xc], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
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 - 0xc], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
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 + 2]
mov dword [ebp - 0xc], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
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 [ebp - 0xc], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
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 - 0xc], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
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 [ebp - 0xc], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shld ebx, edi, 8
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov edx, ebx
mov dword [esi + 0xc], ebx
mov dword [ebp - 0xc], edx
movzx ebx, byte [ecx + 6]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0xc]
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 [esi + 8], edi
movzx ecx, byte [ecx + 7]
shr edx, 0x18
shld ebx, edi, 8
movzx edx, dl
xor edx, ecx
shl edi, 8
xor edi, dword [eax + edx*8]
xor ebx, dword [eax + edx*8 + 4]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
add eax, 0x18
inc ecx
sub edi, eax
mov dword [ebp + 8], ecx
cmp ecx, 0xa
jb 0x103a675
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
push ebx
jmp 0x103b1ee
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x24]
lea edx, [eax + eax*4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
mov dword [ebp + 8], edx
lea ecx, [ecx]
mov ecx, dword [ebp + 0xc]
mov edx, 2
cmp edi, ecx
jae 0x103aaa5
lea esp, [esp]
mov al, byte [edi + ebx]
test al, al
je 0x103aa9b
cmp al, 0x90
jne 0x103aaa2
inc edi
cmp edi, ecx
jb 0x103aa90
jmp 0x103aaa5
add edi, 0x10
sub edx, 1
jne 0x103aa88
sub edi, 0x10
cmp edi, dword [ebp + 8]
ja 0x103aabc
lea eax, [ecx - 0x400]
cmp edi, eax
jbe 0x103aac2
mov edx, ecx
shr edx, 1
sub edi, edx
lea eax, [ecx - 0x200]
cmp edi, eax
jbe 0x103aad1
mov edi, ecx
shr edi, 2
push 0x200
lea eax, [edi + ebx]
push eax
call fcn.01037d10
fcomp qword [0x100caa8]
fnstsw ax
test ah, 5
jp 0x103ab48
mov edi, dword [ebp + 0x1c]
test edi, edi
ja 0x103aaf6
mov edi, dword [ebp + 0x18]
add edi, 0xffffff80
cmp dword [ebp - 0x1c], 0
jne 0x103ab0b
mov dword [ebp - 0x1c], 1
jmp 0x103aa80
mov eax, dword [ebp + 0xc]
shr eax, 1
cmp eax, 0x100000
jbe 0x103ab1c
mov eax, 0x100000
lea ecx, [esi + 8]
push ecx
push eax
mov eax, 0xaaaaaaab
mul dword [ebp + 0xc]
shr edx, 2
add edx, ebx
push edx
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
push eax
call fcn.01031840
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 0x200]
cmp edi, eax
jbe 0x103ab5a
mov edi, ecx
shr edi, 2
mov edx, dword [esi + 0x5c]
mov eax, dword [edx]
xor edx, edx
lea ecx, [edi + ebx]
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ecx]
mov dword [ebp - 0xc], ecx
nop
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ecx]
jne 0x103abcf
inc edi
cmp edi, 4
mov dword [ebp + 8], edi
jl 0x103ab70
lea edi, [ecx + 1]
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], 4
mov edi, edi
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x103ab9b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103aba5
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x103abb0
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x103abbb
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp + 0x18], 1
jne 0x103ab90
cmp dword [ebp + 0x1c], 1
jl 0x103ac89
mov dword [ebp + 0x1c], 4
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 0x103abd6
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x5c]
mov eax, dword [eax]
add ecx, 0x40
xor edx, edx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ecx]
mov edi, edi
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ecx]
jne 0x103ad15
inc edi
cmp edi, 3
mov dword [ebp + 8], edi
jl 0x103aca0
lea edi, [ecx + 1]
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], 2
mov edi, edi
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x103accb
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103acd5
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x103ace0
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x103aceb
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 3]
je 0x103acf6
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 4]
je 0x103ad01
inc dword [ebp + 0x1c]
add dword [ebp + 8], 6
sub dword [ebp + 0x18], 1
jne 0x103acc0
cmp dword [ebp + 0x1c], 0
jl 0x103ae23
mov dword [ebp + 0x1c], 2
lea esp, [esp]
movzx ebx, byte [ecx]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 + 2]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 + 3]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 4]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 5]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, edi, 8
xor ebx, dword [eax + edx*8 + 4]
shl edi, 8
xor edi, dword [eax + edx*8]
add ecx, 6
sub dword [ebp + 0x1c], 1
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
jne 0x103ad20
mov ebx, dword [ebp + 0x20]
mov edx, dword [esi + 0x5c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx]
sub ecx, 0xffffff80
xor edx, edx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 8], edx
mov dl, byte [ecx]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + ecx]
jne 0x103ae95
inc edi
cmp edi, 0x10
mov dword [ebp + 8], edi
jl 0x103ae38
lea edi, [ecx + 1]
mov dword [ebp + 8], edi
mov dword [ebp + 0x18], 0x10
mov edi, dword [ebp + 8]
cmp dl, byte [edi - 1]
je 0x103ae61
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi]
je 0x103ae6b
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 1]
je 0x103ae76
inc dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
cmp dl, byte [edi + 2]
je 0x103ae81
inc dword [ebp + 0x1c]
add dword [ebp + 8], 4
sub dword [ebp + 0x18], 1
jne 0x103ae56
cmp dword [ebp + 0x1c], 4
jl 0x103af53
mov dword [ebp + 0x1c], 0x10
lea esp, [esp]
mov edx, dword [esi + 0xc]
movzx ebx, byte [ecx]
mov edi, dword [esi + 8]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 - 0x24], edx
mov dword [esi + 8], edi
movzx ebx, byte [ecx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
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 0x103aea0
mov ebx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x2c]
push ecx
mov ecx, dword [ebp + 0x28]
push edx
push ebx
push eax
push ecx
push esi
call fcn.01038b60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
lea edx, [ecx - 0x400]
lea edi, [eax + 0x200]
cmp eax, edx
jbe 0x103afa4
mov edi, ecx
shr edi, 2
cmp edi, 0x1000
jbe 0x103afa4
mov edi, 0x1000
lea edx, [ecx + ecx*4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
mov dword [ebp + 8], edx
mov eax, edi
cmp edi, ecx
jae 0x103afd1
lea ebx, [ebx]
mov dl, byte [eax + ebx]
test dl, dl
je 0x103afcc
cmp dl, 0x90
jne 0x103afd1
inc eax
cmp eax, ecx
jb 0x103afc0
add eax, 0x10
cmp eax, ecx
jb 0x103afe8
mov eax, ecx
shr eax, 1
cmp eax, 0x400
jbe 0x103afe8
mov eax, 0x400
mov edi, eax
cmp eax, ecx
jae 0x103b000
mov edi, edi
mov al, byte [edi + ebx]
test al, al
je 0x103affb
cmp al, 0x90
jne 0x103b000
inc edi
cmp edi, ecx
jb 0x103aff0
mov dword [ebp - 4], edi
cmp edi, dword [ebp + 8]
jbe 0x103b01d
cmp dword [ebp - 0xc], 0
jne 0x103b060
mov eax, ecx
shr eax, 1
sub edi, eax
mov dword [ebp - 0xc], 1
jmp 0x103afb4
mov ecx, dword [ebp + 0xc]
sub ecx, edi
push ecx
lea edx, [edi + ebx]
push edx
call fcn.01037d10
fcomp qword [0x100c1b0]
fnstsw ax
test ah, 5
jp 0x103a1d3
cmp dword [ebp - 0xc], 0
jne 0x103b060
lea ecx, [edi + edi]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp + 0xc]
shr edx, 1
sub edi, edx
mov dword [ebp - 0xc], 1
jmp 0x103afb4
pop edi
pop esi
mov eax, 5
pop ebx
mov esp, ebp
pop ebp
ret 0x28
mov ebx, dword [ebp + 0x24]
lea edx, [ebx + ebx]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [ebp + 0xc]
shr edx, 1
add eax, 0xffffffc0
cmp edx, eax
jbe 0x103b0b4
mov eax, 0xaaaaaaab
mul ebx
mov eax, dword [ebp + 0xc]
shr edx, 1
sub eax, edx
cmp eax, 0x100000
jbe 0x103b0a1
mov eax, 0x100000
push ecx
mov ecx, dword [ebp + 0x20]
push eax
add edx, ecx
push edx
push edi
call fcn.01031840
jmp 0x103b1d8
mov eax, dword [ebp + 0x20]
mov bl, byte [edx + eax]
add edx, eax
xor eax, eax
mov dword [ebp + 8], edx
mov dword [ebp + 0x1c], eax
cmp bl, byte [eax + edx]
jne 0x103b112
inc eax
cmp eax, 0x10
jl 0x103b0c4
lea eax, [edx + 1]
mov dword [ebp + 0x18], 0x10
lea esp, [esp]
cmp bl, byte [eax - 1]
je 0x103b0e8
inc dword [ebp + 0x1c]
cmp bl, byte [eax]
je 0x103b0ef
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 1]
je 0x103b0f7
inc dword [ebp + 0x1c]
cmp bl, byte [eax + 2]
je 0x103b0ff
inc dword [ebp + 0x1c]
add eax, 4
sub dword [ebp + 0x18], 1
jne 0x103b0e0
cmp dword [ebp + 0x1c], 4
jl 0x103b1d8
mov dword [ebp + 0x1c], 0x10
lea esp, [esp]
mov edx, dword [ecx + 4]
mov ebx, dword [ebp + 8]
movzx ebx, byte [ebx]
mov eax, dword [ecx]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ecx], eax
movzx ebx, byte [ebx + 1]
mov dword [ebp - 0x24], edx
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov dword [ecx + 4], ebx
mov edx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 2]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
mov edx, ebx
mov dword [ecx + 4], ebx
mov ebx, dword [ebp + 8]
add dword [ebp + 8], 4
mov dword [ebp - 0x24], edx
mov dword [ecx], eax
movzx ebx, byte [ebx + 3]
shr edx, 0x18
movzx edx, dl
xor edx, ebx
mov ebx, dword [ebp - 0x24]
shld ebx, eax, 8
xor ebx, dword [edi + edx*8 + 4]
shl eax, 8
xor eax, dword [edi + edx*8]
sub dword [ebp + 0x1c], 1
mov dword [ecx], eax
mov dword [ecx + 4], ebx
jne 0x103b120
cmp dword [ebp - 0x14], 0
jne 0x103b1fc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x20]
push edx
push eax
push ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 0x28]
push edx
push eax
push esi
call fcn.01038b60
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x28