Function at 0x100042a7
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp - 0x4c]
lea edi, [esi + 1]
sub eax, esi
mov esi, dword [ebp - 0x48]
lea eax, [eax + esi - 8]
test eax, eax
je 0x1000413e
movzx edx, byte [ebp - 0x20]
movzx ecx, byte [ebp - 0x1e]
cmp dl, 0x3f
sete bl
mov byte [ebp - 0x34], cl
mov esi, ebx
movzx ebx, byte [ebp - 0x1f]
cmp bl, 0x3f
mov byte [ebp - 0x2c], bl
sete byte [ebp - 0x30]
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1d]
sete byte [ebp - 0x39]
mov byte [ebp - 0x3a], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1c]
sete byte [ebp - 0x3b]
mov byte [ebp - 0x3c], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1b]
sete byte [ebp - 0x41]
mov byte [ebp - 0x42], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x1a]
sete byte [ebp - 0x43]
mov byte [ebp - 0x44], cl
cmp cl, 0x3f
movzx ecx, byte [ebp - 0x19]
sete byte [ebp - 0x51]
cmp cl, 0x3f
mov byte [ebp - 0x52], cl
mov ecx, esi
sete byte [ebp - 0x53]
add eax, edi
jmp 0x10003f39
add edi, 1
cmp edi, eax
je 0x1000413e
mov esi, edi
cmp byte [edi], dl
je 0x10003f43
test cl, cl
je 0x10003f2e
movzx ebx, byte [ebp - 0x2c]
cmp byte [edi + 1], bl
je 0x10003f52
cmp byte [ebp - 0x30], 0
je 0x10003f2e
movzx ebx, byte [ebp - 0x34]
cmp byte [edi + 2], bl
je 0x10003f61
cmp byte [ebp - 0x39], 0
je 0x10003f2e
movzx ebx, byte [ebp - 0x3a]
cmp byte [edi + 3], bl
je 0x10003f70
cmp byte [ebp - 0x3b], 0
je 0x10003f2e
movzx ebx, byte [ebp - 0x3c]
cmp byte [edi + 4], bl
je 0x10003f7f
cmp byte [ebp - 0x41], 0
je 0x10003f2e
movzx ebx, byte [ebp - 0x42]
cmp byte [edi + 5], bl
je 0x10003f8e
cmp byte [ebp - 0x43], 0
je 0x10003f2e
movzx ebx, byte [ebp - 0x44]
cmp byte [edi + 6], bl
je 0x10003f9d
cmp byte [ebp - 0x51], 0
je 0x10003f2e
movzx ebx, byte [ebp - 0x52]
cmp byte [edi + 7], bl
je 0x10003fac
cmp byte [ebp - 0x53], 0
je 0x10003f2e
mov eax, dword [edi]
lea ebx, [edi + 8]
mov ecx, eax
mov edx, eax
shr edx, 0x18
shl ecx, 0x18
add ecx, edx
movzx edx, ah
shr eax, 8
shl edx, 0x10
and eax, 0xff00
add edx, ecx
add eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x34]
cmp dword [edi + 8], eax
je 0x100041f0
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x10003e9e
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
add eax, ecx
mov dword [ebp - 0x34], eax
add edx, ecx
cmp eax, dword [ebp - 0x58]
ja 0x10004373
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 1]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x10004131
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
lea eax, [ecx + eax + 0x10]
cmp ebx, eax
lea eax, [edi + 0x18]
setae cl
cmp edx, eax
setae al
or cl, al
je 0x10004353
cmp dword [ebp - 0x30], 0xe
jbe 0x10004353
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
mov eax, edx
and edi, 0xfffffff0
add edi, edx
lea esi, [esi]
movdqu xmm2, xmmword [ecx]
add eax, 0x10
add ecx, 0x10
movups xmmword [eax - 0x10], xmm2
cmp eax, edi
jne 0x1000404e
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
and eax, 0xfffffff0
lea ecx, [ebx + eax]
sub edi, eax
add edx, eax
cmp dword [ebp - 0x2c], eax
je 0x10004131
movzx eax, byte [ecx]
mov byte [edx], al
test edi, edi
je 0x10004131
movzx eax, byte [ecx + 1]
mov byte [edx + 1], al
cmp edi, 1
je 0x10004131
movzx eax, byte [ecx + 2]
mov byte [edx + 2], al
cmp edi, 2
je 0x10004131
movzx eax, byte [ecx + 3]
mov byte [edx + 3], al
cmp edi, 3
je 0x10004131
movzx eax, byte [ecx + 4]
mov byte [edx + 4], al
cmp edi, 4
je 0x10004131
movzx eax, byte [ecx + 5]
mov byte [edx + 5], al
cmp edi, 5
je 0x10004131
movzx eax, byte [ecx + 6]
mov byte [edx + 6], al
cmp edi, 6
je 0x10004131
movzx eax, byte [ecx + 7]
mov byte [edx + 7], al
cmp edi, 7
je 0x10004131
movzx eax, byte [ecx + 8]
mov byte [edx + 8], al
cmp edi, 8
je 0x10004131
movzx eax, byte [ecx + 9]
mov byte [edx + 9], al
cmp edi, 9
je 0x10004131
movzx eax, byte [ecx + 0xa]
mov byte [edx + 0xa], al
cmp edi, 0xa
je 0x10004131
movzx eax, byte [ecx + 0xb]
mov byte [edx + 0xb], al
cmp edi, 0xb
je 0x10004131
movzx eax, byte [ecx + 0xc]
mov byte [edx + 0xc], al
cmp edi, 0xc
je 0x10004131
movzx eax, byte [ecx + 0xd]
mov byte [edx + 0xd], al
cmp edi, 0xd
je 0x10004131
movzx eax, byte [ecx + 0xe]
mov byte [edx + 0xe], al
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
jmp 0x10003e9e
mov edx, dword [ebp - 0x38]
xor eax, eax
test edx, edx
je 0x100041e4
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax + 4]
mov eax, dword [eax + 8]
test al, 3
je 0x10004165
lea esi, [esi]
sub eax, 1
test al, 3
jne 0x1000415e
test eax, eax
je 0x100041d4
lea ebx, [eax - 1]
cmp ebx, 0xf
jbe 0x100044cf
mov edx, dword [ebp - 0x38]
shr ebx, 2
movd xmm5, edi
xor ecx, ecx
add ebx, 1
pshufd xmm1, xmm5, 0
mov esi, ebx
shr esi, 2
add edx, 0x10
movdqu xmm0, xmmword [edx]
add ecx, 1
add edx, 0x10
pxor xmm0, xmm1
movups xmmword [edx - 0x10], xmm0
cmp esi, ecx
ja 0x10004191
mov ecx, ebx
and ecx, 0xfffffffc
lea edx, [ecx*4]
cmp ebx, ecx
je 0x100041d4
mov ebx, dword [ebp - 0x38]
lea ecx, [edx + 4]
xor dword [ebx + edx + 0x10], edi
cmp eax, ecx
jbe 0x100041d4
xor dword [ebx + edx + 0x14], edi
lea ecx, [edx + 8]
cmp ecx, eax
jae 0x100041d4
xor dword [ebx + edx + 0x18], edi
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x38]
mov dword [eax], esi
mov eax, dword [ebp - 0x40]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x10003fec
mov eax, dword [edi + 0x10]
mov dword [esp], 0x40
add eax, 0x10
mov dword [ebp - 0x58], eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x64]
call dword [eax + 0x64]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
sub esp, 8
lea edx, [eax - 1]
mov dword [ebp - 0x30], edx
test eax, eax
je 0x10004345
mov eax, dword [ebp - 0x38]
add edi, 0x18
cmp eax, edi
mov edi, eax
lea eax, [eax + 0x10]
setae dl
cmp ebx, eax
setae al
or dl, al
je 0x100044e4
cmp dword [ebp - 0x30], 0xe
jbe 0x100044e4
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
mov eax, edi
and ecx, 0xfffffff0
add ecx, edi
movdqu xmm3, xmmword [edx]
add eax, 0x10
add edx, 0x10
movups xmmword [eax - 0x10], xmm3
cmp eax, ecx
jne 0x1000425f
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
and ecx, 0xfffffff0
lea edx, [ebx + ecx]
sub edi, ecx
add eax, ecx
cmp dword [ebp - 0x2c], ecx
je 0x10004345
movzx ecx, byte [edx]
mov byte [eax], cl
test edi, edi
je 0x10004345
movzx ecx, byte [edx + 1]
mov byte [eax + 1], cl
cmp edi, 1
je 0x10004345
add byte [eax], al
invalid
add byte [eax], al
add byte [edi], cl
mov dh, 0x4a
add cl, byte [eax - 0x7cfdb8]
add cl, byte [edi]
test byte [ebx + 0xf000000], cl
mov dh, 0x4a
add ecx, dword [eax - 0x7cfcb8]
add esi, dword [edi + edi*2 + 0xf]
mov dh, 0x4a
add al, 0x88
dec eax
add al, 0x83
inc dword [esp + esi*2]
jae 0x100042e2
movzx ecx, byte [edx + 2]
mov byte [eax + 2], cl
cmp edi, 2
je 0x10004345
movzx ecx, byte [edx + 3]
mov byte [eax + 3], cl
cmp edi, 3
je 0x10004345
movzx ecx, byte [edx + 4]
mov byte [eax + 4], cl
cmp edi, 4
je 0x10004345
movzx ecx, byte [edx + 5]
mov byte [eax + 5], cl
cmp edi, 5
je 0x10004345
mov dh, 0x4a
add eax, 0x83054888
inc dword [0xb60f6774]
dec edx
push es
movzx ecx, byte [edx + 6]
mov byte [eax + 6], cl
cmp edi, 6
je 0x10004345
movzx ecx, byte [edx + 7]
mov byte [eax + 7], cl
cmp edi, 7
je 0x10004345
movzx ecx, byte [edx + 8]
mov byte [eax + 8], cl
cmp edi, 8
je 0x10004345
movzx ecx, byte [edx + 9]
mov byte [eax + 9], cl
cmp edi, 9
je 0x10004345
movzx ecx, byte [edx + 0xa]
mov byte [eax + 0xa], cl
cmp edi, 0xa
je 0x10004345
movzx ecx, byte [edx + 0xb]
mov byte [eax + 0xb], cl
cmp edi, 0xb
je 0x10004345
movzx ecx, byte [edx + 0xc]
mov byte [eax + 0xc], cl
cmp edi, 0xc
je 0x10004345
movzx ecx, byte [edx + 0xd]
mov byte [eax + 0xd], cl
cmp edi, 0xd
je 0x10004345
movzx edx, byte [edx + 0xe]
mov byte [eax + 0xe], dl
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], ebx
add dword [ebp - 0x40], edx
jmp 0x10003e9e
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edi + 8]
lea esi, [esi]
movzx eax, byte [ebx]
add ebx, 1
add edx, 1
mov byte [edx - 1], al
cmp ebx, ecx
jne 0x1000435e
jmp 0x10004131
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], edx
sub esi, ecx
lea ebx, [esi - 1]
je 0x1000414b
lea eax, [edx + 0x10]
cmp dword [ebp - 0x2c], eax
mov ecx, edx
lea edx, [edi + 0x18]
mov edi, ecx
setae al
cmp ecx, edx
setae dl
or al, dl
je 0x10004507
cmp ebx, 0xe
jbe 0x10004507
mov edx, dword [ebp - 0x2c]
mov eax, ecx
mov ecx, esi
and ecx, 0xfffffff0
add ecx, edi
movdqu xmm4, xmmword [edx]
add eax, 0x10
add edx, 0x10
movups xmmword [eax - 0x10], xmm4
cmp eax, ecx
jne 0x100043b9
mov eax, ebx
mov ecx, dword [ebp - 0x2c]
mov edx, esi
mov ebx, dword [ebp - 0x30]
and edx, 0xfffffff0
sub eax, edx
add ecx, edx
add ebx, edx
cmp esi, edx
je 0x1000414b
movzx edx, byte [ecx]
mov byte [ebx], dl
test eax, eax
je 0x1000414b
movzx edx, byte [ecx + 1]
mov byte [ebx + 1], dl
cmp eax, 1
je 0x1000414b
movzx edx, byte [ecx + 2]
mov byte [ebx + 2], dl
cmp eax, 2
je 0x1000414b
movzx edx, byte [ecx + 3]
mov byte [ebx + 3], dl
cmp eax, 3
je 0x1000414b
movzx edx, byte [ecx + 4]
mov byte [ebx + 4], dl
cmp eax, 4
je 0x1000414b
movzx edx, byte [ecx + 5]
mov byte [ebx + 5], dl
cmp eax, 5
je 0x1000414b
movzx edx, byte [ecx + 6]
mov byte [ebx + 6], dl
cmp eax, 6
je 0x1000414b
movzx edx, byte [ecx + 7]
mov byte [ebx + 7], dl
cmp eax, 7
je 0x1000414b
movzx edx, byte [ecx + 8]
mov byte [ebx + 8], dl
cmp eax, 8
je 0x1000414b
movzx edx, byte [ecx + 9]
mov byte [ebx + 9], dl
cmp eax, 9
je 0x1000414b
movzx edx, byte [ecx + 0xa]
mov byte [ebx + 0xa], dl
cmp eax, 0xa
je 0x1000414b
movzx edx, byte [ecx + 0xb]
mov byte [ebx + 0xb], dl
invalid
clc