Function at 0x3e7c3a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x30], 0
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, 0xffffff
push esi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 2], 0
cmp ebx, dword [ebp + 0x14]
jb 0x3e8e0f
test byte [ebp + 0x14], 3
jne 0x3e8e0f
test bl, 3
jne 0x3e8e0f
cmp ebx, dword [ebp + 0x20]
ja 0x3e8e0f
push 3
xor edx, edx
mov eax, ebx
pop ecx
div ecx
test edx, edx
jne 0x3e8e0f
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
push dword [ebp + 0x1c]
call fcn.00363a00
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
lea eax, [edi + edx]
mov edi, ebx
sub edi, edx
add esp, 0xc
add edx, ecx
cmp edi, 8
jb 0x3e7cf4
mov ecx, eax
sub ecx, dword [ebp + 0x14]
mov ebx, edi
shr ebx, 3
mov dword [ebp + 0x20], ebx
mov ebx, dword [ecx]
xor ebx, dword [eax]
add ecx, 4
mov dword [edx], ebx
mov ebx, dword [ecx]
add eax, 4
xor ebx, dword [eax]
add edx, 4
mov dword [edx], ebx
add edx, 4
add eax, 4
add ecx, 4
sub edi, 8
dec dword [ebp + 0x20]
jne 0x3e7ccb
mov ebx, dword [ebp + 0x10]
test edi, edi
je 0x3e7d03
mov ecx, eax
sub ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
xor ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x14]
push 2
xor edi, edi
mov byte [eax + 8], 0
mov byte [eax + 0x14], 0
pop eax
mov dword [ebp - 8], edi
mov byte [ebp + 0x23], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x2c], edi
cmp edi, dword [ebp + 0x10]
jae 0x3e8586
cmp dword [ebp - 0x20], 0x2000
jae 0x3e8e0e
jmp 0x3e83a9
mov ecx, dword [ebp + 0x1c]
lea edx, [edi + ecx]
movzx eax, byte [edx]
movzx ebx, byte [edx + 1]
shl eax, 8
or eax, ebx
movzx ebx, byte [edx + 2]
shl eax, 8
or eax, ebx
mov dword [ebp - 0x14], edx
jne 0x3e7e9d
lea eax, [edi + 3]
cmp eax, dword [ebp + 0x10]
jae 0x3e7e84
movzx eax, byte [edi + ecx + 3]
movzx ebx, byte [edi + ecx + 4]
shl eax, 8
or eax, ebx
movzx ebx, byte [edi + ecx + 5]
shl eax, 8
or eax, ebx
jne 0x3e7e84
lea eax, [edi + 6]
cmp eax, dword [ebp + 0x10]
jae 0x3e7e80
movzx eax, byte [edi + ecx + 6]
movzx ebx, byte [edi + ecx + 7]
shl eax, 8
or eax, ebx
movzx ebx, byte [edi + ecx + 8]
shl eax, 8
or eax, ebx
jne 0x3e7e80
lea eax, [edi + 9]
cmp eax, dword [ebp + 0x10]
jae 0x3e7e7b
lea ecx, [edi + ecx + 9]
movzx ebx, byte [ecx]
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl ebx, 8
or eax, ebx
shl eax, 8
or eax, ecx
jne 0x3e7e7b
mov ecx, dword [ebp + 0x10]
lea eax, [edx + 0xc]
sub edx, edi
lea ebx, [edx + ecx - 0xc]
movzx ecx, byte [eax - 3]
movzx edx, byte [eax - 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax - 1]
shl ecx, 8
or ecx, edx
lea edx, [eax + 2]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 4
cmp edx, ebx
jae 0x3e7e54
mov dword [ebp - 0x28], edx
movzx edx, byte [edx - 1]
movzx ebx, byte [eax]
shl ebx, 8
or edx, ebx
mov ebx, dword [ebp - 0x28]
movzx ebx, byte [ebx]
shl edx, 8
or edx, ebx
cmp edx, ecx
jne 0x3e7e4e
mov edx, dword [ebp - 0x28]
inc dword [ebp - 0x18]
add edx, 3
add eax, 3
mov dword [ebp - 0x28], edx
cmp edx, dword [ebp - 0x10]
jb 0x3e7e1f
cmp dword [ebp - 0x18], 0
jbe 0x3e7e69
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], 1
cmp ebx, 0x14
jae 0x3e8519
jmp 0x3e7e6c
mov ebx, dword [ebp - 0xc]
cmp byte [ebp - 2], 0
je 0x3e84ee
jmp 0x3e7faa
push 3
pop ebx
jmp 0x3e7e87
push 2
jmp 0x3e7e7d
xor ebx, ebx
inc ebx
cmp byte [ebp - 2], 0
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
je 0x3e8519
jmp 0x3e7fad
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
shl ebx, 8
or eax, ebx
movzx ebx, byte [edx + 2]
shl eax, 8
or eax, ebx
movzx ebx, byte [edi + ecx + 3]
movzx ecx, byte [edi + ecx + 4]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 0x1c]
movzx ecx, byte [edi + ecx + 5]
shl ebx, 8
or ebx, ecx
cmp eax, ebx
jne 0x3e7fad
mov ecx, dword [ebp + 0x1c]
movzx ebx, byte [edi + ecx + 7]
movzx ecx, byte [edi + ecx + 6]
shl ecx, 8
or ebx, ecx
mov ecx, dword [ebp + 0x1c]
movzx ecx, byte [edi + ecx + 8]
shl ebx, 8
or ebx, ecx
cmp eax, ebx
jne 0x3e7fad
mov ecx, dword [ebp + 0x1c]
lea ecx, [edi + ecx + 9]
movzx ebx, byte [ecx + 1]
mov dword [ebp - 0x28], ecx
movzx ecx, byte [ecx]
shl ecx, 8
or ebx, ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [ecx + 2]
shl ebx, 8
or ebx, ecx
cmp eax, ebx
jne 0x3e7fad
mov ecx, dword [ebp + 0x10]
lea eax, [edx + 0xc]
sub edx, edi
lea ebx, [edx + ecx - 0xc]
movzx edx, byte [eax - 3]
movzx ecx, byte [eax - 2]
shl edx, 8
or ecx, edx
movzx edx, byte [eax - 1]
shl ecx, 8
or ecx, edx
lea edx, [eax + 2]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 4
cmp edx, ebx
jae 0x3e7faa
mov dword [ebp - 0x28], edx
movzx ebx, byte [eax]
movzx edx, byte [edx - 1]
shl ebx, 8
or ebx, edx
mov edx, dword [ebp - 0x28]
movzx edx, byte [edx]
shl ebx, 8
or ebx, edx
cmp ebx, ecx
jne 0x3e7f8c
mov edx, dword [ebp - 0x28]
inc dword [ebp - 0x18]
add edx, 3
add eax, 3
mov dword [ebp - 0x28], edx
cmp edx, dword [ebp - 0x10]
jb 0x3e7f5d
mov eax, dword [ebp - 0x18]
cmp eax, 5
jbe 0x3e7faa
test eax, eax
jbe 0x3e7faa
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], 3
cmp eax, 0x14
jae 0x3e8519
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, edi
movzx ecx, byte [eax]
movzx ebx, byte [eax + 1]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [eax + 2]
shl ecx, 8
or ecx, ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
movzx ecx, byte [edi + ebx + 3]
movzx ebx, byte [edi + ebx + 4]
shl ecx, 8
or ecx, ebx
mov ebx, dword [ebp + 8]
movzx ebx, byte [edi + ebx + 5]
shl ecx, 8
or ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
movzx ebx, byte [edi + ecx + 7]
movzx ecx, byte [edi + ecx + 6]
shl ecx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
movzx ecx, byte [edi + ecx + 8]
shl ebx, 8
or ebx, ecx
cmp dword [ebp - 0x28], ebx
jne 0x3e81e5
mov ecx, dword [ebp + 8]
movzx ebx, byte [edi + ecx + 0xc]
movzx ecx, byte [edi + ecx + 0xd]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
movzx ecx, byte [edi + ecx + 0xe]
shl ebx, 8
or ebx, ecx
cmp dword [ebp - 0x28], ebx
jne 0x3e81e5
mov ecx, dword [ebp + 8]
movzx ebx, byte [edi + ecx + 9]
movzx ecx, byte [edi + ecx + 0xa]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
movzx ecx, byte [edi + ecx + 0xb]
shl ebx, 8
or ebx, ecx
cmp dword [ebp - 0x10], ebx
jne 0x3e81e5
mov ecx, dword [ebp + 8]
movzx ebx, byte [edi + ecx + 0xf]
movzx ecx, byte [edi + ecx + 0x10]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
movzx ecx, byte [edi + ecx + 0x11]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
jne 0x3e81e5
cmp dword [ebp - 0x28], ecx
jne 0x3e8133
cmp byte [ebp + 0x23], 0
jne 0x3e81e5
mov edx, dword [ebp + 0x10]
lea ecx, [eax + 0xc]
movzx ebx, byte [ecx - 3]
sub eax, edi
lea eax, [eax + edx - 0xc]
movzx edx, byte [ecx - 2]
shl ebx, 8
or edx, ebx
movzx ebx, byte [ecx - 1]
shl edx, 8
or edx, ebx
lea ebx, [ecx + 2]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 4
cmp ebx, eax
jae 0x3e81e2
mov dword [ebp - 0x28], ebx
movzx eax, byte [ebx - 1]
movzx ebx, byte [ecx]
shl ebx, 8
or eax, ebx
mov ebx, dword [ebp - 0x28]
movzx ebx, byte [ebx]
shl eax, 8
or eax, ebx
cmp eax, edx
jne 0x3e810a
mov ebx, dword [ebp - 0x28]
inc dword [ebp - 0x10]
add ebx, 3
add ecx, 3
mov dword [ebp - 0x28], ebx
cmp ebx, dword [ebp - 8]
jb 0x3e80db
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
cmp eax, 5
jbe 0x3e812b
cmp eax, ebx
jbe 0x3e812b
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], 4
cmp eax, 0x14
jae 0x3e8519
mov edx, dword [ebp - 0x14]
jmp 0x3e81e8
mov ecx, dword [ebp + 0x10]
movzx edx, byte [eax + 1]
movzx ebx, byte [eax + 3]
sub ecx, edi
and dword [ebp - 0x10], 0
movsx ecx, cx
mov dword [ebp - 0x28], ecx
movzx ecx, byte [eax]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 4]
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 5]
shl edx, 8
or edx, ebx
cmp dword [ebp - 0x28], 3
jle 0x3e81e2
movzx edi, byte [eax]
movzx ebx, byte [eax + 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
cmp edi, ecx
jne 0x3e81b9
movzx ebx, byte [eax + 4]
add eax, 3
movzx edi, byte [eax]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
cmp edi, edx
jne 0x3e81b9
sub dword [ebp - 0x28], 6
add dword [ebp - 0x10], 2
add eax, 3
cmp dword [ebp - 0x28], 3
jg 0x3e8173
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
cmp eax, 9
jbe 0x3e81da
cmp eax, ebx
jbe 0x3e81da
mov ebx, eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], 5
cmp eax, 0x14
jae 0x3e8516
mov edi, dword [ebp - 8]
jmp 0x3e812b
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0xc]
cmp ebx, 6
jae 0x3e8342
mov eax, dword [ebp + 0x1c]
lea ecx, [edi + eax + 3]
movzx eax, byte [ecx]
movzx ebx, byte [ecx + 1]
shl eax, 8
or eax, ebx
movzx ebx, byte [ecx + 2]
shl eax, 8
or eax, ebx
jne 0x3e83c9
mov eax, dword [ebp + 0x1c]
movzx ebx, byte [edi + eax + 6]
movzx eax, byte [edi + eax + 7]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x1c]
movzx eax, byte [edi + eax + 8]
shl ebx, 8
or ebx, eax
jne 0x3e83c9
mov eax, dword [ebp + 0x1c]
movzx ebx, byte [edi + eax + 9]
movzx eax, byte [edi + eax + 0xa]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x1c]
movzx eax, byte [edi + eax + 0xb]
shl ebx, 8
or ebx, eax
jne 0x3e83c9
mov eax, dword [ebp + 0x1c]
movzx ebx, byte [edi + eax + 0xc]
movzx eax, byte [edi + eax + 0xd]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x1c]
movzx eax, byte [edi + eax + 0xe]
shl ebx, 8
or ebx, eax
jne 0x3e83c9
movzx ebx, byte [edx]
movzx eax, byte [edx + 1]
shl ebx, 8
or eax, ebx
movzx ebx, byte [edx + 2]
shl eax, 8
or eax, ebx
cmp eax, dword [ebp - 0x1c]
jne 0x3e83c9
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 0x24]
imul eax, eax, 0xc
cmp byte [eax + ebx - 4], 1
jne 0x3e83c9
movzx eax, word [ebp + 0x14]
cmp edi, eax
je 0x3e83c9
mov edx, dword [ebp + 0x10]
lea eax, [ecx + 0xc]
movzx ebx, byte [eax - 3]
sub ecx, edi
lea ecx, [ecx + edx - 0xf]
movzx edx, byte [eax - 2]
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax - 1]
shl edx, 8
or edx, ebx
lea ebx, [eax + 2]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 4
cmp ebx, ecx
jae 0x3e8325
mov dword [ebp - 0x28], ebx
movzx ecx, byte [eax]
movzx ebx, byte [ebx - 1]
shl ecx, 8
or ecx, ebx
mov ebx, dword [ebp - 0x28]
movzx ebx, byte [ebx]
shl ecx, 8
or ecx, ebx
cmp ecx, edx
jne 0x3e8325
mov ebx, dword [ebp - 0x28]
inc dword [ebp - 0x10]
add ebx, 3
add eax, 3
mov dword [ebp - 0x28], ebx
cmp ebx, dword [ebp - 8]
jb 0x3e82f6
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
inc eax
cmp eax, ebx
jbe 0x3e833f
mov ebx, eax
mov byte [ebp - 1], 2
cmp eax, 0x14
jae 0x3e8519
mov edx, dword [ebp - 0x14]
cmp byte [ebp - 2], 0
jne 0x3e84d7
cmp ebx, 6
jae 0x3e84ee
cmp dword [ebp - 0x18], 4
jbe 0x3e84d1
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 2]
shl eax, 8
or eax, ecx
cmp eax, dword [ebp - 0x1c]
jne 0x3e84d1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x24]
imul eax, eax, 0xc
add eax, ecx
cmp byte [eax - 4], 3
jne 0x3e84c8
cmp edi, dword [ebp + 0x14]
je 0x3e84c8
mov ecx, dword [ebp - 0x18]
add dword [eax - 8], ecx
imul ecx, ecx, 3
add edi, ecx
mov dword [ebp - 8], edi
and dword [ebp - 0xc], 0
and dword [ebp - 0x18], 0
lea eax, [edi + 0x12]
cmp eax, dword [ebp + 0x10]
jb 0x3e7d44
xor ebx, ebx
mov byte [ebp - 1], 7
inc ebx
jmp 0x3e84f4
and dword [ebp - 0x10], 0
mov eax, edx
sub eax, edi
add eax, dword [ebp + 0x10]
lea ecx, [edx + 1]
movzx ebx, byte [ecx]
mov dword [ebp - 8], eax
movzx eax, byte [edx]
shl eax, 8
or eax, ebx
movzx ebx, byte [edx + 2]
shl eax, 8
or eax, ebx
mov dword [ebp - 0x24], eax
push 0xfffffffffffffffe
pop eax
mov byte [ebp - 3], 0
mov dword [ebp - 0x14], ecx
sub eax, edx
add dword [ebp - 0x14], 3
mov ecx, dword [ebp - 0x14]
sub eax, 3
inc dword [ebp - 0x10]
add ecx, 2
cmp ecx, dword [ebp - 8]
ja 0x3e848c
mov ebx, dword [ebp - 0x14]
movzx ecx, byte [ebx - 1]
movzx ebx, byte [ebx]
shl ecx, 8
or ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx ebx, byte [ebx + 1]
shl ecx, 8
or ecx, ebx
cmp ecx, dword [ebp - 0x24]
je 0x3e8436
test ecx, ecx
jne 0x3e848c
test byte [ebp - 0x10], 7
jne 0x3e8482
mov ecx, dword [ebp - 0x14]
add ecx, 0x47
cmp ecx, dword [ebp - 8]
ja 0x3e8482
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x28], ecx
movzx ebx, byte [ecx - 2]
movzx ecx, byte [ecx - 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [ecx]
shl ebx, 8
or ebx, ecx
cmp ebx, dword [ebp - 0x24]
jne 0x3e8482
mov ecx, dword [ebp - 0x28]
add ecx, 3
lea ebx, [eax + ecx]
cmp ebx, 0x48
mov byte [ebp - 3], 1
mov dword [ebp - 0x28], ecx
jl 0x3e8450
cmp byte [ebp - 3], 0
je 0x3e83fd
mov ecx, dword [ebp - 0x24]
push 0x30
pop eax
cmp ecx, dword [ebp - 0x1c]
jne 0x3e849a
push 0x20
pop eax
mov ecx, dword [ebp - 0x10]
test cl, 7
jne 0x3e84a5
sub eax, 8
mov ebx, dword [ebp - 0xc]
cmp ecx, eax
jb 0x3e8342
cmp ecx, ebx
jbe 0x3e8342
mov ebx, ecx
mov byte [ebp - 1], 6
cmp ecx, 0x14
jae 0x3e8519
jmp 0x3e8342
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 1], 3
jmp 0x3e8519
test ebx, ebx
jne 0x3e84ee
jmp 0x3e84e7
cmp ebx, 6
jb 0x3e84e7
cmp byte [ebp - 1], 1
je 0x3e84ee
cmp ebx, 8
jae 0x3e84ee
xor ebx, ebx
inc ebx
mov byte [ebp - 1], 7
cmp byte [ebp - 1], 7
jne 0x3e8519
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x24]
imul eax, eax, 0xc
add eax, ecx
cmp byte [eax - 4], 7
mov byte [ebp - 2], 1
jne 0x3e854c
add dword [eax - 8], ebx
imul ebx, ebx, 3
add edi, ebx
mov dword [ebp - 8], edi
jmp 0x3e857a
mov edi, dword [ebp - 8]
cmp byte [ebp - 1], 3
mov byte [ebp - 2], 0
jne 0x3e8540
mov eax, dword [ebp + 0x1c]
lea ecx, [edi + eax]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jmp 0x3e8549
cmp byte [ebp - 1], 6
jne 0x3e854c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp + 0x14]
cmp edi, eax
mov eax, ebx
jne 0x3e85bd
imul eax, eax, 3
add edi, eax
mov dword [ebp - 8], edi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x24]
imul eax, eax, 0xc
add eax, ecx
mov cl, byte [ebp - 1]
inc dword [ebp - 0x20]
mov byte [eax + 8], cl
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], ecx
cmp edi, dword [ebp + 0x10]
jb 0x3e7d32
push 2
pop eax
inc dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
mov dword [ebp + 0x10], ecx
mov byte [ebp + 0x23], 0
cmp dword [ebp - 0x2c], eax
jb 0x3e7d29
xor ebx, ebx
cmp dword [ebp - 0x20], eax
mov dword [ebp - 8], ebx
mov byte [ebp + 0x23], 1
mov dword [ebp - 0x1c], 0xffffff
mov dword [ebp + 0x10], eax
jle 0x3e8e08
jmp 0x3e869a
mov ecx, dword [ebp + 0x24]
imul eax, eax, 3
mov dl, byte [ebp - 1]
add edi, eax
mov eax, dword [ebp - 0x20]
imul eax, eax, 0xc
add eax, ecx
mov cl, byte [eax - 4]
mov dword [ebp - 8], edi
cmp dl, cl
jne 0x3e85f1
cmp dl, 1
je 0x3e8601
cmp dl, 3
je 0x3e85e9
cmp dl, 6
jne 0x3e85f1
mov edx, dword [ebp - 0x1c]
cmp edx, dword [eax - 0xc]
je 0x3e8601
cmp byte [ebp - 1], 1
jne 0x3e8609
cmp cl, 1
je 0x3e8601
cmp cl, 2
jne 0x3e863e
add dword [eax - 8], ebx
jmp 0x3e857a
cmp byte [ebp - 1], 6
jne 0x3e8638
cmp cl, 1
jne 0x3e855e
mov ecx, dword [eax - 8]
cmp ecx, 8
jae 0x3e855e
add ecx, ebx
mov dword [eax - 8], ecx
mov ecx, dword [ebp - 0x1c]
mov byte [eax - 4], 6
mov dword [eax - 0xc], ecx
jmp 0x3e857a
cmp byte [ebp - 1], 2
jne 0x3e866d
cmp cl, 6
jne 0x3e866d
mov edx, dword [eax - 8]
and edx, 7
je 0x3e866d
push 8
pop ecx
sub ecx, edx
cmp ecx, ebx
jbe 0x3e8656
mov ecx, ebx
add dword [eax - 8], ecx
mov edx, dword [eax - 8]
sub ebx, ecx
cmp ebx, 9
jae 0x3e866d
add edx, ebx
mov dword [eax - 8], edx
jmp 0x3e857a
cmp byte [ebp - 1], 7
jne 0x3e855e
cmp byte [eax - 0x10], 7
jne 0x3e855e
cmp dword [eax - 8], 1
jne 0x3e855e
inc ebx
add dword [eax - 0x14], ebx
dec dword [ebp - 0x20]
jmp 0x3e857a
mov ebx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp + 0xc]
add eax, 6
cmp eax, dword [ebp + 0x18]
ja 0x3e8e0e
cmp byte [ebp + 0x23], 0
je 0x3e86ba
cmp ebx, dword [ebp + 0x14]
jb 0x3e86ba
mov byte [ebp + 0x23], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x24]
imul eax, eax, 0xc
lea edi, [eax + ecx]
mov al, byte [edi + 8]
test al, al
jbe 0x3e8df9
cmp al, 2
jbe 0x3e8dcb
cmp al, 3
je 0x3e8d5f
cmp al, 4
je 0x3e8d26
cmp al, 5
je 0x3e8c8d
cmp al, 6
je 0x3e87b1
cmp al, 7
jne 0x3e8df9
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x3e8754
mov ecx, dword [ebp + 8]
add ecx, ebx
movzx edx, byte [ecx]
movzx ebx, byte [ecx + 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx + 2]
shl edx, 8
or edx, ebx
jne 0x3e8732
mov byte [esi], 0xfe
inc esi
add dword [ebp - 8], 3
jmp 0x3e8df9
movzx edx, byte [ecx]
movzx ebx, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
cmp edx, 0xffffff
jne 0x3e8754
mov byte [esi], 0xfd
jmp 0x3e8728
cmp eax, 0x1f
ja 0x3e875d
or al, 0x80
jmp 0x3e876a
cmp eax, 0x11f
ja 0x3e876f
mov byte [esi], 0x80
inc esi
sub al, 0x20
mov byte [esi], al
inc esi
jmp 0x3e8778
mov byte [esi], 0xf4
inc esi
mov word [esi], ax
inc esi
inc esi
mov eax, dword [edi + 4]
imul eax, eax, 3
mov ecx, eax
sub ecx, dword [ebp + 0xc]
add ecx, esi
cmp ecx, dword [ebp + 0x18]
ja 0x3e8e0e
mov ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
add ecx, eax
push ecx
push esi
call fcn.00363a00
mov edi, dword [edi + 4]
imul edi, edi, 3
add esp, 0xc
add esi, edi
add dword [ebp - 8], edi
jmp 0x3e8df9
mov ecx, dword [edi + 4]
lea eax, [ecx + 7]
shr eax, 3
sub eax, dword [ebp + 0xc]
lea eax, [eax + esi + 6]
cmp eax, dword [ebp + 0x18]
ja 0x3e8e0e
mov edi, dword [edi]
cmp dword [ebp - 0x1c], edi
je 0x3e8935
mov eax, edi
mov dword [ebp - 0x1c], eax
test cl, 7
jne 0x3e87ee
cmp ecx, 0x78
ja 0x3e87ee
mov edx, ecx
shr edx, 3
or dl, 0xd0
jmp 0x3e8803
cmp ecx, 0xff
ja 0x3e8808
cmp ecx, 2
jb 0x3e8829
mov byte [esi], 0xd0
mov dl, cl
inc esi
dec dl
mov byte [esi], dl
inc esi
jmp 0x3e8816
cmp ecx, 3
jb 0x3e8829
mov byte [esi], 0xf7
inc esi
mov word [esi], cx
inc esi
inc esi
mov edx, eax
mov byte [esi + 2], al
shr edx, 8
shr eax, 0x10
mov byte [esi + 1], dl
mov byte [esi], al
add esi, 3
cmp ecx, 8
jb 0x3e8b85
mov eax, dword [ebp + 0x1c]
mov edx, ecx
shr edx, 3
mov edi, edx
imul edi, edi, 0x18
lea eax, [ebx + eax + 0x17]
add ebx, edi
mov dword [ebp - 8], ebx
mov byte [esi], 0
movzx edi, byte [eax - 0x17]
movzx ebx, byte [eax - 0x16]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0x15]
shl edi, 8
or edi, ebx
je 0x3e8866
mov byte [esi], 1
movzx edi, byte [eax - 0x14]
movzx ebx, byte [eax - 0x13]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0x12]
shl edi, 8
or edi, ebx
je 0x3e8881
or byte [esi], 2
movzx edi, byte [eax - 0x11]
movzx ebx, byte [eax - 0x10]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0xf]
shl edi, 8
or edi, ebx
je 0x3e889c
or byte [esi], 4
movzx edi, byte [eax - 0xe]
movzx ebx, byte [eax - 0xd]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0xc]
shl edi, 8
or edi, ebx
je 0x3e88b7
or byte [esi], 8
movzx edi, byte [eax - 0xb]
movzx ebx, byte [eax - 0xa]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 9]
shl edi, 8
or edi, ebx
je 0x3e88d2
or byte [esi], 0x10
movzx edi, byte [eax - 8]
movzx ebx, byte [eax - 7]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 6]
shl edi, 8
or edi, ebx
je 0x3e88ed
or byte [esi], 0x20
movzx edi, byte [eax - 5]
movzx ebx, byte [eax - 4]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 3]
shl edi, 8
or edi, ebx
je 0x3e8908
or byte [esi], 0x40
movzx edi, byte [eax - 2]
movzx ebx, byte [eax - 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax]
shl edi, 8
or edi, ebx
je 0x3e8922
or byte [esi], 0x80
inc esi
add eax, 0x18
sub ecx, 8
dec edx
jne 0x3e8848
jmp 0x3e8b85
cmp ecx, 8
jne 0x3e8a4a
mov eax, dword [ebp + 0x1c]
add eax, ebx
movzx edi, byte [eax]
movzx edx, byte [eax + 1]
shl edi, 8
or edx, edi
movzx edi, byte [eax + 2]
shl edx, 8
xor cl, cl
or edx, edi
je 0x3e895e
inc cl
push 3
pop edx
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e897d
or cl, 2
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8999
or cl, 4
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e89b5
or cl, 8
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e89d1
or cl, 0x10
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e89ed
or cl, 0x20
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8a09
or cl, 0x40
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
movzx eax, byte [eax + 2]
shl ebx, 8
or edi, ebx
shl edi, 8
or edi, eax
je 0x3e8a25
or cl, 0x80
movzx eax, cl
sub eax, edx
je 0x3e8a3d
dec eax
dec eax
je 0x3e8a38
mov byte [esi], 0x41
inc esi
mov byte [esi], cl
jmp 0x3e8a40
mov byte [esi], 0xfa
jmp 0x3e8a40
mov byte [esi], 0xf9
inc esi
add dword [ebp - 8], 0x18
jmp 0x3e8df9
test cl, 7
jne 0x3e8a60
cmp ecx, 0xf8
ja 0x3e8a60
mov eax, ecx
shr eax, 3
or al, 0x40
jmp 0x3e8a70
cmp ecx, 0xff
ja 0x3e8a75
mov byte [esi], 0x40
mov al, cl
inc esi
dec al
mov byte [esi], al
inc esi
jmp 0x3e8a7e
mov byte [esi], 0xf2
inc esi
mov word [esi], cx
inc esi
inc esi
cmp ecx, 8
jb 0x3e8b85
mov eax, dword [ebp + 0x1c]
mov edx, ecx
shr edx, 3
mov edi, edx
imul edi, edi, 0x18
lea eax, [ebx + eax + 0x17]
add ebx, edi
mov dword [ebp - 8], ebx
mov byte [esi], 0
movzx edi, byte [eax - 0x17]
movzx ebx, byte [eax - 0x16]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0x15]
shl edi, 8
or edi, ebx
je 0x3e8abb
mov byte [esi], 1
movzx edi, byte [eax - 0x14]
movzx ebx, byte [eax - 0x13]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0x12]
shl edi, 8
or edi, ebx
je 0x3e8ad6
or byte [esi], 2
movzx edi, byte [eax - 0x11]
movzx ebx, byte [eax - 0x10]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0xf]
shl edi, 8
or edi, ebx
je 0x3e8af1
or byte [esi], 4
movzx edi, byte [eax - 0xe]
movzx ebx, byte [eax - 0xd]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 0xc]
shl edi, 8
or edi, ebx
je 0x3e8b0c
or byte [esi], 8
movzx edi, byte [eax - 0xb]
movzx ebx, byte [eax - 0xa]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 9]
shl edi, 8
or edi, ebx
je 0x3e8b27
or byte [esi], 0x10
movzx edi, byte [eax - 8]
movzx ebx, byte [eax - 7]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 6]
shl edi, 8
or edi, ebx
je 0x3e8b42
or byte [esi], 0x20
movzx edi, byte [eax - 5]
movzx ebx, byte [eax - 4]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax - 3]
shl edi, 8
or edi, ebx
je 0x3e8b5d
or byte [esi], 0x40
movzx edi, byte [eax - 2]
movzx ebx, byte [eax - 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [eax]
shl edi, 8
or edi, ebx
je 0x3e8b77
or byte [esi], 0x80
inc esi
add eax, 0x18
sub ecx, 8
dec edx
jne 0x3e8a9d
test ecx, ecx
je 0x3e8df9
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x1c]
add eax, edx
mov byte [esi], 0
movzx edi, byte [eax]
movzx edx, byte [eax + 1]
shl edi, 8
or edx, edi
movzx edi, byte [eax + 2]
shl edx, 8
or edx, edi
je 0x3e8bb2
mov byte [esi], 1
push 3
pop edx
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8bd1
or byte [esi], 2
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8bed
or byte [esi], 4
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8c09
or byte [esi], 8
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8c25
or byte [esi], 0x10
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8c41
or byte [esi], 0x20
add eax, edx
movzx ebx, byte [eax]
movzx edi, byte [eax + 1]
shl ebx, 8
or edi, ebx
movzx ebx, byte [eax + 2]
shl edi, 8
or edi, ebx
je 0x3e8c5d
or byte [esi], 0x40
add eax, edx
movzx edi, byte [eax]
movzx edx, byte [eax + 1]
movzx eax, byte [eax + 2]
shl edi, 8
or edx, edi
shl edx, 8
or edx, eax
je 0x3e8c79
or byte [esi], 0x80
mov al, 1
shl al, cl
imul ecx, ecx, 3
dec al
and byte [esi], al
inc esi
add dword [ebp - 8], ecx
jmp 0x3e8df9
mov eax, dword [edi + 4]
shr eax, 1
cmp eax, 0xf
ja 0x3e8c9b
or al, 0xe0
jmp 0x3e8ca8
cmp eax, 0x10f
ja 0x3e8cad
mov byte [esi], pe_nt_image_headers32
inc esi
sub al, 0x10
mov byte [esi], al
inc esi
jmp 0x3e8cb6
mov byte [esi], 0xf8
inc esi
mov word [esi], ax
inc esi
inc esi
mov eax, esi
sub eax, dword [ebp + 0xc]
add eax, 6
cmp eax, dword [ebp + 0x18]
ja 0x3e8e0e
mov ecx, dword [ebp + 8]
movzx eax, byte [ebx + ecx]
movzx edx, byte [ebx + ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + ecx + 2]
shl eax, 8
or eax, edx
mov byte [esi + 2], al
mov edx, eax
shr edx, 8
shr eax, 0x10
mov byte [esi], al
mov byte [esi + 1], dl
lea ecx, [ebx + ecx + 3]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
add esi, 3
shl eax, 8
movzx ecx, byte [ecx + 2]
or eax, edx
shl eax, 8
or eax, ecx
mov ecx, eax
mov byte [esi + 2], al
shr ecx, 8
shr eax, 0x10
mov byte [esi + 1], cl
mov byte [esi], al
add esi, 3
jmp 0x3e8dee
mov eax, dword [edi + 4]
cmp eax, 0x1f
ja 0x3e8d32
or al, 0x60
jmp 0x3e8d3f
cmp eax, 0x11f
ja 0x3e8d44
mov byte [esi], 0x60
inc esi
sub al, 0x20
mov byte [esi], al
inc esi
jmp 0x3e8d4d
mov byte [esi], 0xf3
inc esi
mov word [esi], ax
inc esi
inc esi
mov eax, dword [ebp + 8]
lea ecx, [ebx + eax]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
jmp 0x3e8d03
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edi]
mov eax, dword [edi + 4]
je 0x3e8db1
mov ecx, dword [edi]
mov dword [ebp - 0x1c], ecx
cmp eax, 0xf
ja 0x3e8d77
or al, 0xc0
jmp 0x3e8d89
cmp eax, 0x10f
ja 0x3e8d8e
cmp eax, 2
jb 0x3e8dee
mov byte [esi], 0xc0
inc esi
sub al, 0x10
mov byte [esi], al
inc esi
jmp 0x3e8d9c
cmp eax, 3
jb 0x3e8dee
mov byte [esi], 0xf6
inc esi
mov word [esi], ax
inc esi
inc esi
mov eax, ecx
shr eax, 8
mov byte [esi + 2], cl
shr ecx, 0x10
mov byte [esi + 1], al
mov byte [esi], cl
jmp 0x3e8d1e
cmp eax, 0x1f
ja 0x3e8dba
or al, 0x20
jmp 0x3e8de0
cmp eax, 0x11f
ja 0x3e8dc6
mov byte [esi], 0x20
jmp 0x3e8ddd
mov byte [esi], 0xf1
jmp 0x3e8de8
mov eax, dword [edi + 4]
cmp eax, 0x1f
jbe 0x3e8de0
cmp eax, 0x11f
ja 0x3e8de5
mov byte [esi], 0
inc esi
sub al, 0x20
mov byte [esi], al
inc esi
jmp 0x3e8dee
mov byte [esi], 0xf0
inc esi
mov word [esi], ax
inc esi
inc esi
mov eax, dword [edi + 4]
imul eax, eax, 3
add ebx, eax
mov dword [ebp - 8], ebx
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x20]
jl 0x3e8697
sub esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
pop edi
mov eax, dword [ebp - 0x30]
pop esi
pop ebx
leave
ret 0x20