Function at 0x64286b73
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov dword [ebp - 0x6c], ecx
and dword [ebp - 0x60], 0
and dword [ebp - 4], 0
and dword [ebp - 0x84], 0
mov eax, dword [ebp + 0x1c]
add eax, 0x140
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x68], 0x10c
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x68], 0
je 0x64286bc2
mov eax, dword [ebp - 0x64]
mov byte [eax], 0
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x68]
dec eax
mov dword [ebp - 0x68], eax
jmp 0x64286ba6
call fcn.64286b1a
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
cmp dword [ebp - 0x70], 0
jne 0x64286be9
mov dword [ebp - 0x34], 1
jmp 0x64287391
mov ecx, dword [ebp - 0x6c]
call fcn.64286b39
cmp eax, 0x3e
je 0x64286c07
mov dword [ebp - 0x34], 2
jmp 0x64287391
mov ecx, dword [ebp - 0x30]
call fcn.64288b65
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x64286c35
mov dword [ebp - 0x34], 7
jmp 0x64287391
push dword [ebp - 0x30]
push 0
push dword [ebp - 4]
call fcn.642922b1
add esp, 0xc
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x64286c75
push 0
push 0
push 1
push 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x64286c75
mov dword [ebp - 0x34], 0xe
jmp 0x64287391
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x60]
mov dword [eax + 0x10c], ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
mov dword [edx + 0x114], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x118], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x11c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x120], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x124], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x128], ecx
push 0
push 0xf
mov eax, dword [ebp - 4]
add eax, 0x12c
push eax
mov ecx, dword [ebp + 0x28]
call fcn.642875c3
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x13c], ecx
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
add eax, 0x140
push eax
call fcn.642921cb
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp - 0xa0], eax
call fcn.6428089e
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x54]
test eax, eax
je 0x64286dd2
push 8
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.642922b1
add esp, 0xc
push 4
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.642921cb
add esp, 0xc
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0xa4]
mov dword [ebp + eax - 0x54], ecx
push 4
pop eax
imul eax, eax, 3
and dword [ebp + eax - 0x54], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x54]
xor eax, 0x729f036c
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x54], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x54]
xor eax, 0x8f95c154
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x54], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x54]
xor eax, 0x770c6bdc
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x54], eax
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x54]
xor eax, 0x3ddf9c
push 4
pop ecx
imul ecx, ecx, 3
mov dword [ebp + ecx - 0x54], eax
cmp dword [ebp - 4], 0
je 0x64286dde
cmp dword [ebp - 0x30], 8
jae 0x64286de3
jmp 0x64287047
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
shr eax, 2
mov dword [ebp - 0x38], eax
push 0x34
pop eax
xor edx, edx
div dword [ebp - 0x38]
add eax, 6
mov dword [ebp - 0x58], eax
xor eax, eax
inc eax
je 0x64286f29
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x28]
sub eax, 0x61c88647
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
shr eax, 2
and eax, 3
mov dword [ebp - 0x40], eax
and dword [ebp - 8], 0
jmp 0x64286e3e
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x38]
dec eax
cmp dword [ebp - 8], eax
jae 0x64286eae
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov ecx, dword [ebp - 0x14]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 3
mov edx, dword [ebp - 0x10]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
and edx, 3
xor edx, dword [ebp - 0x40]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x10]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ecx*4]
add ecx, eax
mov dword [ebp - 0x74], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x74]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x10], eax
jmp 0x64286e37
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov ecx, dword [ebp - 0x14]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 3
mov edx, dword [ebp - 0x10]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
and edx, 3
xor edx, dword [ebp - 0x40]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x10]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ecx*4 - 4]
add ecx, eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x78]
mov dword [ecx + eax*4 - 4], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
dec eax
mov dword [ebp - 0x58], eax
jne 0x64286e1a
jmp 0x64287047
imul eax, dword [ebp - 0x58], 0x9e3779b9
mov dword [ebp - 0x28], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
shr eax, 2
and eax, 3
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 8], eax
jmp 0x64286f5e
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x64286fcb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov ecx, dword [ebp - 0x14]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 3
mov edx, dword [ebp - 0x10]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
and edx, 3
xor edx, dword [ebp - 0x40]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x10]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ecx*4]
sub ecx, eax
mov dword [ebp - 0x7c], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x7c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
jmp 0x64286f57
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov ecx, dword [ebp - 0x14]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x14]
shr ecx, 3
mov edx, dword [ebp - 0x10]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
and edx, 3
xor edx, dword [ebp - 0x40]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x10]
add ecx, edx
xor eax, ecx
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ecx]
sub ecx, eax
mov dword [ebp - 0x80], ecx
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x80]
mov dword [ecx + eax], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x28]
add eax, 0x61c88647
mov dword [ebp - 0x28], eax
jne 0x64286f42
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x30]
push dword [ebp - 4]
push dword [ebp - 0x30]
push dword [ebp - 4]
push 0x22e007
mov eax, dword [ebp - 0x6c]
push dword [eax]
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x6428707b
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebp - 0x30]
je 0x6428708c
mov dword [ebp - 0x34], 8
jmp 0x64287391
cmp dword [ebp - 4], 0
je 0x64287098
cmp dword [ebp - 0x30], 8
jae 0x6428709d
jmp 0x64287324
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
shr eax, 2
mov dword [ebp - 0x3c], eax
push 0x34
pop eax
xor edx, edx
div dword [ebp - 0x3c]
add eax, 6
mov dword [ebp - 0x5c], eax
xor eax, eax
je 0x642871f4
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
sub eax, 0x61c88647
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
shr eax, 2
and eax, 3
mov dword [ebp - 0x44], eax
and dword [ebp - 0xc], 0
jmp 0x642870f7
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x3c]
dec eax
cmp dword [ebp - 0xc], eax
jae 0x64287170
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 3
mov edx, dword [ebp - 0x18]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
and edx, 3
xor edx, dword [ebp - 0x44]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x18]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + ecx*4]
add ecx, eax
mov dword [ebp - 0x88], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x88]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x18], eax
jmp 0x642870f0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 3
mov edx, dword [ebp - 0x18]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
and edx, 3
xor edx, dword [ebp - 0x44]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x18]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + ecx*4 - 4]
add ecx, eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x8c]
mov dword [ecx + eax*4 - 4], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
jne 0x642870d3
jmp 0x64287324
imul eax, dword [ebp - 0x5c], 0x9e3779b9
mov dword [ebp - 0x2c], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
shr eax, 2
and eax, 3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0xc], eax
jmp 0x64287229
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x6428729f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 3
mov edx, dword [ebp - 0x18]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
and edx, 3
xor edx, dword [ebp - 0x44]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x18]
add ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + ecx*4]
sub ecx, eax
mov dword [ebp - 0x90], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x90]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x1c], eax
jmp 0x64287222
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
xor eax, ecx
mov ecx, dword [ebp - 0x1c]
shr ecx, 3
mov edx, dword [ebp - 0x18]
shl edx, 4
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
and edx, 3
xor edx, dword [ebp - 0x44]
mov edx, dword [ebp + edx*4 - 0x54]
xor edx, dword [ebp - 0x18]
add ecx, edx
xor eax, ecx
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx + ecx]
sub ecx, eax
mov dword [ebp - 0x94], ecx
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x94]
mov dword [ecx + eax], edx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
add eax, 0x61c88647
mov dword [ebp - 0x2c], eax
jne 0x6428720d
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x6428737c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x16
jne 0x64287378
mov ecx, dword [ebp - 4]
add ecx, 8
mov edx, 0x104
call fcn.6427e1f1
push eax
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov eax, dword [ebp + 0x30]
add eax, 8
push eax
call fcn.642921cb
add esp, 0xc
jmp 0x64287391
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x6428738d
push dword [ebp - 0x60]
call fcn.642869a3
pop ecx
and dword [ebp - 0x34], 0
cmp dword [ebp - 4], 0
je 0x642873ab
mov eax, dword [ebp - 4]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
call fcn.64288bc8
mov eax, dword [ebp - 0x34]
leave
ret 0x2c